eslint-config-airbnb-extended 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/index.d.ts +841 -0
- package/dist/base/index.js +23 -0
- package/dist/base/recommended.d.ts +2 -0
- package/dist/base/recommended.js +19 -0
- package/dist/index.d.ts +2654 -0
- package/dist/index.js +29 -0
- package/dist/react/index.d.ts +1798 -0
- package/dist/react/index.js +13 -0
- package/dist/react/recommended.d.ts +2 -0
- package/dist/react/recommended.js +8 -0
- package/dist/rules/best-practices.d.ts +177 -0
- package/dist/rules/best-practices.js +379 -0
- package/dist/rules/errors.d.ts +69 -0
- package/dist/rules/errors.js +151 -0
- package/dist/rules/es6.d.ts +146 -0
- package/dist/rules/es6.js +192 -0
- package/dist/rules/imports.d.ts +157 -0
- package/dist/rules/imports.js +256 -0
- package/dist/rules/node.d.ts +90 -0
- package/dist/rules/node.js +39 -0
- package/dist/rules/react-a11y.d.ts +117 -0
- package/dist/rules/react-a11y.js +255 -0
- package/dist/rules/react-hooks.d.ts +19 -0
- package/dist/rules/react-hooks.js +57 -0
- package/dist/rules/react.d.ts +1664 -0
- package/dist/rules/react.js +583 -0
- package/dist/rules/strict.d.ts +7 -0
- package/dist/rules/strict.js +9 -0
- package/dist/rules/style.d.ts +320 -0
- package/dist/rules/style.js +530 -0
- package/dist/rules/typescript.d.ts +4 -0
- package/dist/rules/typescript.js +264 -0
- package/dist/rules/variables.d.ts +35 -0
- package/dist/rules/variables.js +65 -0
- package/dist/typescript/index.d.ts +5 -0
- package/dist/typescript/index.js +9 -0
- package/dist/typescript/recommended.d.ts +6 -0
- package/dist/typescript/recommended.js +62 -0
- package/package.json +6 -7
- package/CHANGELOG.md +0 -7
- package/base/index.ts +0 -21
- package/base/recommended.ts +0 -17
- package/index.ts +0 -25
- package/react/index.ts +0 -11
- package/react/recommended.ts +0 -6
- package/rules/best-practices.ts +0 -462
- package/rules/errors.ts +0 -199
- package/rules/es6.ts +0 -224
- package/rules/imports.ts +0 -308
- package/rules/node.ts +0 -49
- package/rules/react-a11y.ts +0 -295
- package/rules/react-hooks.ts +0 -26
- package/rules/react.ts +0 -692
- package/rules/strict.ts +0 -9
- package/rules/style.ts +0 -632
- package/rules/typescript.ts +0 -312
- package/rules/variables.ts +0 -76
- package/tsconfig.json +0 -22
- package/typescript/index.ts +0 -7
- package/typescript/recommended.ts +0 -30
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
rules: {
|
|
4
|
+
'array-bracket-newline': ["off", string];
|
|
5
|
+
'array-element-newline': ["off", {
|
|
6
|
+
multiline: boolean;
|
|
7
|
+
minItems: number;
|
|
8
|
+
}];
|
|
9
|
+
'array-bracket-spacing': ["error", string];
|
|
10
|
+
'block-spacing': ["error", string];
|
|
11
|
+
'brace-style': ["error", string, {
|
|
12
|
+
allowSingleLine: boolean;
|
|
13
|
+
}];
|
|
14
|
+
camelcase: ["error", {
|
|
15
|
+
properties: string;
|
|
16
|
+
ignoreDestructuring: boolean;
|
|
17
|
+
}];
|
|
18
|
+
'capitalized-comments': ["off", string, {
|
|
19
|
+
line: {
|
|
20
|
+
ignorePattern: string;
|
|
21
|
+
ignoreInlineComments: boolean;
|
|
22
|
+
ignoreConsecutiveComments: boolean;
|
|
23
|
+
};
|
|
24
|
+
block: {
|
|
25
|
+
ignorePattern: string;
|
|
26
|
+
ignoreInlineComments: boolean;
|
|
27
|
+
ignoreConsecutiveComments: boolean;
|
|
28
|
+
};
|
|
29
|
+
}];
|
|
30
|
+
'comma-dangle': ["error", {
|
|
31
|
+
arrays: string;
|
|
32
|
+
objects: string;
|
|
33
|
+
imports: string;
|
|
34
|
+
exports: string;
|
|
35
|
+
functions: string;
|
|
36
|
+
}];
|
|
37
|
+
'comma-spacing': ["error", {
|
|
38
|
+
before: boolean;
|
|
39
|
+
after: boolean;
|
|
40
|
+
}];
|
|
41
|
+
'comma-style': ["error", string, {
|
|
42
|
+
exceptions: {
|
|
43
|
+
ArrayExpression: boolean;
|
|
44
|
+
ArrayPattern: boolean;
|
|
45
|
+
ArrowFunctionExpression: boolean;
|
|
46
|
+
CallExpression: boolean;
|
|
47
|
+
FunctionDeclaration: boolean;
|
|
48
|
+
FunctionExpression: boolean;
|
|
49
|
+
ImportDeclaration: boolean;
|
|
50
|
+
ObjectExpression: boolean;
|
|
51
|
+
ObjectPattern: boolean;
|
|
52
|
+
VariableDeclaration: boolean;
|
|
53
|
+
NewExpression: boolean;
|
|
54
|
+
};
|
|
55
|
+
}];
|
|
56
|
+
'computed-property-spacing': ["error", string];
|
|
57
|
+
'consistent-this': "off";
|
|
58
|
+
'eol-last': ["error", string];
|
|
59
|
+
'function-call-argument-newline': ["error", string];
|
|
60
|
+
'func-call-spacing': ["error", string];
|
|
61
|
+
'func-name-matching': ["off", string, {
|
|
62
|
+
includeCommonJSModuleExports: boolean;
|
|
63
|
+
considerPropertyDescriptor: boolean;
|
|
64
|
+
}];
|
|
65
|
+
'func-names': "warn";
|
|
66
|
+
'func-style': ["off", string];
|
|
67
|
+
'function-paren-newline': ["error", string];
|
|
68
|
+
'id-denylist': "off";
|
|
69
|
+
'id-length': "off";
|
|
70
|
+
'id-match': "off";
|
|
71
|
+
'implicit-arrow-linebreak': ["error", string];
|
|
72
|
+
indent: ["error", number, {
|
|
73
|
+
SwitchCase: number;
|
|
74
|
+
VariableDeclarator: number;
|
|
75
|
+
outerIIFEBody: number;
|
|
76
|
+
FunctionDeclaration: {
|
|
77
|
+
parameters: number;
|
|
78
|
+
body: number;
|
|
79
|
+
};
|
|
80
|
+
FunctionExpression: {
|
|
81
|
+
parameters: number;
|
|
82
|
+
body: number;
|
|
83
|
+
};
|
|
84
|
+
CallExpression: {
|
|
85
|
+
arguments: number;
|
|
86
|
+
};
|
|
87
|
+
ArrayExpression: number;
|
|
88
|
+
ObjectExpression: number;
|
|
89
|
+
ImportDeclaration: number;
|
|
90
|
+
flatTernaryExpressions: boolean;
|
|
91
|
+
ignoredNodes: string[];
|
|
92
|
+
ignoreComments: boolean;
|
|
93
|
+
}];
|
|
94
|
+
'jsx-quotes': ["off", string];
|
|
95
|
+
'key-spacing': ["error", {
|
|
96
|
+
beforeColon: boolean;
|
|
97
|
+
afterColon: boolean;
|
|
98
|
+
}];
|
|
99
|
+
'keyword-spacing': ["error", {
|
|
100
|
+
before: boolean;
|
|
101
|
+
after: boolean;
|
|
102
|
+
overrides: {
|
|
103
|
+
return: {
|
|
104
|
+
after: boolean;
|
|
105
|
+
};
|
|
106
|
+
throw: {
|
|
107
|
+
after: boolean;
|
|
108
|
+
};
|
|
109
|
+
case: {
|
|
110
|
+
after: boolean;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}];
|
|
114
|
+
'line-comment-position': ["off", {
|
|
115
|
+
position: string;
|
|
116
|
+
ignorePattern: string;
|
|
117
|
+
applyDefaultPatterns: boolean;
|
|
118
|
+
}];
|
|
119
|
+
'linebreak-style': ["error", string];
|
|
120
|
+
'lines-between-class-members': ["error", string, {
|
|
121
|
+
exceptAfterSingleLine: boolean;
|
|
122
|
+
}];
|
|
123
|
+
'lines-around-comment': "off";
|
|
124
|
+
'lines-around-directive': ["error", {
|
|
125
|
+
before: string;
|
|
126
|
+
after: string;
|
|
127
|
+
}];
|
|
128
|
+
'logical-assignment-operators': ["off", string, {
|
|
129
|
+
enforceForIfStatements: boolean;
|
|
130
|
+
}];
|
|
131
|
+
'max-depth': ["off", number];
|
|
132
|
+
'max-len': ["error", number, number, {
|
|
133
|
+
ignoreUrls: boolean;
|
|
134
|
+
ignoreComments: boolean;
|
|
135
|
+
ignoreRegExpLiterals: boolean;
|
|
136
|
+
ignoreStrings: boolean;
|
|
137
|
+
ignoreTemplateLiterals: boolean;
|
|
138
|
+
}];
|
|
139
|
+
'max-lines': ["off", {
|
|
140
|
+
max: number;
|
|
141
|
+
skipBlankLines: boolean;
|
|
142
|
+
skipComments: boolean;
|
|
143
|
+
}];
|
|
144
|
+
'max-lines-per-function': ["off", {
|
|
145
|
+
max: number;
|
|
146
|
+
skipBlankLines: boolean;
|
|
147
|
+
skipComments: boolean;
|
|
148
|
+
IIFEs: boolean;
|
|
149
|
+
}];
|
|
150
|
+
'max-nested-callbacks': "off";
|
|
151
|
+
'max-params': ["off", number];
|
|
152
|
+
'max-statements': ["off", number];
|
|
153
|
+
'max-statements-per-line': ["off", {
|
|
154
|
+
max: number;
|
|
155
|
+
}];
|
|
156
|
+
'multiline-comment-style': ["off", string];
|
|
157
|
+
'multiline-ternary': ["off", string];
|
|
158
|
+
'new-cap': ["error", {
|
|
159
|
+
newIsCap: boolean;
|
|
160
|
+
newIsCapExceptions: never[];
|
|
161
|
+
capIsNew: boolean;
|
|
162
|
+
capIsNewExceptions: string[];
|
|
163
|
+
}];
|
|
164
|
+
'new-parens': "error";
|
|
165
|
+
'newline-after-var': "off";
|
|
166
|
+
'newline-before-return': "off";
|
|
167
|
+
'newline-per-chained-call': ["error", {
|
|
168
|
+
ignoreChainWithDepth: number;
|
|
169
|
+
}];
|
|
170
|
+
'no-array-constructor': "error";
|
|
171
|
+
'no-bitwise': "error";
|
|
172
|
+
'no-continue': "error";
|
|
173
|
+
'no-inline-comments': "off";
|
|
174
|
+
'no-lonely-if': "error";
|
|
175
|
+
'no-mixed-operators': ["error", {
|
|
176
|
+
groups: string[][];
|
|
177
|
+
allowSamePrecedence: boolean;
|
|
178
|
+
}];
|
|
179
|
+
'no-mixed-spaces-and-tabs': "error";
|
|
180
|
+
'no-multi-assign': ["error"];
|
|
181
|
+
'no-multiple-empty-lines': ["error", {
|
|
182
|
+
max: number;
|
|
183
|
+
maxBOF: number;
|
|
184
|
+
maxEOF: number;
|
|
185
|
+
}];
|
|
186
|
+
'no-negated-condition': "off";
|
|
187
|
+
'no-nested-ternary': "error";
|
|
188
|
+
'no-new-object': "error";
|
|
189
|
+
'no-plusplus': "error";
|
|
190
|
+
'no-restricted-syntax': ["error", {
|
|
191
|
+
selector: string;
|
|
192
|
+
message: string;
|
|
193
|
+
}, {
|
|
194
|
+
selector: string;
|
|
195
|
+
message: string;
|
|
196
|
+
}, {
|
|
197
|
+
selector: string;
|
|
198
|
+
message: string;
|
|
199
|
+
}, {
|
|
200
|
+
selector: string;
|
|
201
|
+
message: string;
|
|
202
|
+
}];
|
|
203
|
+
'no-spaced-func': "off";
|
|
204
|
+
'no-tabs': "error";
|
|
205
|
+
'no-ternary': "off";
|
|
206
|
+
'no-trailing-spaces': ["error", {
|
|
207
|
+
skipBlankLines: boolean;
|
|
208
|
+
ignoreComments: boolean;
|
|
209
|
+
}];
|
|
210
|
+
'no-underscore-dangle': ["error", {
|
|
211
|
+
allow: never[];
|
|
212
|
+
allowAfterThis: boolean;
|
|
213
|
+
allowAfterSuper: boolean;
|
|
214
|
+
enforceInMethodNames: boolean;
|
|
215
|
+
}];
|
|
216
|
+
'no-unneeded-ternary': ["error", {
|
|
217
|
+
defaultAssignment: boolean;
|
|
218
|
+
}];
|
|
219
|
+
'no-whitespace-before-property': "error";
|
|
220
|
+
'nonblock-statement-body-position': ["error", string, {
|
|
221
|
+
overrides: {};
|
|
222
|
+
}];
|
|
223
|
+
'object-curly-spacing': ["error", string];
|
|
224
|
+
'object-curly-newline': ["error", {
|
|
225
|
+
ObjectExpression: {
|
|
226
|
+
minProperties: number;
|
|
227
|
+
multiline: boolean;
|
|
228
|
+
consistent: boolean;
|
|
229
|
+
};
|
|
230
|
+
ObjectPattern: {
|
|
231
|
+
minProperties: number;
|
|
232
|
+
multiline: boolean;
|
|
233
|
+
consistent: boolean;
|
|
234
|
+
};
|
|
235
|
+
ImportDeclaration: {
|
|
236
|
+
minProperties: number;
|
|
237
|
+
multiline: boolean;
|
|
238
|
+
consistent: boolean;
|
|
239
|
+
};
|
|
240
|
+
ExportDeclaration: {
|
|
241
|
+
minProperties: number;
|
|
242
|
+
multiline: boolean;
|
|
243
|
+
consistent: boolean;
|
|
244
|
+
};
|
|
245
|
+
}];
|
|
246
|
+
'object-property-newline': ["error", {
|
|
247
|
+
allowAllPropertiesOnSameLine: boolean;
|
|
248
|
+
}];
|
|
249
|
+
'one-var': ["error", string];
|
|
250
|
+
'one-var-declaration-per-line': ["error", string];
|
|
251
|
+
'operator-assignment': ["error", string];
|
|
252
|
+
'operator-linebreak': ["error", string, {
|
|
253
|
+
overrides: {
|
|
254
|
+
'=': string;
|
|
255
|
+
};
|
|
256
|
+
}];
|
|
257
|
+
'padded-blocks': ["error", {
|
|
258
|
+
blocks: string;
|
|
259
|
+
classes: string;
|
|
260
|
+
switches: string;
|
|
261
|
+
}, {
|
|
262
|
+
allowSingleLineBlocks: boolean;
|
|
263
|
+
}];
|
|
264
|
+
'padding-line-between-statements': "off";
|
|
265
|
+
'prefer-exponentiation-operator': "error";
|
|
266
|
+
'prefer-object-spread': "error";
|
|
267
|
+
'quote-props': ["error", string, {
|
|
268
|
+
keywords: boolean;
|
|
269
|
+
unnecessary: boolean;
|
|
270
|
+
numbers: boolean;
|
|
271
|
+
}];
|
|
272
|
+
quotes: ["error", string, {
|
|
273
|
+
avoidEscape: boolean;
|
|
274
|
+
}];
|
|
275
|
+
'require-jsdoc': "off";
|
|
276
|
+
semi: ["error", string];
|
|
277
|
+
'semi-spacing': ["error", {
|
|
278
|
+
before: boolean;
|
|
279
|
+
after: boolean;
|
|
280
|
+
}];
|
|
281
|
+
'semi-style': ["error", string];
|
|
282
|
+
'sort-keys': ["off", string, {
|
|
283
|
+
caseSensitive: boolean;
|
|
284
|
+
natural: boolean;
|
|
285
|
+
}];
|
|
286
|
+
'sort-vars': "off";
|
|
287
|
+
'space-before-blocks': "error";
|
|
288
|
+
'space-before-function-paren': ["error", {
|
|
289
|
+
anonymous: string;
|
|
290
|
+
named: string;
|
|
291
|
+
asyncArrow: string;
|
|
292
|
+
}];
|
|
293
|
+
'space-in-parens': ["error", string];
|
|
294
|
+
'space-infix-ops': "error";
|
|
295
|
+
'space-unary-ops': ["error", {
|
|
296
|
+
words: boolean;
|
|
297
|
+
nonwords: boolean;
|
|
298
|
+
overrides: {};
|
|
299
|
+
}];
|
|
300
|
+
'spaced-comment': ["error", string, {
|
|
301
|
+
line: {
|
|
302
|
+
exceptions: string[];
|
|
303
|
+
markers: string[];
|
|
304
|
+
};
|
|
305
|
+
block: {
|
|
306
|
+
exceptions: string[];
|
|
307
|
+
markers: string[];
|
|
308
|
+
balanced: boolean;
|
|
309
|
+
};
|
|
310
|
+
}];
|
|
311
|
+
'switch-colon-spacing': ["error", {
|
|
312
|
+
after: boolean;
|
|
313
|
+
before: boolean;
|
|
314
|
+
}];
|
|
315
|
+
'template-tag-spacing': ["error", string];
|
|
316
|
+
'unicode-bom': ["error", string];
|
|
317
|
+
'wrap-regex': "off";
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
export default _default;
|