-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.eslintrc
More file actions
37 lines (34 loc) · 832 Bytes
/
.eslintrc
File metadata and controls
37 lines (34 loc) · 832 Bytes
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
{
"root": true,
"extends": "@ljharb",
"rules": {
"complexity": [1, 10],
"eqeqeq": [2, "allow-null"],
"func-names": 0,
"id-length": [2, { "min": 1, "max": 23 }],
"max-depth": [2, 5],
"max-len": 0,
"max-lines-per-function": [2, { "max": 300 }],
"max-params": 0,
"max-statements": [1, 10],
"max-statements-per-line": [2, { "max": 2 }],
"new-cap": [2, { "capIsNewExceptions": ["BigInt"] }],
"no-extra-parens": [1],
"no-implicit-coercion": [2, {
"boolean": false,
"number": false,
"string": true
}],
"no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
},
"overrides": [
{
"files": "test/**",
"rules": {
"func-name-matching": 0,
"no-throw-literal": 0,
"prefer-regex-literals": 0,
},
},
],
}