-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
42 lines (42 loc) · 1.16 KB
/
.eslintrc
File metadata and controls
42 lines (42 loc) · 1.16 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"mocha": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-console": "off",
"no-var": "error",
"prefer-const": "error",
"prefer-arrow-callback": "warn",
"no-param-reassign": "warn",
"eqeqeq": ["error", "always"],
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"comma-dangle": ["error", "only-multiline"],
"max-len": ["warn", { "code": 120, "ignoreStrings": true }],
"no-trailing-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 2 }],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"no-eval": "error",
"no-implied-eval": "error",
"no-new-func": "error",
"no-script-url": "error",
"no-throw-literal": "error",
"prefer-promise-reject-errors": "error"
}
}