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.
52 lines
1.0 KiB
52 lines
1.0 KiB
{
|
|
"root": true,
|
|
|
|
"extends": "@ljharb",
|
|
|
|
"rules": {
|
|
"complexity": [2, 12],
|
|
"func-name-matching": 0,
|
|
"id-length": 0,
|
|
"max-nested-callbacks": [2, 3],
|
|
"max-params": [2, 4],
|
|
"max-statements-per-line": [2, { "max": 2 }],
|
|
"max-statements": [2, 24],
|
|
"new-cap": [2, {
|
|
"capIsNewExceptions": [
|
|
"AdvanceStringIndex",
|
|
"Call",
|
|
"Construct",
|
|
"CreateIterResultObject",
|
|
"CreateRegExpStringIterator",
|
|
"Get",
|
|
"GetIntrinsic",
|
|
"GetMethod",
|
|
"Invoke",
|
|
"IsRegExp",
|
|
"MatchAllIterator",
|
|
"ObjectCreate",
|
|
"RegExpExec",
|
|
"RequireObjectCoercible",
|
|
"Set",
|
|
"SpeciesConstructor",
|
|
"ToBoolean",
|
|
"ToLength",
|
|
"ToString",
|
|
"Type",
|
|
],
|
|
}],
|
|
"no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
|
|
"operator-linebreak": [2, "before"],
|
|
},
|
|
|
|
"overrides": [
|
|
{
|
|
"files": "test/**",
|
|
"rules": {
|
|
"max-lines-per-function": 0,
|
|
"max-nested-callbacks": 0,
|
|
"prefer-regex-literals": 0,
|
|
},
|
|
},
|
|
],
|
|
}
|
|
|