added more eslint rules

This commit is contained in:
Igor Hrenowitsch Propisnov 2024-05-17 21:04:52 +02:00
parent ffd76dbdce
commit 1de9492ef8
1 changed files with 20 additions and 0 deletions

View File

@ -121,6 +121,26 @@
] ]
} }
], ],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "const", "next": "*" },
{ "blankLine": "always", "prev": "let", "next": "*" },
{ "blankLine": "always", "prev": "var", "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"] }
],
"@typescript-eslint/typedef": [
"error",
{
"arrayDestructuring": true,
"arrowParameter": true,
"memberVariableDeclaration": true,
"objectDestructuring": true,
"parameter": true,
"propertyDeclaration": true,
"variableDeclaration": false,
"variableDeclarationIgnoreFunction": true
}
],
"import/order": [ "import/order": [
"error", "error",
{ {