Skip to content

Commit

Permalink
eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Gottfried committed Feb 28, 2020
1 parent 46645cb commit 4f4e6f9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ module.exports = {
"ArrayExpression": "first",
"SwitchCase": 1,
},
]
], // indent
"default-case": [ "error" ], // add `// no default` instead of default:... to skip
"no-fallthrough": [ "error" ], // add `// fall through` after statement to skip this check

"no-setter-return": [ "warn" ],
"no-import-assign": [ "warn" ],
"no-dupe-else-if": [ "error" ],
"no-template-curly-in-string": [ "error" ],
"array-callback-return": [ "warn" ],
"dot-notation": [ "warn" ],
"no-constructor-return": [ "warn" ],
"no-eq-null": [ "error" ],
"no-extra-bind": [ "warn" ],

"no-new-wrappers": [ "error" ],
"no-throw-literal": [ "error" ],
"no-unmodified-loop-condition": [ "warn" ],
}
};

0 comments on commit 4f4e6f9

Please sign in to comment.