20

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?

shangsunset
  • 1,585
  • 4
  • 22
  • 38

3 Answers3

26

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)
Darian Moody
  • 3,565
  • 1
  • 22
  • 33
15

putting (setq js2-strict-missing-semi-warning nil) in .spacemacs solves my issue.

shangsunset
  • 1,585
  • 4
  • 22
  • 38
0

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.

JuanCaicedo
  • 3,132
  • 2
  • 14
  • 36
  • where do you put the setting in your .spacemacs? did you try putting in user-init or user-config? i think im more focused on js2-mode than flycheck – shangsunset Feb 03 '16 at 16:15