generated from idrinth-api-bench/project-defaults
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
181 lines (181 loc) · 3.17 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
env:
browser: true
es2020: true
node: true
extends:
- eslint:recommended
- "plugin:json/recommended"
- "plugin:@typescript-eslint/recommended"
plugins:
- json
ignorePatterns:
- dist,
- cache
- node_modules
root: true
parser: "@typescript-eslint/parser"
rules:
no-await-in-loop: error
no-extra-parens: warn
no-template-curly-in-string: error
class-methods-use-this: error
complexity:
- error
- 5
consistent-return: warn
curly: error
dot-notation: warn
eqeqeq: error
guard-for-in: error
no-alert: error
no-caller: error
no-eval: error
no-extend-native: error
no-extra-bind: warn
no-extra-label: warn
no-invalid-this: error
no-magic-numbers: warn
no-multi-spaces: warn
no-new-wrappers: error
no-new: error
no-console: warn
no-proto: error
no-return-await: error
no-self-compare: error
no-sequences: error
no-throw-literal: error
no-unused-expressions: warn
no-useless-call: warn
no-useless-return: warn
radix: error
require-await: error
require-unicode-regexp: error
wrap-iife:
- error
- inside
no-shadow: error
no-label-var: error
no-undef-init: error
no-undefined: error
no-use-before-define: error
func-call-spacing:
- warn
- never
func-names:
- error
- never
func-style:
- warn
- expression
function-call-argument-newline:
- error
- consistent
implicit-arrow-linebreak:
- warn
- beside
indent:
- warn
- 2
- SwitchCase: 1
key-spacing: warn
keyword-spacing: warn
lines-between-class-members:
- warn
- always
max-depth: warn
max-len:
- warn
- code: 80
ignorePattern: eslint
max-params: warn
newline-per-chained-call: warn
new-parens: error
no-array-constructor: error
no-continue: error
no-lonely-if: error
no-multi-assign: error
no-multiple-empty-lines:
- warn
- max: 1
no-nested-ternary: error
no-new-object: error
no-tabs: warn
no-trailing-spaces: warn
no-unneeded-ternary: error
no-whitespace-before-property: warn
object-curly-newline:
- warn
- multiline: true
minProperties: 1
object-curly-spacing:
- warn
- always
object-property-newline: warn
one-var-declaration-per-line:
- error
- always
quotes:
- warn
- single
semi: error
semi-spacing: warn
semi-style:
- error
- last
space-unary-ops:
- warn
- words: true
nonwords: true
space-before-function-paren:
- warn
- never
space-before-blocks:
- warn
- always
switch-colon-spacing:
- warn
- after: true
before: false
template-tag-spacing:
- warn
- always
eol-last:
- warn
- always
computed-property-spacing:
- warn
- never
comma-style:
- warn
- last
comma-spacing: warn
comma-dangle:
- warn
- always
block-spacing:
- warn
- always
array-element-newline: warn
brace-style: warn
array-bracket-spacing:
- warn
- never
- singleValue: true
array-bracket-newline:
- warn
- minItems: 2
prefer-rest-params: warn
template-curly-spacing:
- warn
- always
prefer-const: error
no-var: error
no-useless-constructor: warn
no-useless-computed-key: warn
no-confusing-arrow: warn
arrow-spacing: warn
arrow-body-style:
- warn
- as-needed
parserOptions:
ecmaVersion: 2018