Skip to content

Commit 26e4e7c

Browse files
Update ESLint rule for no-unused-vars
Check all variables for usage but do not check function arguments.
1 parent e18cf81 commit 26e4e7c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.eslintrc

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"indent": [
1313
"error",
1414
4,
15-
{ SwitchCase: 1 }
15+
{ "SwitchCase": 1 }
1616
],
1717
"linebreak-style": [
1818
"error",
@@ -26,8 +26,11 @@
2626
"error",
2727
"always"
2828
],
29+
"no-unused-vars": [
30+
"error",
31+
{ "vars": "all", "args": "none" }
32+
],
2933
"strict": 2,
30-
"no-unused-vars": 2,
3134
"no-cond-assign": 2,
3235
"camelcase": 1
3336
}

0 commit comments

Comments
 (0)