-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
205 lines (190 loc) · 5.29 KB
/
.eslintrc.yml
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
root: true
plugins:
- '@typescript-eslint'
- 'json'
- 'unused-imports'
- 'prefer-arrow'
- 'unicorn'
- 'es-roikoren'
settings:
import/resolver:
webpack:
config: ./webpack.config.js
typescript:
project:
- ./tsconfig.json
- ./tsconfig.spec.json
- ./tests-e2e/tsconfig.json
es-roikoren:
aggressive: true
overrides:
- files:
- '*.ts'
- '*.js'
parser: '@typescript-eslint/parser'
parserOptions:
project:
- ./tsconfig.json
- ./tsconfig.spec.json
- ./tests-e2e/tsconfig.json
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:unicorn/recommended'
- 'plugin:import/recommended'
- 'plugin:import/typescript'
- 'plugin:prettier/recommended'
rules:
arrow-parens: off
arrow-body-style: off
spaced-comment:
- error
- always
complexity:
- error
- 50
unicorn/filename-case:
- error
- case: kebabCase
max-lines:
- error
- 500
max-lines-per-function:
- error
- 150
'@typescript-eslint/no-empty-interface': off
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-namespace': off
'@typescript-eslint/no-this-alias': off
'@typescript-eslint/no-unsafe-declaration-merging': off
'@typescript-eslint/no-unused-vars': error
unicorn/expiring-todo-comments: off
unicorn/no-array-callback-reference: off
unicorn/no-array-method-this-argument: off
unicorn/no-for-loop: off
unicorn/no-null: off
unicorn/no-this-assignment: off
unicorn/no-typeof-undefined: off
unicorn/no-unnecessary-polyfills: off
unicorn/no-useless-undefined: off
unicorn/prefer-array-flat: off
unicorn/prefer-at: off
unicorn/prefer-dom-node-append: off
unicorn/prefer-event-target: off
unicorn/prefer-includes: off
unicorn/prefer-module: off
unicorn/prefer-set-has: off
unicorn/prefer-spread: off
unicorn/prefer-string-replace-all: off
unicorn/prefer-switch: off
unicorn/prefer-top-level-await: off
unicorn/prefer-type-error: off
unicorn/prevent-abbreviations: off
es-roikoren/no-array-from: error
es-roikoren/no-array-isarray: off
es-roikoren/no-array-of: error
es-roikoren/no-array-prototype-copywithin: error
es-roikoren/no-array-prototype-entries: error
es-roikoren/no-array-prototype-every: error
es-roikoren/no-array-prototype-fill: off
es-roikoren/no-array-prototype-filter: off
es-roikoren/no-array-prototype-find: error
es-roikoren/no-array-prototype-findindex: error
es-roikoren/no-array-prototype-flat: error
es-roikoren/no-array-prototype-foreach: error
es-roikoren/no-array-prototype-includes: error
es-roikoren/no-array-prototype-indexof: off
es-roikoren/no-array-prototype-keys: error
es-roikoren/no-array-prototype-lastindexof: error
es-roikoren/no-array-prototype-map: off
es-roikoren/no-array-prototype-reduce: error
es-roikoren/no-array-prototype-reduceright: error
es-roikoren/no-array-prototype-some: off
es-roikoren/no-array-prototype-values: error
es-roikoren/no-array-string-prototype-at: error
no-alert: error
no-console:
- error
- allow:
- error
- warn
no-debugger: error
no-restricted-globals:
- error
- fit
- fdescribe
- xit
- xdescribe
semi:
- error
- always
quotes:
- error
- single
- avoidEscape: true
allowTemplateLiterals: true
import/order:
- error
- newlines-between: always
alphabetize:
order: asc
caseInsensitive: true
groups:
- builtin
- external
- internal
- index
- parent
- sibling
unused-imports/no-unused-imports: error
prefer-arrow/prefer-arrow-functions:
- error
- allowStandaloneDeclarations: true
- files:
- '*.spec.ts'
rules:
max-lines: off
max-lines-per-function: off
unicorn/consistent-function-scoping: off
unicorn/prefer-logical-operator-over-ternary: off
'@typescript-eslint/no-empty-function': off
- files:
- '*.js'
parser: 'espree'
env:
node: true
rules:
unicorn/prefer-module: off
- files:
- 'webpack.config.js'
rules:
'@typescript-eslint/no-var-requires': off
'prefer-arrow/prefer-arrow-functions': off
- files:
- '*.json'
extends:
- 'plugin:json/recommended'
- 'plugin:prettier/recommended'
- files:
- '*.md'
extends:
- 'plugin:mdx/recommended'
- 'plugin:prettier/recommended'
- files:
- 'tsconfig.json'
- 'tsconfig.*.json'
extends:
- 'plugin:json/recommended-with-comments'
- 'plugin:prettier/recommended'
- files:
- '*.yaml'
- '*.yml'
parser: 'yaml-eslint-parser'
extends:
- 'plugin:yml/prettier'
- 'plugin:prettier/recommended'
- files:
- '*.toml'
parser: 'toml-eslint-parser'
extends:
- 'plugin:toml/standard'