@storm-software/eslint 0.122.8 → 0.122.9

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 (73) hide show
  1. package/README.md +1 -1
  2. package/dist/chunk-7NZUDX62.js +99 -0
  3. package/dist/{chunk-Y67QTC5U.js → chunk-K6KBWFPU.js} +1 -1
  4. package/dist/{chunk-LSG5T3ZK.js → chunk-W6QEP5VE.js} +7 -6
  5. package/dist/chunk-X3L37QNE.js +161 -0
  6. package/dist/preset.d.ts +23 -7048
  7. package/dist/preset.js +3590 -933
  8. package/dist/types-Drnq7vws.d.ts +14859 -0
  9. package/dist/utils/banner-plugin.js +3 -3
  10. package/dist/utils/combine.d.ts +14 -0
  11. package/dist/utils/combine.js +13 -0
  12. package/dist/utils/constants.d.ts +33 -22
  13. package/dist/utils/constants.js +65 -19
  14. package/dist/utils/get-file-banner.js +2 -2
  15. package/dist/utils/helpers.d.ts +55 -0
  16. package/dist/utils/helpers.js +19 -0
  17. package/dist/utils/index.d.ts +1 -1
  18. package/dist/utils/index.js +67 -21
  19. package/package.json +76 -50
  20. package/dist/chunk-723HQUNP.js +0 -14
  21. package/dist/chunk-ESFBJFNU.cjs +0 -149
  22. package/dist/chunk-GMT3V67N.cjs +0 -24
  23. package/dist/chunk-HMBBDY5L.cjs +0 -49
  24. package/dist/chunk-JS7W7LMD.cjs +0 -14
  25. package/dist/chunk-KISSHBCD.cjs +0 -1333
  26. package/dist/chunk-LFHG33FO.cjs +0 -313
  27. package/dist/chunk-QSFZU7HX.cjs +0 -47
  28. package/dist/chunk-RTM5LCEB.js +0 -149
  29. package/dist/chunk-USNT2KNT.cjs +0 -6
  30. package/dist/chunk-VIASOXKK.js +0 -1333
  31. package/dist/preset.cjs +0 -988
  32. package/dist/preset.d.cts +0 -7057
  33. package/dist/rules/import.cjs +0 -291
  34. package/dist/rules/import.d.cts +0 -5
  35. package/dist/rules/import.d.ts +0 -5
  36. package/dist/rules/import.js +0 -291
  37. package/dist/rules/jsx-a11y.cjs +0 -341
  38. package/dist/rules/jsx-a11y.d.cts +0 -5
  39. package/dist/rules/jsx-a11y.d.ts +0 -5
  40. package/dist/rules/jsx-a11y.js +0 -341
  41. package/dist/rules/react-hooks.cjs +0 -15
  42. package/dist/rules/react-hooks.d.cts +0 -5
  43. package/dist/rules/react-hooks.d.ts +0 -5
  44. package/dist/rules/react-hooks.js +0 -15
  45. package/dist/rules/react.cjs +0 -689
  46. package/dist/rules/react.d.cts +0 -5
  47. package/dist/rules/react.d.ts +0 -5
  48. package/dist/rules/react.js +0 -689
  49. package/dist/rules/storm.cjs +0 -7
  50. package/dist/rules/storm.d.cts +0 -11
  51. package/dist/rules/storm.d.ts +0 -11
  52. package/dist/rules/storm.js +0 -7
  53. package/dist/rules/ts-docs.cjs +0 -7
  54. package/dist/rules/ts-docs.d.cts +0 -5
  55. package/dist/rules/ts-docs.d.ts +0 -5
  56. package/dist/rules/ts-docs.js +0 -7
  57. package/dist/rules.d.ts +0 -7005
  58. package/dist/utils/banner-plugin.cjs +0 -9
  59. package/dist/utils/banner-plugin.d.cts +0 -6
  60. package/dist/utils/constants.cjs +0 -25
  61. package/dist/utils/constants.d.cts +0 -24
  62. package/dist/utils/create-flat-import-plugin.cjs +0 -20
  63. package/dist/utils/create-flat-import-plugin.d.cts +0 -11
  64. package/dist/utils/create-flat-import-plugin.d.ts +0 -11
  65. package/dist/utils/create-flat-import-plugin.js +0 -20
  66. package/dist/utils/format-config.cjs +0 -7
  67. package/dist/utils/format-config.d.cts +0 -5
  68. package/dist/utils/get-file-banner.cjs +0 -8
  69. package/dist/utils/get-file-banner.d.cts +0 -9
  70. package/dist/utils/ignores.cjs +0 -7
  71. package/dist/utils/ignores.d.cts +0 -3
  72. package/dist/utils/index.cjs +0 -33
  73. package/dist/utils/index.d.cts +0 -4
