-
Notifications
You must be signed in to change notification settings - Fork 166
/
.eslintrc.json
44 lines (44 loc) · 981 Bytes
/
.eslintrc.json
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
43
44
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:import/recommended"],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"array-callback-return": 2,
"consistent-return": 2,
"constructor-super": 1,
"no-cond-assign": 2,
"no-console": [1, { "allow": ["log", "error"] }],
"no-const-assign": 1,
"no-constant-condition": 2,
"no-dupe-keys": 2,
"no-else-return": 2,
"no-extra-bind": 2,
"no-magic-numbers": 0,
"no-param-reassign": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-sequences": 2,
"no-this-before-super": 1,
"no-undef": 2,
"no-unreachable": 2,
"no-unused-expressions": 1,
"no-unused-vars": [
1,
{ "args": "after-used", "ignoreRestSiblings": true }
],
"no-use-before-define": [2, { "functions": false }],
"no-useless-call": 2,
"use-isnan": 2,
"valid-typeof": 2,
"eqeqeq": 2,
"yoda": 1,
"no-mixed-spaces-and-tabs": 0
}
}