Skip to content

Commit

Permalink
feat(rules): update indent and magic numbers rules #4
Browse files Browse the repository at this point in the history
  • Loading branch information
blackfalcon committed Jul 1, 2021
1 parent ce06d49 commit 66cf8ed
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
"ignorePatterns": ["test/*.js", ".eslintrc.js"],
"env": {
"browser": true,
"es6": true
Expand Down Expand Up @@ -67,7 +68,7 @@ module.exports = {
"id-length": "error",
"id-match": "error",
"implicit-arrow-linebreak": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"indent": ["error", 2, { "SwitchCase": 1 }, { "ignoredNodes": ["TemplateLiteral > *"] }],
"indent-legacy": "off",
"init-declarations": "error",
"jsx-quotes": "error",
Expand Down Expand Up @@ -131,7 +132,13 @@ module.exports = {
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-magic-numbers": "error",
"no-magic-numbers": [
"error",
{
"ignore": [0, 1],
"ignoreArrayIndexes": true
}
],
"no-mixed-operators": "error",
"no-mixed-requires": "error",
"no-multi-assign": "error",
Expand Down

0 comments on commit 66cf8ed

Please sign in to comment.