2023-12-18 13:12:25 +08:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
|
|
|
|
"extends": "@ljharb",
|
|
|
|
|
2024-01-16 21:26:16 +08:00
|
|
|
"ignorePatterns": [
|
|
|
|
"dist/",
|
|
|
|
],
|
|
|
|
|
2023-12-18 13:12:25 +08:00
|
|
|
"rules": {
|
|
|
|
"complexity": 0,
|
|
|
|
"consistent-return": 1,
|
2024-01-16 21:26:16 +08:00
|
|
|
"func-name-matching": 0,
|
2023-12-18 13:12:25 +08:00
|
|
|
"id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
|
|
|
|
"indent": [2, 4],
|
|
|
|
"max-lines-per-function": [2, { "max": 150 }],
|
2024-01-16 21:26:16 +08:00
|
|
|
"max-params": [2, 16],
|
|
|
|
"max-statements": [2, 100],
|
2023-12-18 13:12:25 +08:00
|
|
|
"multiline-comment-style": 0,
|
|
|
|
"no-continue": 1,
|
|
|
|
"no-magic-numbers": 0,
|
|
|
|
"no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
|
2024-01-16 21:26:16 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": "test/**",
|
|
|
|
"rules": {
|
|
|
|
"function-paren-newline": 0,
|
|
|
|
"max-lines-per-function": 0,
|
|
|
|
"max-statements": 0,
|
|
|
|
"no-buffer-constructor": 0,
|
|
|
|
"no-extend-native": 0,
|
|
|
|
"no-throw-literal": 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2023-12-18 13:12:25 +08:00
|
|
|
}
|