-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
122 lines (122 loc) · 2.42 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended"
],
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"plugins": [
"@typescript-eslint",
"unused-imports"
],
"rules": {
"camelcase": "off",
"indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"space-before-function-paren": "warn",
"spaced-comment": "warn",
"prefer-const": "warn",
"eqeqeq": "warn",
"@typescript-eslint/no-explicit-any": [
"off"
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-empty-function": "warn",
"array-callback-return": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"comma-dangle": [
"warn",
"never"
],
"no-empty": "warn",
"curly": "warn",
"no-prototype-builtins": "warn",
"no-useless-escape": "warn",
"no-async-promise-executor": "warn",
"no-undef": "warn",
"no-unused-expressions": "warn",
"no-multiple-empty-lines": "warn",
"no-unreachable-loop": "warn",
"padded-blocks": "off",
"semi": [
"warn",
"never"
],
"no-empty-pattern": "warn",
"no-extend-native": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"object-curly-spacing": [
"warn",
"always"
],
"space-infix-ops": [
"warn",
{
"int32Hint": false
}
],
"comma-spacing": [
"warn",
{
"before": false,
"after": true
}
],
"@typescript-eslint/no-var-requires": "warn",
"no-tabs": "off",
"max-len": [
"warn",
{
"code": 120
}
],
"no-use-before-define": [
"off"
],
"linebreak-style": [
"off",
"unix"
],
"space-before-blocks": [
"warn",
"always"
],
"block-spacing": [
"warn",
"always"
],
"keyword-spacing": [
"warn",
{
"before": true,
"after": true
}
],
"brace-style": [
"warn",
"1tbs"
],
"quotes": ["error", "single"]
}
}