4

I'd like to override the disallowMultipleVarDecl property in linter-jscs. I tried doing the following in .jscsrc:

{
    "preset": "airbnb",
    "esnext": true,

    "requireTrailingComma": null,
    "disallowMultipleVarDecl": false
}

I've quit (not x-ed out) Atom and re-opened it multiple times, and I'm still getting an error:

enter image description here

How can I override this disallowMultipleVarDecl property?

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112
Adam Zerner
  • 17,797
  • 15
  • 90
  • 156
  • 1
    i'm having similar issue. jscs overrides seem to be ignored. – chovy Dec 01 '15 at 01:36
  • You're doing it right, according to the documentation you override a preset default with null or false. I tried this locally (latest Atom and jscs so maybe you can upgrade if you're not on latest) and it works fine. As soon as I use your snippet, the warning goes away. – Nikolaos Georgiou Feb 07 '16 at 10:28
  • Where do I put the .jscsrc file? In the root of the project? – OctaviaLo Feb 19 '17 at 19:01

0 Answers0