eslint-config-airbnb-extended 0.0.9 → 0.1.0
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/CHANGELOG.md +7 -0
- package/base/index.ts +21 -0
- package/base/recommended.ts +17 -0
- package/index.ts +25 -0
- package/package.json +12 -31
- package/react/index.ts +11 -0
- package/react/recommended.ts +6 -0
- package/rules/best-practices.ts +462 -0
- package/rules/errors.ts +199 -0
- package/rules/es6.ts +224 -0
- package/rules/imports.ts +308 -0
- package/rules/node.ts +49 -0
- package/rules/react-a11y.ts +295 -0
- package/rules/react-hooks.ts +26 -0
- package/rules/react.ts +692 -0
- package/rules/strict.ts +9 -0
- package/rules/style.ts +632 -0
- package/rules/typescript.ts +312 -0
- package/rules/variables.ts +76 -0
- package/tsconfig.json +22 -0
- package/typescript/index.ts +7 -0
- package/typescript/recommended.ts +30 -0
- package/README.md +0 -1
- package/dist/base/index.d.ts +0 -841
- package/dist/base/index.js +0 -23
- package/dist/base/recommended.d.ts +0 -2
- package/dist/base/recommended.js +0 -19
- package/dist/index.d.ts +0 -2654
- package/dist/index.js +0 -29
- package/dist/react/index.d.ts +0 -1798
- package/dist/react/index.js +0 -13
- package/dist/react/recommended.d.ts +0 -2
- package/dist/react/recommended.js +0 -8
- package/dist/rules/best-practices.d.ts +0 -177
- package/dist/rules/best-practices.js +0 -379
- package/dist/rules/errors.d.ts +0 -69
- package/dist/rules/errors.js +0 -151
- package/dist/rules/es6.d.ts +0 -146
- package/dist/rules/es6.js +0 -192
- package/dist/rules/imports.d.ts +0 -157
- package/dist/rules/imports.js +0 -256
- package/dist/rules/node.d.ts +0 -90
- package/dist/rules/node.js +0 -39
- package/dist/rules/react-a11y.d.ts +0 -117
- package/dist/rules/react-a11y.js +0 -255
- package/dist/rules/react-hooks.d.ts +0 -19
- package/dist/rules/react-hooks.js +0 -57
- package/dist/rules/react.d.ts +0 -1664
- package/dist/rules/react.js +0 -586
- package/dist/rules/strict.d.ts +0 -7
- package/dist/rules/strict.js +0 -9
- package/dist/rules/style.d.ts +0 -320
- package/dist/rules/style.js +0 -530
- package/dist/rules/typescript.d.ts +0 -4
- package/dist/rules/typescript.js +0 -264
- package/dist/rules/variables.d.ts +0 -35
- package/dist/rules/variables.js +0 -65
- package/dist/typescript/index.d.ts +0 -5
- package/dist/typescript/index.js +0 -9
- package/dist/typescript/recommended.d.ts +0 -6
- package/dist/typescript/recommended.js +0 -62
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -4
package/dist/rules/style.d.ts
DELETED
|
@@ -1,320 +0,0 @@
|
|
|
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;
|