eslint-config-airbnb-extended 0.3.1 → 0.5.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.
Files changed (66) hide show
  1. package/README.md +10 -0
  2. package/dist/@types/index.d.ts +22 -0
  3. package/dist/configs/base/index.js +26 -0
  4. package/dist/{base → configs/base}/recommended.js +4 -4
  5. package/dist/configs/index.js +34 -0
  6. package/dist/{react → configs/react}/index.js +5 -4
  7. package/dist/{react → configs/react}/recommended.js +5 -6
  8. package/dist/configs/typescript/index.js +14 -0
  9. package/dist/{typescript → configs/typescript}/recommended.js +7 -6
  10. package/dist/helpers/getDevDepsList.js +1 -2
  11. package/dist/index.js +11 -37
  12. package/dist/plugins/index.js +21 -0
  13. package/dist/plugins/nextPlugin.js +12 -0
  14. package/dist/plugins/reactA11yPlugin.js +12 -0
  15. package/dist/plugins/reactHooksPlugin.js +44 -0
  16. package/dist/plugins/reactPlugin.js +13 -0
  17. package/dist/plugins/typescriptEslintPlugin.js +13 -0
  18. package/dist/rules/best-practices.js +65 -42
  19. package/dist/rules/errors.js +24 -32
  20. package/dist/rules/es6.js +2 -33
  21. package/dist/rules/imports.js +9 -14
  22. package/dist/rules/importsStrict.js +3 -16
  23. package/dist/rules/index.js +22 -0
  24. package/dist/rules/next.js +2 -4
  25. package/dist/rules/node.js +2 -1
  26. package/dist/rules/react-a11y.js +81 -80
  27. package/dist/rules/react-hooks.js +6 -42
  28. package/dist/rules/react.js +374 -340
  29. package/dist/rules/reactStrict.js +86 -0
  30. package/dist/rules/strict.js +2 -1
  31. package/dist/rules/style.js +38 -365
  32. package/dist/rules/stylistic.js +526 -0
  33. package/dist/rules/typescript/typescriptBase.js +3 -2
  34. package/dist/rules/typescript/typescriptEslint.js +22 -34
  35. package/dist/rules/typescript/typescriptImports.js +8 -4
  36. package/dist/rules/variables.js +2 -3
  37. package/package.json +3 -3
  38. package/dist/base/index.d.ts +0 -990
  39. package/dist/base/index.js +0 -23
  40. package/dist/base/recommended.d.ts +0 -990
  41. package/dist/helpers/getDevDepsList.d.ts +0 -3
  42. package/dist/index.d.ts +0 -17982
  43. package/dist/react/index.d.ts +0 -1793
  44. package/dist/react/recommended.d.ts +0 -2786
  45. package/dist/rules/best-practices.d.ts +0 -177
  46. package/dist/rules/errors.d.ts +0 -69
  47. package/dist/rules/es6.d.ts +0 -146
  48. package/dist/rules/imports.d.ts +0 -151
  49. package/dist/rules/importsStrict.d.ts +0 -43
  50. package/dist/rules/next.d.ts +0 -8
  51. package/dist/rules/node.d.ts +0 -90
  52. package/dist/rules/react-a11y.d.ts +0 -117
  53. package/dist/rules/react-hooks.d.ts +0 -19
  54. package/dist/rules/react.d.ts +0 -1659
  55. package/dist/rules/strict.d.ts +0 -7
  56. package/dist/rules/style.d.ts +0 -320
  57. package/dist/rules/typescript/typescriptBase.d.ts +0 -23
  58. package/dist/rules/typescript/typescriptEslint.d.ts +0 -3
  59. package/dist/rules/typescript/typescriptImports.d.ts +0 -37
  60. package/dist/rules/typescript.d.ts +0 -47
  61. package/dist/rules/typescript.js +0 -9
  62. package/dist/rules/variables.d.ts +0 -35
  63. package/dist/typescript/index.d.ts +0 -58
  64. package/dist/typescript/index.js +0 -11
  65. package/dist/typescript/recommended.d.ts +0 -112
  66. package/dist/utils/index.d.ts +0 -13
