134 lines
2.8 KiB
Plaintext
134 lines
2.8 KiB
Plaintext
{
|
|
"rules": {
|
|
"@stylistic/padding-line-between-statements": [
|
|
"error",
|
|
{
|
|
"blankLine": "always",
|
|
"prev": "*",
|
|
"next": [
|
|
"function",
|
|
"class",
|
|
"interface",
|
|
"type",
|
|
"enum",
|
|
"export",
|
|
{
|
|
"selector": "VariableDeclaration:has(VariableDeclarator > :matches(ArrowFunctionExpression, FunctionExpression))"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"blankLine": "always",
|
|
"prev": [
|
|
"function",
|
|
"class",
|
|
"interface",
|
|
"type",
|
|
"enum",
|
|
"export",
|
|
{
|
|
"selector": "VariableDeclaration:has(VariableDeclarator > :matches(ArrowFunctionExpression, FunctionExpression))"
|
|
}
|
|
],
|
|
"next": "*"
|
|
},
|
|
{
|
|
"blankLine": "always",
|
|
"prev": "import",
|
|
"next": "*"
|
|
},
|
|
{
|
|
"blankLine": "any",
|
|
"prev": "import",
|
|
"next": "import"
|
|
},
|
|
{
|
|
"blankLine": "always",
|
|
"prev": [
|
|
"const",
|
|
"let",
|
|
"var"
|
|
],
|
|
"next": "*"
|
|
},
|
|
{
|
|
"blankLine": "any",
|
|
"prev": [
|
|
"const",
|
|
"let",
|
|
"var"
|
|
],
|
|
"next": [
|
|
"const",
|
|
"let",
|
|
"var"
|
|
]
|
|
},
|
|
{
|
|
"blankLine": "always",
|
|
"prev": "*",
|
|
"next": "return"
|
|
},
|
|
{
|
|
"blankLine": "always",
|
|
"prev": {
|
|
"selector": "VariableDeclaration:has(VariableDeclarator > :matches(ArrowFunctionExpression, FunctionExpression))"
|
|
},
|
|
"next": "*"
|
|
},
|
|
{
|
|
"blankLine": "always",
|
|
"prev": "*",
|
|
"next": {
|
|
"selector": "VariableDeclaration:has(VariableDeclarator > :matches(ArrowFunctionExpression, FunctionExpression))"
|
|
}
|
|
},
|
|
{
|
|
"blankLine": "any",
|
|
"prev": "function-overload",
|
|
"next": [
|
|
"function-overload",
|
|
"function"
|
|
]
|
|
},
|
|
{
|
|
"blankLine": "any",
|
|
"prev": {
|
|
"selector": "ExportNamedDeclaration[source], ExportAllDeclaration"
|
|
},
|
|
"next": {
|
|
"selector": "ExportNamedDeclaration[source], ExportAllDeclaration"
|
|
}
|
|
}
|
|
],
|
|
"@stylistic/lines-between-class-members": [
|
|
"error",
|
|
{
|
|
"enforce": [
|
|
{
|
|
"blankLine": "always",
|
|
"prev": "method",
|
|
"next": "*"
|
|
},
|
|
{
|
|
"blankLine": "always",
|
|
"prev": "*",
|
|
"next": "method"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"exceptAfterOverload": true
|
|
}
|
|
],
|
|
"@stylistic/no-multiple-empty-lines": [
|
|
"error",
|
|
{
|
|
"max": 1,
|
|
"maxBOF": 0,
|
|
"maxEOF": 0
|
|
}
|
|
]
|
|
}
|
|
}
|