1 | {
|
2 | "root": true,
|
3 |
|
4 | "extends": "@ljharb",
|
5 |
|
6 | "ignorePatterns": [
|
7 | "dist/",
|
8 | ],
|
9 |
|
10 | "rules": {
|
11 | "complexity": 0,
|
12 | "consistent-return": 1,
|
13 | "func-name-matching": 0,
|
14 | "id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
|
15 | "indent": [2, 4],
|
16 | "max-lines-per-function": [2, { "max": 150 }],
|
17 | "max-params": [2, 16],
|
18 | "max-statements": [2, 53],
|
19 | "multiline-comment-style": 0,
|
20 | "no-continue": 1,
|
21 | "no-magic-numbers": 0,
|
22 | "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
|
23 | },
|
24 |
|
25 | "overrides": [
|
26 | {
|
27 | "files": "test/**",
|
28 | "rules": {
|
29 | "function-paren-newline": 0,
|
30 | "max-lines-per-function": 0,
|
31 | "max-statements": 0,
|
32 | "no-buffer-constructor": 0,
|
33 | "no-extend-native": 0,
|
34 | "no-throw-literal": 0,
|
35 | },
|
36 | },
|
37 | ],
|
38 | }
|