-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
36 lines (36 loc) · 1.46 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"ignorePatterns": ["*.lock", ".*"],
"parser": "@typescript-eslint/parser",
"plugins": ["@stylistic", "@typescript-eslint"],
"root": true,
"rules": {
"@stylistic/padding-line-between-statements": [
2,
{ "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": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "block-like", "next": "*" },
{ "blankLine": "never", "prev": "case", "next": "*" },
{ "blankLine": "never", "prev": "*", "next": "case" },
{ "blankLine": "always", "prev": "function", "next": "*" },
{ "blankLine": "always", "prev": "import", "next": "*" },
{ "blankLine": "any", "prev": "import", "next": "import" }
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": [0, { "args": "after-used", "caughtErrors": "none" }],
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-empty-function": 0,
"prefer-const": [0, { "destructuring": "all" }],
"no-console": "error",
"no-sparse-arrays": 0
},
"env": {
"browser": true,
"node": true,
"jest": true,
"es2023": true
}
}