eslint 'one-var' configuration
I'm looking for a way to disable the 'one-var' rule for eslint.
This rule says you should not write declarations like this:
var a;
var b;
var c;
but should instead write this:
var a,
b,
c;
I find this annoying. Does anyone know how to change this?
Please sign in to leave a comment.
what does your .eslintrc look like?
I didn't know there was an .eslintrc file. I was looking in webstorm UI => File | Settings | Editor | Code Style | JavaScript
Didn't find anything related to 'one-var' there.
But changing the file to "one-var": "off" did the trick.
Thank you.