You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
627 B
29 lines
627 B
1 month ago
|
{
|
||
|
"root": true,
|
||
|
|
||
|
"extends": "@ljharb",
|
||
|
|
||
|
"ignorePatterns": ["dist/"],
|
||
|
|
||
|
"rules": {
|
||
|
"eqeqeq": [2, "allow-null"],
|
||
|
"id-length": [2, { "min": 1, "max": 30 }],
|
||
|
"max-statements": [2, 33],
|
||
|
"max-statements-per-line": [2, { "max": 2 }],
|
||
|
"no-magic-numbers": [1, { "ignore": [0] }],
|
||
|
"no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
|
||
|
},
|
||
|
|
||
|
"overrides": [
|
||
|
{
|
||
|
"files": "test/**",
|
||
|
"rules": {
|
||
|
"no-invalid-this": 1,
|
||
|
"max-lines-per-function": 0,
|
||
|
"max-statements-per-line": [2, { "max": 3 }],
|
||
|
"no-magic-numbers": 0,
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
}
|