-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
54 lines (54 loc) · 1.73 KB
/
.eslintrc.json
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "named-import-spacing"],
"root": true,
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"globalThis": "readonly"
},
"rules": {
"prefer-spread": "off",
"no-console": "off",
"no-useless-escape": "off",
"no-undef": "warn",
"no-unused-vars": "off",
"named-import-spacing/named-import-spacing": 2,
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}],
"semi": ["error", "never"],
"no-unreachable": ["error"],
"no-unexpected-multiline": ["error"],
"prefer-const": "warn",
"no-self-compare": "error",
"no-sparse-arrays": "error",
// "spaced-comment": ["warn", "always", {
// "markers": [
// "#region",
// "#endregion",
// "@ts-expect-error",
// "@ts-ignore",
// "import"
// ]
// }],
"comma-spacing": 2,
"comma-style": 2,
"comma-dangle": ["error", "never"],
"camelcase": 2
}
}