eslint: Enable no-var rule
`var` has broken/unexpected scoping in JavaScript, and can lead to subtle errors. It's preferable and safer to use `const` whenever possible, and `let` where necessary. There are no usages of `var` in starter-kit right now, so just enable the rule to ensure that it stays that way.
This commit is contained in:
parent
3220617fec
commit
7dc9fda241
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
||||||
"ignoredNodes": [ "JSXAttribute" ]
|
"ignoredNodes": [ "JSXAttribute" ]
|
||||||
}],
|
}],
|
||||||
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
|
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
|
||||||
|
"no-var": "error",
|
||||||
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
|
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
|
||||||
"prefer-promise-reject-errors": ["error", { "allowEmptyReject": true }],
|
"prefer-promise-reject-errors": ["error", { "allowEmptyReject": true }],
|
||||||
"react/jsx-indent": ["error", 4],
|
"react/jsx-indent": ["error", 4],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue