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?

0
2 comments

what does your .eslintrc look like?

0
Avatar
Permanently deleted user
"one-var": ["error", "always"],
"one-var-declaration-per-line": ["error", "always"],

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.

1

Please sign in to leave a comment.