1 | {
|
2 | "root": true,
|
3 | "extends": "@ljharb",
|
4 | "rules": {
|
5 | "complexity": 0,
|
6 | "eqeqeq": [2, "always", { "null": "ignore" }],
|
7 | "func-style": [2, "declaration"],
|
8 | "id-length": 0,
|
9 | "indent": [2, 2],
|
10 | "max-params": [2, 6],
|
11 | "max-statements-per-line": [2, { "max": 2 }],
|
12 | "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }],
|
13 | "no-magic-numbers": [2, { "ignore": [0, 1] }],
|
14 | "operator-linebreak": [2, "before"],
|
15 | },
|
16 | "globals": {
|
17 | "WeakMap": false,
|
18 | "WeakSet": false,
|
19 | },
|
20 | "overrides": [
|
21 | {
|
22 | "files": "example/**",
|
23 | "rules": {
|
24 | "no-console": 0,
|
25 | "no-magic-numbers": 0,
|
26 | }
|
27 | },
|
28 | {
|
29 | "files": "test/**",
|
30 | "rules": {
|
31 | "max-lines-per-function": 0,
|
32 | "max-params": 0,
|
33 | "no-magic-numbers": 0,
|
34 | "operator-linebreak": [2, "before"],
|
35 | },
|
36 | },
|
37 | ],
|
38 | }
|