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.
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.