2023-12-18 13:12:25 +08:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
|
|
|
|
"extends": "@ljharb",
|
|
|
|
|
|
|
|
"rules": {
|
|
|
|
"complexity": [2, 14],
|
|
|
|
"func-name-matching": 0,
|
|
|
|
"id-length": [2, { "min": 1, "max": 24, "properties": "never" }],
|
|
|
|
"max-statements": [2, 20],
|
|
|
|
"new-cap": [2, { "capIsNewExceptions": ["GetMethod"] }]
|
2023-12-28 23:41:32 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": "test/**",
|
|
|
|
"rules": {
|
|
|
|
"max-lines-per-function": [2, { "max": 68 }],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
2023-12-18 13:12:25 +08:00
|
|
|
}
|