-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
244 lines (244 loc) · 8.01 KB
/
.eslintrc.js
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
ignorePatterns: [],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module'
},
plugins: [
'@typescript-eslint',
'@typescript-eslint/tslint',
'eslint-plugin-prettier',
'eslint-plugin-import',
'eslint-plugin-standard',
'eslint-plugin-prefer-arrow',
'jest'
],
rules: {
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'camelcase': 'off',
'@typescript-eslint/camelcase': ['off'],
'prettier/prettier': ['off'],
'arrow-body-style': 'off',
'curly': 'off',
'lines-around-comment': [0],
'max-len': 'off',
'no-confusing-arrow': [0],
'no-mixed-operators': [0],
'no-tabs': [0],
'no-unexpected-multiline': [0],
'prefer-arrow-callback': [0],
'quotes': ['error', 'single', { allowTemplateLiterals: true }],
'array-bracket-newline': ['off'],
'array-bracket-spacing': ['off'],
'array-element-newline': ['off'],
'arrow-parens': ['off', 'as-needed'],
'arrow-spacing': ['off'],
'block-spacing': ['off'],
'brace-style': ['off'],
'comma-dangle': 'off',
'comma-spacing': ['off'],
'comma-style': ['off'],
'computed-property-spacing': ['off'],
'dot-location': ['off'],
'eol-last': 'off',
'func-call-spacing': ['off'],
'function-call-argument-newline': ['off'],
'function-paren-newline': ['off'],
'generator-star': ['off'],
'generator-star-spacing': ['off'],
'implicit-arrow-linebreak': ['off'],
'jsx-quotes': ['off'],
'key-spacing': ['off'],
'keyword-spacing': ['off'],
'linebreak-style': ['error', 'unix'],
'multiline-ternary': ['off'],
'newline-per-chained-call': 'off',
'new-parens': 'off',
'no-arrow-condition': ['off'],
'no-comma-dangle': ['off'],
'no-extra-parens': ['off'],
'no-extra-semi': 'off',
'no-floating-decimal': ['off'],
'no-mixed-spaces-and-tabs': ['off'],
'no-multi-spaces': ['off'],
'no-multiple-empty-lines': 'off',
'no-reserved-keys': ['off'],
'no-space-before-semi': ['off'],
'no-trailing-spaces': 'off',
'no-whitespace-before-property': ['off'],
'no-wrap-func': ['off'],
'nonblock-statement-body-position': ['off'],
'object-curly-newline': ['off'],
'object-curly-spacing': ['off'],
'object-property-newline': ['off'],
'one-var-declaration-per-line': ['off'],
'operator-linebreak': ['off'],
'padded-blocks': ['off'],
'quote-props': 'off',
'rest-spread-spacing': ['off'],
semi: ['off'],
'semi-spacing': ['off'],
'semi-style': ['off'],
'space-after-function-name': ['off'],
'space-after-keywords': ['off'],
'space-before-blocks': ['off'],
'space-before-function-paren': 'off',
'space-before-function-parentheses': ['off'],
'space-before-keywords': ['off'],
'space-in-brackets': ['off'],
'space-in-parens': ['off', 'never'],
'space-infix-ops': ['off'],
'space-return-throw-case': ['off'],
'space-unary-ops': ['off'],
'space-unary-word-ops': ['off'],
'switch-colon-spacing': ['off'],
'template-curly-spacing': ['off'],
'template-tag-spacing': ['off'],
'unicode-bom': ['off'],
'wrap-iife': ['off'],
'wrap-regex': ['off'],
'yield-star-spacing': ['off'],
'no-spaced-func': ['off'],
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: false
}
],
'require-await': 'off',
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/prefer-includes': 'off',
'@typescript-eslint': ['off'],
'@typescript-eslint/quotes': ['error', 'single', { allowTemplateLiterals: true }],
'@typescript-eslint/brace-style': ['off'],
'@typescript-eslint/comma-spacing': ['off'],
'@typescript-eslint/func-call-spacing': ['off'],
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true
},
singleline: {
delimiter: 'semi',
requireLast: false
}
}
],
'@typescript-eslint/no-extra-parens': ['off'],
'@typescript-eslint/no-extra-semi': ['off'],
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/space-before-function-paren': ['off'],
'@typescript-eslint/type-annotation-spacing': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/ban-ts-ignore': ['off'],
'@typescript-eslint/ban-types': 'error',
'@typescript-eslint/class-name-casing': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/explicit-function-return-type': ['off'],
'@typescript-eslint/interface-name-prefix': 'off',
'no-array-constructor': ['off'],
'@typescript-eslint/no-array-constructor': ['error'],
'no-empty-function': ['off'],
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': ['error'],
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': ['warn'],
'@typescript-eslint/no-this-alias': ['error'],
'no-unused-vars': ['off'],
'@typescript-eslint/no-unused-vars': ['off'],
'no-use-before-define': ['off'],
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/triple-slash-reference': 'error',
'no-var': 'error',
'prefer-const': 'warn',
'prefer-rest-params': ['error'],
'prefer-spread': ['error'],
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/explicit-member-accessibility': [
'off',
{
accessibility: 'explicit'
}
],
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/prefer-for-of': 'off',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/unified-signatures': 'error',
complexity: 'off',
'constructor-super': 'error',
'dot-notation': 'off',
eqeqeq: ['error', 'always'],
'guard-for-in': 'error',
'id-blacklist': 'off',
'id-match': 'off',
'import/order': ['error', { alphabetize: { order: 'asc' } }],
'max-classes-per-file': 'off',
'no-bitwise': 'off',
'no-caller': 'error',
'no-cond-assign': 'error',
'no-console': 'off',
'no-debugger': 'error',
'no-empty': 'off',
'no-eval': 'error',
'no-fallthrough': 'off',
'no-invalid-this': 'off',
'no-irregular-whitespace': 'off',
'no-new-wrappers': 'error',
'no-shadow': [
'off',
{
hoist: 'all'
}
],
'no-throw-literal': 'error',
'no-undef-init': 'error',
'no-underscore-dangle': 'off',
'no-unsafe-finally': 'error',
'no-unused-expressions': 'off',
'no-unused-labels': 'error',
'object-shorthand': 'error',
'one-var': ['error', 'never'],
'prefer-arrow/prefer-arrow-functions': 'error',
radix: 'error',
'spaced-comment': 'error',
'use-isnan': 'error',
'valid-typeof': 'off',
'@typescript-eslint/tslint/config': [
'error',
{
rules: {
'jsdoc-format': false,
'no-reference-import': true
}
}
],
'@typescript-eslint/unbound-method': ['off', { ignoreStatic: false }]
},
settings: {}
};