mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-12-01 11:55:20 +01:00
26 lines
590 B
Text
26 lines
590 B
Text
{
|
|
"root": true,
|
|
|
|
"extends": "@ljharb",
|
|
|
|
"rules": {
|
|
"complexity": [2, 19],
|
|
"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,
|
|
},
|
|
},
|
|
],
|
|
}
|