Lint for using for ... in
in favor of for ... of
Co-authored-by: Jonatan Witoszek <jonatanwitoszek@gmail.com>
This commit is contained in:
parent
3f9f854e7d
commit
cd039517d2
1 changed files with 8 additions and 1 deletions
|
@ -12,7 +12,14 @@
|
||||||
"react/react-in-jsx-scope": "off", // next does not require react imports
|
"react/react-in-jsx-scope": "off", // next does not require react imports
|
||||||
"import/extensions": "off", // file extension not required when importing
|
"import/extensions": "off", // file extension not required when importing
|
||||||
"react/jsx-filename-extension": "off",
|
"react/jsx-filename-extension": "off",
|
||||||
"no-restricted-syntax": "off",
|
"no-restricted-syntax": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
selector: "ForInStatement",
|
||||||
|
message: "for ... in disallowed, use for ... of instead",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
"no-underscore-dangle": "off",
|
"no-underscore-dangle": "off",
|
||||||
"no-await-in-loop": "off",
|
"no-await-in-loop": "off",
|
||||||
"react/jsx-props-no-spreading": "off",
|
"react/jsx-props-no-spreading": "off",
|
||||||
|
|
Loading…
Reference in a new issue