@@ -1,291 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-USNT2KNT.cjs');
2
-
3
- // src/rules/import.ts
4
- var config = {
5
- /**
6
- * Disallow non-import statements appearing before import statements.
7
- *
8
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/first.md
9
- */
10
- "import/first": "warn",
11
- /**
12
- * Require a newline after the last import/require.
13
- *
14
- * 🔧 Fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/newline-after-import.md
15
- */
16
- "import/newline-after-import": "warn",
17
- /**
18
- * Disallow import of modules using absolute paths.
19
- *
20
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-absolute-path.md
21
- */
22
- "import/no-absolute-path": "error",
23
- /**
24
- * Disallow default exports.
25
- *
26
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-default-export.md
27
- */
28
- "import/no-default-export": "error",
29
- /**
30
- * Disallow the use of extraneous packages.
31
- *
32
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
33
- */
34
- "import/no-extraneous-dependencies": [
35
- "error",
36
- {
37
- includeInternal: true,
38
- includeTypes: true
39
- }
40
- ],
41
- /**
42
- * Disallow mutable exports.
43
- *
44
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-mutable-exports.md
45
- */
46
- "import/no-mutable-exports": "error",
47
- /**
48
- * Disallow importing packages through relative paths.
49
- *
50
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-packages.md
51
- */
52
- "import/no-relative-packages": "warn",
53
- /**
54
- * Disallow a module from importing itself.
55
- *
56
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-self-import.md
57
- */
58
- "import/no-self-import": "error",
59
- /**
60
- * Ensures that there are no useless path segments.
61
- *
62
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-useless-path-segments.md
63
- */
64
- "import/no-useless-path-segments": [
65
- "error"
66
- ],
67
- /**
68
- * Enforce a module import order convention.
69
- *
70
- * 🔧 Fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md
71
- */
72
- "import/order": [
73
- "warn",
74
- {
75
- groups: [
76
- "builtin",
77
- "external",
78
- "internal",
79
- "parent",
80
- "sibling",
81
- "index"
82
- ],
83
- "newlines-between": "never"
84
- }
85
- ],
86
- "import/extensions": [
87
- "error",
88
- "ignorePackages"
89
- ],
90
- "import/prefer-default-export": "off",
91
- // Reports any imports that come after non-import statements
92
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/first.md
93
- "import/no-duplicates": "error",
94
- // ensure imports point to files/modules that can be resolved
95
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
96
- "import/no-unresolved": "off",
97
- // ensure named imports coupled with named exports
98
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
99
- "import/named": "error",
100
- // ensure default import coupled with default export
101
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it
102
- "import/default": "off",
103
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/namespace.md
104
- "import/namespace": "off",
105
- // Helpful warnings:
106
- // disallow invalid exports, e.g. multiple defaults
107
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/export.md
108
- "import/export": "error",
109
- // do not allow a default import name to match a named export
110
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md
111
- "import/no-named-as-default": "error",
112
- // warn on accessing default export property names that are also named exports
113
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
114
- "import/no-named-as-default-member": "error",
115
- // disallow use of jsdoc-marked-deprecated imports
116
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md
117
- "import/no-deprecated": "off",
118
- // Forbid the use of extraneous packages
119
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
120
- // paths are treated both as absolute paths, and relative to process.cwd()
121
- // "import/no-extraneous-dependencies": [
122
- // "error",
123
- // {
124
- // devDependencies: [
125
- // "test/**", // tape, common npm pattern
126
- // "tests/**", // also common npm pattern
127
- // "spec/**", // mocha, rspec-like pattern
128
- // "**/__tests__/**", // jest pattern
129
- // "**/__mocks__/**", // jest pattern
130
- // "test.{js,jsx}", // repos with a single test file
131
- // "test-*.{js,jsx}", // repos with multiple top-level test files
132
- // "**/*{.,_}{test,spec}.{js,jsx}", // tests where the extension or filename suffix denotes that it is a test
133
- // "**/jest.config.js", // jest config
134
- // "**/jest.setup.js", // jest setup
135
- // "**/vue.config.js", // vue-cli config
136
- // "**/webpack.config.js", // webpack config
137
- // "**/webpack.config.*.js", // webpack config
138
- // "**/rollup.config.js", // rollup config
139
- // "**/rollup.config.*.js", // rollup config
140
- // "**/gulpfile.js", // gulp config
141
- // "**/gulpfile.*.js", // gulp config
142
- // "**/Gruntfile{,.js}", // grunt config
143
- // "**/protractor.conf.js", // protractor config
144
- // "**/protractor.conf.*.js", // protractor config
145
- // "**/karma.conf.js", // karma config
146
- // "**/.eslintrc.js" // eslint config
147
- // ],
148
- // optionalDependencies: false
149
- // }
150
- // ],
151
- // Module systems:
152
- // disallow require()
153
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
154
- "import/no-commonjs": "off",
155
- // disallow AMD require/define
156
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-amd.md
157
- "import/no-amd": "error",
158
- // No Node.js builtin modules
159
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md
160
- // TODO: enable?
161
- "import/no-nodejs-modules": "off",
162
- // Style guide:
163
- // disallow non-import statements appearing before import statements
164
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/imports-first.md
165
- // deprecated: use `import/first`
166
- "import/imports-first": "off",
167
- // disallow namespace imports
168
- // TODO: enable?
169
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-namespace.md
170
- "import/no-namespace": "off",
171
- // Restrict which files can be imported in a given folder
172
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
173
- "import/no-restricted-paths": "off",
174
- // Forbid modules to have too many dependencies
175
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
176
- "import/max-dependencies": [
177
- "warn",
178
- {
179
- max: 50
180
- }
181
- ],
182
- // Forbid require() calls with expressions
183
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
184
- "import/no-dynamic-require": "error",
185
- // prevent importing the submodules of other modules
186
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md
187
- "import/no-internal-modules": [
188
- "off",
189
- {
190
- allow: []
191
- }
192
- ],
193
- // Warn if a module could be mistakenly parsed as a script by a consumer
194
- // leveraging Unambiguous JavaScript Grammar
195
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/unambiguous.md
196
- // this should not be enabled until this proposal has at least been *presented* to TC39.
197
- // At the moment, it's not a thing.
198
- "import/unambiguous": "off",
199
- // Forbid Webpack loader syntax in imports
200
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md
201
- "import/no-webpack-loader-syntax": "error",
202
- // Prevent unassigned imports
203
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
204
- // importing for side effects is perfectly acceptable, if you need side effects.
205
- "import/no-unassigned-import": "off",
206
- // Prevent importing the default as if it were named
207
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-default.md
208
- "import/no-named-default": "error",
209
- // Reports if a module's default export is unnamed
210
- // https://github.com/import-js/eslint-plugin-import/blob/d9b712ac7fd1fddc391f7b234827925c160d956f/docs/rules/no-anonymous-default-export.md
211
- "import/no-anonymous-default-export": [
212
- "off",
213
- {
214
- allowArray: false,
215
- allowArrowFunction: false,
216
- allowAnonymousClass: false,
217
- allowAnonymousFunction: false,
218
- allowLiteral: false,
219
- allowObject: false
220
- }
221
- ],
222
- // This rule enforces that all exports are declared at the bottom of the file.
223
- // https://github.com/import-js/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md
224
- // TODO: enable?
225
- "import/exports-last": "off",
226
- // Reports when named exports are not grouped together in a single export declaration
227
- // or when multiple assignments to CommonJS module.exports or exports object are present
228
- // in a single file.
229
- // https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md
230
- "import/group-exports": "off",
231
- // Prohibit named exports. this is a terrible rule, do not use it.
232
- // https://github.com/import-js/eslint-plugin-import/blob/1ec80fa35fa1819e2d35a70e68fb6a149fb57c5e/docs/rules/no-named-export.md
233
- "import/no-named-export": "off",
234
- /**
235
- * Disallow cyclical dependencies between modules.
236
- *
237
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-cycle.md
238
- */
239
- "import/no-cycle": [
240
- "error",
241
- {
242
- maxDepth: "\u221E"
243
- }
244
- ],
245
- // dynamic imports require a leading comment with a webpackChunkName
246
- // https://github.com/import-js/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/dynamic-import-chunkname.md
247
- "import/dynamic-import-chunkname": [
248
- "off",
249
- {
250
- importFunctions: [],
251
- webpackChunknameFormat: "[0-9a-zA-Z-_/.]+"
252
- }
253
- ],
254
- // Use this rule to prevent imports to folders in relative parent paths.
255
- // https://github.com/import-js/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
256
- "import/no-relative-parent-imports": "off",
257
- // Reports modules without any exports, or with unused exports
258
- // https://github.com/import-js/eslint-plugin-import/blob/f63dd261809de6883b13b6b5b960e6d7f42a7813/docs/rules/no-unused-modules.md
259
- // TODO: enable once it supports CJS
260
- "import/no-unused-modules": [
261
- "off",
262
- {
263
- ignoreExports: [],
264
- missingExports: true,
265
- unusedExports: true
266
- }
267
- ],
268
- // Reports the use of import declarations with CommonJS exports in any module except for the main module.
269
- // https://github.com/import-js/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-import-module-exports.md
270
- "import/no-import-module-exports": [
271
- "error",
272
- {
273
- exceptions: []
274
- }
275
- ],
276
- // enforce a consistent style for type specifiers (inline or top-level)
277
- // https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/consistent-type-specifier-style.md
278
- // TODO, semver-major: enable (just in case)
279
- "import/consistent-type-specifier-style": [
280
- "off",
281
- "prefer-inline"
282
- ],
283
- // Reports the use of empty named import blocks.
284
- // https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/no-empty-named-blocks.md
285
- // TODO, semver-minor: enable
286
- "import/no-empty-named-blocks": "off"
287
- };
288
- var import_default = config;
289
-
290
-
291
- exports.default = import_default;
@@ -1,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.RulesRecord;
4
-
5
- export { config as default };
@@ -1,5 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- declare const config: Linter.RulesRecord;
4
-
5
- export { config as default };
@@ -1,291 +0,0 @@
1
- import "../chunk-SHUYVCID.js";
2
-
3
- // src/rules/import.ts
4
- var config = {
5
- /**
6
- * Disallow non-import statements appearing before import statements.
7
- *
8
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/first.md
9
- */
10
- "import/first": "warn",
11
- /**
12
- * Require a newline after the last import/require.
13
- *
14
- * 🔧 Fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/newline-after-import.md
15
- */
16
- "import/newline-after-import": "warn",
17
- /**
18
- * Disallow import of modules using absolute paths.
19
- *
20
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-absolute-path.md
21
- */
22
- "import/no-absolute-path": "error",
23
- /**
24
- * Disallow default exports.
25
- *
26
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-default-export.md
27
- */
28
- "import/no-default-export": "error",
29
- /**
30
- * Disallow the use of extraneous packages.
31
- *
32
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
33
- */
34
- "import/no-extraneous-dependencies": [
35
- "error",
36
- {
37
- includeInternal: true,
38
- includeTypes: true
39
- }
40
- ],
41
- /**
42
- * Disallow mutable exports.
43
- *
44
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-mutable-exports.md
45
- */
46
- "import/no-mutable-exports": "error",
47
- /**
48
- * Disallow importing packages through relative paths.
49
- *
50
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-packages.md
51
- */
52
- "import/no-relative-packages": "warn",
53
- /**
54
- * Disallow a module from importing itself.
55
- *
56
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-self-import.md
57
- */
58
- "import/no-self-import": "error",
59
- /**
60
- * Ensures that there are no useless path segments.
61
- *
62
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-useless-path-segments.md
63
- */
64
- "import/no-useless-path-segments": [
65
- "error"
66
- ],
67
- /**
68
- * Enforce a module import order convention.
69
- *
70
- * 🔧 Fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md
71
- */
72
- "import/order": [
73
- "warn",
74
- {
75
- groups: [
76
- "builtin",
77
- "external",
78
- "internal",
79
- "parent",
80
- "sibling",
81
- "index"
82
- ],
83
- "newlines-between": "never"
84
- }
85
- ],
86
- "import/extensions": [
87
- "error",
88
- "ignorePackages"
89
- ],
90
- "import/prefer-default-export": "off",
91
- // Reports any imports that come after non-import statements
92
- // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/first.md
93
- "import/no-duplicates": "error",
94
- // ensure imports point to files/modules that can be resolved
95
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
96
- "import/no-unresolved": "off",
97
- // ensure named imports coupled with named exports
98
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
99
- "import/named": "error",
100
- // ensure default import coupled with default export
101
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it
102
- "import/default": "off",
103
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/namespace.md
104
- "import/namespace": "off",
105
- // Helpful warnings:
106
- // disallow invalid exports, e.g. multiple defaults
107
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/export.md
108
- "import/export": "error",
109
- // do not allow a default import name to match a named export
110
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md
111
- "import/no-named-as-default": "error",
112
- // warn on accessing default export property names that are also named exports
113
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
114
- "import/no-named-as-default-member": "error",
115
- // disallow use of jsdoc-marked-deprecated imports
116
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md
117
- "import/no-deprecated": "off",
118
- // Forbid the use of extraneous packages
119
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
120
- // paths are treated both as absolute paths, and relative to process.cwd()
121
- // "import/no-extraneous-dependencies": [
122
- // "error",
123
- // {
124
- // devDependencies: [
125
- // "test/**", // tape, common npm pattern
126
- // "tests/**", // also common npm pattern
127
- // "spec/**", // mocha, rspec-like pattern
128
- // "**/__tests__/**", // jest pattern
129
- // "**/__mocks__/**", // jest pattern
130
- // "test.{js,jsx}", // repos with a single test file
131
- // "test-*.{js,jsx}", // repos with multiple top-level test files
132
- // "**/*{.,_}{test,spec}.{js,jsx}", // tests where the extension or filename suffix denotes that it is a test
133
- // "**/jest.config.js", // jest config
134
- // "**/jest.setup.js", // jest setup
135
- // "**/vue.config.js", // vue-cli config
136
- // "**/webpack.config.js", // webpack config
137
- // "**/webpack.config.*.js", // webpack config
138
- // "**/rollup.config.js", // rollup config
139
- // "**/rollup.config.*.js", // rollup config
140
- // "**/gulpfile.js", // gulp config
141
- // "**/gulpfile.*.js", // gulp config
142
- // "**/Gruntfile{,.js}", // grunt config
143
- // "**/protractor.conf.js", // protractor config
144
- // "**/protractor.conf.*.js", // protractor config
145
- // "**/karma.conf.js", // karma config
146
- // "**/.eslintrc.js" // eslint config
147
- // ],
148
- // optionalDependencies: false
149
- // }
150
- // ],
151
- // Module systems:
152
- // disallow require()
153
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
154
- "import/no-commonjs": "off",
155
- // disallow AMD require/define
156
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-amd.md
157
- "import/no-amd": "error",
158
- // No Node.js builtin modules
159
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md
160
- // TODO: enable?
161
- "import/no-nodejs-modules": "off",
162
- // Style guide:
163
- // disallow non-import statements appearing before import statements
164
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/imports-first.md
165
- // deprecated: use `import/first`
166
- "import/imports-first": "off",
167
- // disallow namespace imports
168
- // TODO: enable?
169
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-namespace.md
170
- "import/no-namespace": "off",
171
- // Restrict which files can be imported in a given folder
172
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
173
- "import/no-restricted-paths": "off",
174
- // Forbid modules to have too many dependencies
175
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
176
- "import/max-dependencies": [
177
- "warn",
178
- {
179
- max: 50
180
- }
181
- ],
182
- // Forbid require() calls with expressions
183
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
184
- "import/no-dynamic-require": "error",
185
- // prevent importing the submodules of other modules
186
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md
187
- "import/no-internal-modules": [
188
- "off",
189
- {
190
- allow: []
191
- }
192
- ],
193
- // Warn if a module could be mistakenly parsed as a script by a consumer
194
- // leveraging Unambiguous JavaScript Grammar
195
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/unambiguous.md
196
- // this should not be enabled until this proposal has at least been *presented* to TC39.
197
- // At the moment, it's not a thing.
198
- "import/unambiguous": "off",
199
- // Forbid Webpack loader syntax in imports
200
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md
201
- "import/no-webpack-loader-syntax": "error",
202
- // Prevent unassigned imports
203
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
204
- // importing for side effects is perfectly acceptable, if you need side effects.
205
- "import/no-unassigned-import": "off",
206
- // Prevent importing the default as if it were named
207
- // https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-default.md
208
- "import/no-named-default": "error",
209
- // Reports if a module's default export is unnamed
210
- // https://github.com/import-js/eslint-plugin-import/blob/d9b712ac7fd1fddc391f7b234827925c160d956f/docs/rules/no-anonymous-default-export.md
211
- "import/no-anonymous-default-export": [
212
- "off",
213
- {
214
- allowArray: false,
215
- allowArrowFunction: false,
216
- allowAnonymousClass: false,
217
- allowAnonymousFunction: false,
218
- allowLiteral: false,
219
- allowObject: false
220
- }
221
- ],
222
- // This rule enforces that all exports are declared at the bottom of the file.
223
- // https://github.com/import-js/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md
224
- // TODO: enable?
225
- "import/exports-last": "off",
226
- // Reports when named exports are not grouped together in a single export declaration
227
- // or when multiple assignments to CommonJS module.exports or exports object are present
228
- // in a single file.
229
- // https://github.com/import-js/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md
230
- "import/group-exports": "off",
231
- // Prohibit named exports. this is a terrible rule, do not use it.
232
- // https://github.com/import-js/eslint-plugin-import/blob/1ec80fa35fa1819e2d35a70e68fb6a149fb57c5e/docs/rules/no-named-export.md
233
- "import/no-named-export": "off",
234
- /**
235
- * Disallow cyclical dependencies between modules.
236
- *
237
- * 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-cycle.md
238
- */
239
- "import/no-cycle": [
240
- "error",
241
- {
242
- maxDepth: "\u221E"
243
- }
244
- ],
245
- // dynamic imports require a leading comment with a webpackChunkName
246
- // https://github.com/import-js/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/dynamic-import-chunkname.md
247
- "import/dynamic-import-chunkname": [
248
- "off",
249
- {
250
- importFunctions: [],
251
- webpackChunknameFormat: "[0-9a-zA-Z-_/.]+"
252
- }
253
- ],
254
- // Use this rule to prevent imports to folders in relative parent paths.
255
- // https://github.com/import-js/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
256
- "import/no-relative-parent-imports": "off",
257
- // Reports modules without any exports, or with unused exports
258
- // https://github.com/import-js/eslint-plugin-import/blob/f63dd261809de6883b13b6b5b960e6d7f42a7813/docs/rules/no-unused-modules.md
259
- // TODO: enable once it supports CJS
260
- "import/no-unused-modules": [
261
- "off",
262
- {
263
- ignoreExports: [],
264
- missingExports: true,
265
- unusedExports: true
266
- }
267
- ],
268
- // Reports the use of import declarations with CommonJS exports in any module except for the main module.
269
- // https://github.com/import-js/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-import-module-exports.md
270
- "import/no-import-module-exports": [
271
- "error",
272
- {
273
- exceptions: []
274
- }
275
- ],
276
- // enforce a consistent style for type specifiers (inline or top-level)
277
- // https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/consistent-type-specifier-style.md
278
- // TODO, semver-major: enable (just in case)
279
- "import/consistent-type-specifier-style": [
280
- "off",
281
- "prefer-inline"
282
- ],
283
- // Reports the use of empty named import blocks.
284
- // https://github.com/import-js/eslint-plugin-import/blob/d5fc8b670dc8e6903dbb7b0894452f60c03089f5/docs/rules/no-empty-named-blocks.md
285
- // TODO, semver-minor: enable
286
- "import/no-empty-named-blocks": "off"
287
- };
288
- var import_default = config;
289
- export {
290
- import_default as default
291
- };