2023-12-18 13:12:25 +08:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
|
|
|
|
"extends": "@ljharb",
|
|
|
|
|
|
|
|
"rules": {
|
|
|
|
"id-length": [2, { "min": 1, "max": 26 }],
|
2023-12-28 23:41:32 +08:00
|
|
|
"new-cap": [2, {
|
|
|
|
"capIsNewExceptions": [
|
|
|
|
"GetIntrinsic",
|
|
|
|
"ToObject",
|
|
|
|
"ToIntegerOrInfinity",
|
|
|
|
"ToLength",
|
|
|
|
"SameValueZero",
|
|
|
|
"RequireObjectCoercible",
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": "test/**",
|
|
|
|
"rules": {
|
|
|
|
"max-lines-per-function": 0,
|
|
|
|
"no-invalid-this": 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2023-12-18 13:12:25 +08:00
|
|
|
}
|