Skip to content

Commit ff8e2d7

Browse files
ESlint server shouldn't launch for JSON files (#2367)
* ESlint server shouldn't launch for JSON files JSON has its own server. ESlint server produces warnings and I'm not sure if it generally works with pure json. * eos instead of eol
1 parent d358ee1 commit ff8e2d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/lsp-eslint.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ source.fixAll code action."
267267
:activation-fn (lambda (filename &optional _)
268268
(when lsp-eslint-enable
269269
(or (string-match-p (rx (one-or-more anything) "."
270-
(or "ts" "js" "jsx" "tsx" "html" "vue"))
270+
(or "ts" "js" "jsx" "tsx" "html" "vue")eos)
271271
filename)
272272
(derived-mode-p 'js-mode 'js2-mode 'typescript-mode 'html-mode))))
273273
:priority -1

0 commit comments

Comments
 (0)