-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.js
26 lines (26 loc) · 889 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = {
env: {
node: true,
es2021: true
},
extends: "eslint:recommended",
parserOptions: {
ecmaVersion: 12
},
ignorePatterns: ["/node_modules", "eval.js"],
rules: {
semi: ["error", "always"],
quotes: ["error", "double"],
eqeqeq: ["error", "always"],
camelcase: "error",
"key-spacing": "error",
"keyword-spacing": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": "error",
"prefer-arrow-callback": "error",
"no-use-before-define": ["error", { "functions": false, "classes": true }],
"no-else-return": ["error", { allowElseIf: false }],
"prefer-const": ["error", { "destructuring": "any", "ignoreReadBeforeAssign": false }],
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }]
}
};