1
|
{
|
2
|
"root": true,
|
3
|
"extends": "@ljharb",
|
4
|
"rules": {
|
5
|
"complexity": 0,
|
6
|
"func-style": [2, 'declaration'],
|
7
|
"indent": [2, 4],
|
8
|
"max-lines-per-function": [2, 130],
|
9
|
"max-params": [2, 4],
|
10
|
"max-statements": [2, 90],
|
11
|
"max-statements-per-line": [2, { "max": 2 }],
|
12
|
"no-magic-numbers": 0,
|
13
|
"no-param-reassign": 1,
|
14
|
"strict": 0, // TODO
|
15
|
},
|
16
|
"globals": {
|
17
|
"BigInt": false,
|
18
|
"WeakSet": false,
|
19
|
"WeakMap": false,
|
20
|
},
|
21
|
"overrides": [
|
22
|
{
|
23
|
"files": ["test/**", "test-*", "example/**"],
|
24
|
"rules": {
|
25
|
"array-bracket-newline": 0,
|
26
|
"max-params": 0,
|
27
|
"max-statements": 0,
|
28
|
"max-statements-per-line": 0,
|
29
|
"object-curly-newline": 0,
|
30
|
"sort-keys": 0,
|
31
|
},
|
32
|
},
|
33
|
{
|
34
|
"files": ["example/**"],
|
35
|
"rules": {
|
36
|
"no-console": 0,
|
37
|
},
|
38
|
},
|
39
|
{
|
40
|
"files": ["test/browser/**"],
|
41
|
"env": {
|
42
|
"browser": true,
|
43
|
},
|
44
|
},
|
45
|
{
|
46
|
"files": ["test/bigint*"],
|
47
|
"rules": {
|
48
|
"new-cap": [2, { "capIsNewExceptions": ["BigInt"] }],
|
49
|
},
|
50
|
},
|
51
|
{
|
52
|
"files": "index.js",
|
53
|
"globals": {
|
54
|
"HTMLElement": false,
|
55
|
},
|
56
|
"rules": {
|
57
|
"no-use-before-define": 1,
|
58
|
},
|
59
|
},
|
60
|
],
|
61
|
}
|