Reputation: 1615
Since im using eslint, syntax checking from js-mode is redundant to me. so how to turn it off globally instead of toggling on and off?
I configured eslint not to check for semicolons, but js2-mode still checks it. if js2-mode syntax checking cant be disabled globally, is there a way to only turn off semicolon check?
Upvotes: 20
Views: 3712
Reputation: 4074
shangsunset's answer only disables the semi-colon warning, to disable all js2-mode errors and warnings globally, you'll need something like this in your .spacemacs's dotspacemacs/user-config
section:
;; Turn off js2 mode errors & warnings (we lean on eslint/standard)
(setq js2-mode-show-parse-errors nil)
(setq js2-mode-show-strict-warnings nil)
Upvotes: 26
Reputation: 1615
putting (setq js2-strict-missing-semi-warning nil)
in .spacemacs solves my issue.
Upvotes: 15
Reputation: 3438
I found a way to toggle manually SPC t s
. There's documentation as to how to disable it in your .spacemacs file, but I haven't been able to get it to work.
Upvotes: 0