-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
42 lines (42 loc) · 1.42 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
{
"parser": "@typescript-eslint/parser",
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint", "named-import-spacing"],
"root": true,
"env": {
"es2021": true,
"node": true,
"commonjs": true,
"browser": true
},
"rules": {
"prefer-const": "warn",
"no-self-compare": "error",
"no-console": "off",
"no-useless-escape": "off",
"no-unused-vars": "off",
"no-undef": "warn",
"no-unreachable": ["error"],
"no-unexpected-multiline": ["error"],
"no-constant-condition": "off",
"no-inner-declarations": "off",
"@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"],
"comma-dangle": ["error", "never"],
"comma-spacing": 2,
"comma-style": 2,
"named-import-spacing/named-import-spacing": 2
}
}