-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc
55 lines (55 loc) · 1.12 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
{
"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-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"
},
"overrides": [
{
"files": ["*.ts"],
"extends": ["plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
}
}
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".cjs", ".mjs"]
}
}
},
"root": true
}