@@ -1,7 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- rules: {
4
- strict: ["error", string];
5
- };
6
- };
7
- export default _default;
@@ -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;
@@ -1,23 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- rules: {
4
- 'constructor-super': "off";
5
- 'getter-return': "off";
6
- 'no-class-assign': "off";
7
- 'no-const-assign': "off";
8
- 'no-dupe-args': "off";
9
- 'no-dupe-keys': "off";
10
- 'no-func-assign': "off";
11
- 'no-import-assign': "off";
12
- 'no-new-native-nonconstructor': "off";
13
- 'no-obj-calls': "off";
14
- 'no-setter-return': "off";
15
- 'no-this-before-super': "off";
16
- 'no-undef': "off";
17
- 'no-unreachable': "off";
18
- 'no-unsafe-negation': "off";
19
- 'no-with': "off";
20
- 'valid-typeof': "off";
21
- };
22
- };
23
- export default _default;
@@ -1,3 +0,0 @@
1
- import type { Linter } from 'eslint';
2
- declare const _default: Linter.Config;
3
- export default _default;
@@ -1,37 +0,0 @@
1
- /**
2
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/master/src/config/typescript.ts
3
- */
4
- declare const _default: {
5
- name: string;
6
- settings: {
7
- 'import-x/parsers': {
8
- '@typescript-eslint/parser': (string | string[])[];
9
- };
10
- 'import-x/resolver': {
11
- node: {
12
- extensions: (string | string[])[];
13
- };
14
- };
15
- 'import-x/resolver-next': {
16
- interfaceVersion: number;
17
- name: string;
18
- resolve(source: string, file: string): ResolvedResult;
19
- }[];
20
- 'import-x/extensions': string[];
21
- 'import-x/external-module-folders': string[];
22
- };
23
- rules: {
24
- 'import-x/extensions': ["error", string, {
25
- [k: string]: string;
26
- }];
27
- 'import-x/no-extraneous-dependencies': ["error", {
28
- devDependencies: string[];
29
- optionalDependencies: boolean;
30
- peerDependencies: boolean;
31
- bundledDependencies: boolean;
32
- }];
33
- 'import-x/named': "off";
34
- 'import-x/no-named-as-default-member': "off";
35
- };
36
- };
37
- export default _default;
@@ -1,47 +0,0 @@
1
- import type { Linter } from 'eslint';
2
- declare const _default: (Linter.Config<Linter.RulesRecord> | {
3
- name: string;
4
- files: string[];
5
- rules: {
6
- 'constructor-super': "off";
7
- 'getter-return': "off";
8
- 'no-class-assign': "off";
9
- 'no-const-assign': "off";
10
- 'no-dupe-args': "off";
11
- 'no-dupe-keys': "off";
12
- 'no-func-assign': "off";
13
- 'no-import-assign': "off";
14
- 'no-new-native-nonconstructor': "off";
15
- 'no-obj-calls': "off";
16
- 'no-setter-return': "off";
17
- 'no-this-before-super': "off";
18
- 'no-undef': "off";
19
- 'no-unreachable': "off";
20
- 'no-unsafe-negation': "off";
21
- 'no-with': "off";
22
- 'valid-typeof': "off";
23
- };
24
- } | {
25
- name: string;
26
- settings: {
27
- 'import-x/resolver': {
28
- node: {
29
- extensions: (string | string[])[];
30
- };
31
- };
32
- 'import-x/extensions': string[];
33
- 'import-x/external-module-folders': string[];
34
- };
35
- rules: {
36
- 'import-x/extensions': ["error", string, {
37
- [k: string]: string;
38
- }];
39
- 'import-x/no-extraneous-dependencies': ["error", {
40
- devDependencies: string[];
41
- optionalDependencies: boolean;
42
- peerDependencies: boolean;
43
- bundledDependencies: boolean;
44
- }];
45
- };
46
- })[];
47
- export default _default;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const typescriptBase_1 = __importDefault(require("../rules/typescript/typescriptBase"));
7
- const typescriptEslint_1 = __importDefault(require("../rules/typescript/typescriptEslint"));
8
- const typescriptImports_1 = __importDefault(require("../rules/typescript/typescriptImports"));
9
- exports.default = [typescriptBase_1.default, typescriptEslint_1.default, typescriptImports_1.default];
@@ -1,35 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- rules: {
4
- 'init-declarations': "off";
5
- 'no-catch-shadow': "off";
6
- 'no-delete-var': "error";
7
- 'no-label-var': "error";
8
- 'no-restricted-globals': ["error", {
9
- name: string;
10
- message: string;
11
- }, {
12
- name: string;
13
- message: string;
14
- }, ...{
15
- name: "self" | "location" | "length" | "find" | "addEventListener" | "blur" | "close" | "closed" | "confirm" | "defaultStatus" | "defaultstatus" | "event" | "external" | "focus" | "frameElement" | "frames" | "history" | "innerHeight" | "innerWidth" | "locationbar" | "menubar" | "moveBy" | "moveTo" | "name" | "onblur" | "onerror" | "onfocus" | "onload" | "onresize" | "onunload" | "open" | "opener" | "opera" | "outerHeight" | "outerWidth" | "pageXOffset" | "pageYOffset" | "parent" | "print" | "removeEventListener" | "resizeBy" | "resizeTo" | "screen" | "screenLeft" | "screenTop" | "screenX" | "screenY" | "scroll" | "scrollbars" | "scrollBy" | "scrollTo" | "scrollX" | "scrollY" | "status" | "statusbar" | "stop" | "toolbar" | "top";
16
- message: string;
17
- }[]];
18
- 'no-shadow': "error";
19
- 'no-shadow-restricted-names': "error";
20
- 'no-undef': "error";
21
- 'no-undef-init': "error";
22
- 'no-undefined': "off";
23
- 'no-unused-vars': ["error", {
24
- vars: string;
25
- args: string;
26
- ignoreRestSiblings: boolean;
27
- }];
28
- 'no-use-before-define': ["error", {
29
- functions: boolean;
30
- classes: boolean;
31
- variables: boolean;
32
- }];
33
- };
34
- };
35
- export default _default;
@@ -1,58 +0,0 @@
1
- import type { Linter } from 'eslint';
2
- declare const _default: {
3
- typescript: (Linter.Config<Linter.RulesRecord> | {
4
- name: string;
5
- rules: {
6
- 'constructor-super': "off";
7
- 'getter-return': "off";
8
- 'no-class-assign': "off";
9
- 'no-const-assign': "off";
10
- 'no-dupe-args': "off";
11
- 'no-dupe-keys': "off";
12
- 'no-func-assign': "off";
13
- 'no-import-assign': "off";
14
- 'no-new-native-nonconstructor': "off";
15
- 'no-obj-calls': "off";
16
- 'no-setter-return': "off";
17
- 'no-this-before-super': "off";
18
- 'no-undef': "off";
19
- 'no-unreachable': "off";
20
- 'no-unsafe-negation': "off";
21
- 'no-with': "off";
22
- 'valid-typeof': "off";
23
- };
24
- } | {
25
- name: string;
26
- settings: {
27
- 'import-x/parsers': {
28
- '@typescript-eslint/parser': (string | string[])[];
29
- };
30
- 'import-x/resolver': {
31
- node: {
32
- extensions: (string | string[])[];
33
- };
34
- };
35
- 'import-x/resolver-next': {
36
- interfaceVersion: number;
37
- name: string;
38
- resolve(source: string, file: string): ResolvedResult;
39
- }[];
40
- 'import-x/extensions': string[];
41
- 'import-x/external-module-folders': string[];
42
- };
43
- rules: {
44
- 'import-x/extensions': ["error", string, {
45
- [k: string]: string;
46
- }];
47
- 'import-x/no-extraneous-dependencies': ["error", {
48
- devDependencies: string[];
49
- optionalDependencies: boolean;
50
- peerDependencies: boolean;
51
- bundledDependencies: boolean;
52
- }];
53
- 'import-x/named': "off";
54
- 'import-x/no-named-as-default-member': "off";
55
- };
56
- })[];
57
- };
58
- export default _default;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const typescriptBase_1 = __importDefault(require("../rules/typescript/typescriptBase"));
7
- const typescriptEslint_1 = __importDefault(require("../rules/typescript/typescriptEslint"));
8
- const typescriptImports_1 = __importDefault(require("../rules/typescript/typescriptImports"));
9
- exports.default = {
10
- typescript: [typescriptBase_1.default, typescriptEslint_1.default, typescriptImports_1.default],
11
- };
@@ -1,112 +0,0 @@
1
- import type { Linter } from 'eslint';
2
- declare const _default: {
3
- base: (Linter.Config<Linter.RulesRecord> | {
4
- name: string;
5
- rules: {
6
- 'constructor-super': "off";
7
- 'getter-return': "off";
8
- 'no-class-assign': "off";
9
- 'no-const-assign': "off";
10
- 'no-dupe-args': "off";
11
- 'no-dupe-keys': "off";
12
- 'no-func-assign': "off";
13
- 'no-import-assign': "off";
14
- 'no-new-native-nonconstructor': "off";
15
- 'no-obj-calls': "off";
16
- 'no-setter-return': "off";
17
- 'no-this-before-super': "off";
18
- 'no-undef': "off";
19
- 'no-unreachable': "off";
20
- 'no-unsafe-negation': "off";
21
- 'no-with': "off";
22
- 'valid-typeof': "off";
23
- };
24
- } | {
25
- name: string;
26
- settings: {
27
- 'import-x/parsers': {
28
- '@typescript-eslint/parser': (string | string[])[];
29
- };
30
- 'import-x/resolver': {
31
- node: {
32
- extensions: (string | string[])[];
33
- };
34
- };
35
- 'import-x/resolver-next': {
36
- interfaceVersion: number;
37
- name: string;
38
- resolve(source: string, file: string): ResolvedResult;
39
- }[];
40
- 'import-x/extensions': string[];
41
- 'import-x/external-module-folders': string[];
42
- };
43
- rules: {
44
- 'import-x/extensions': ["error", string, {
45
- [k: string]: string;
46
- }];
47
- 'import-x/no-extraneous-dependencies': ["error", {
48
- devDependencies: string[];
49
- optionalDependencies: boolean;
50
- peerDependencies: boolean;
51
- bundledDependencies: boolean;
52
- }];
53
- 'import-x/named': "off";
54
- 'import-x/no-named-as-default-member': "off";
55
- };
56
- })[];
57
- react: (Linter.Config<Linter.RulesRecord> | {
58
- name: string;
59
- rules: {
60
- 'constructor-super': "off";
61
- 'getter-return': "off";
62
- 'no-class-assign': "off";
63
- 'no-const-assign': "off";
64
- 'no-dupe-args': "off";
65
- 'no-dupe-keys': "off";
66
- 'no-func-assign': "off";
67
- 'no-import-assign': "off";
68
- 'no-new-native-nonconstructor': "off";
69
- 'no-obj-calls': "off";
70
- 'no-setter-return': "off";
71
- 'no-this-before-super': "off";
72
- 'no-undef': "off";
73
- 'no-unreachable': "off";
74
- 'no-unsafe-negation': "off";
75
- 'no-with': "off";
76
- 'valid-typeof': "off";
77
- };
78
- } | {
79
- name: string;
80
- settings: {
81
- 'import-x/parsers': {
82
- '@typescript-eslint/parser': (string | string[])[];
83
- };
84
- 'import-x/resolver': {
85
- node: {
86
- extensions: (string | string[])[];
87
- };
88
- };
89
- 'import-x/resolver-next': {
90
- interfaceVersion: number;
91
- name: string;
92
- resolve(source: string, file: string): ResolvedResult;
93
- }[];
94
- 'import-x/extensions': string[];
95
- 'import-x/external-module-folders': string[];
96
- };
97
- rules: {
98
- 'import-x/extensions': ["error", string, {
99
- [k: string]: string;
100
- }];
101
- 'import-x/no-extraneous-dependencies': ["error", {
102
- devDependencies: string[];
103
- optionalDependencies: boolean;
104
- peerDependencies: boolean;
105
- bundledDependencies: boolean;
106
- }];
107
- 'import-x/named': "off";
108
- 'import-x/no-named-as-default-member': "off";
109
- };
110
- })[];
111
- };
112
- export default _default;