-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc
69 lines (69 loc) · 1.43 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"extends": ["prettier"],
"env": {
"node": true,
"es2022": true
},
"plugins": ["import", "unused-imports", "@typescript-eslint"],
"rules": {
"no-cond-assign": "error",
"no-const-assign": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-dupe-else-if": "warn",
"no-duplicate-imports": "warn",
"no-import-assign": "warn",
"no-unreachable": "error",
"eqeqeq": "error",
"no-var": "error",
"no-undef": "error",
"no-bitwise": "warn",
"import/no-unresolved": [
"error"
],
"import/named": "error",
"import/default": "error",
"import/no-self-import": "error",
"no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"off",
{
"vars": "all",
"varsIgnorePattern": "^(React$|__)",
"argsIgnorePattern": ".*"
}
],
"no-debugger": "error",
"no-empty": "warn",
"no-extra-semi": "error",
"no-global-assign": "warn",
"no-redeclare": "warn",
"no-console": "error"
},
"overrides": [
{
"files": ["*.ts"],
"extends": ["plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
}
},
{
"files": ["*.d.ts"],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
},
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".cjs", ".mjs"]
}
}
},
"root": true
}