quick-lint / quick-lint-js

quick-lint-js finds bugs in JavaScript programs
https://quick-lint-js.com
GNU General Public License v3.0
1.54k stars 192 forks source link

Emacs (Flymake): quick-lint-js shows errors in .json files #1098

Open strager opened 1 year ago

strager commented 1 year ago

js-json-mode derives from js-mode.

Possible fix: only lint (unless (derived-mode-p 'js-json-mode)).

I think the correct thing to do would be to have a minor mode which registers Flymake correctly then apply the fix to our minor mode. Otherwise, users need to edit their init.el every time we fix a bug like this.