@kouts/eslint-config 1.3.23 → 2.0.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.
Files changed (3) hide show
  1. package/dist/index.cjs +333 -336
  2. package/dist/index.js +333 -336
  3. package/package.json +11 -12
package/dist/index.cjs CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  var pluginVitest = require('@vitest/eslint-plugin');
4
4
  var pluginHtml = require('eslint-plugin-html');
5
- var pluginImport = require('eslint-plugin-import-x');
6
5
  var pluginPrettier = require('eslint-plugin-prettier/recommended');
7
6
  var pluginSimpleImportSort = require('eslint-plugin-simple-import-sort');
8
7
  var neostandard = require('neostandard');
@@ -13,7 +12,7 @@ function getDefaultExportFromCjs (x) {
13
12
  }
14
13
 
15
14
  var name = "@eslint/js";
16
- var version$1 = "9.15.0";
15
+ var version = "9.17.0";
17
16
  var description = "ESLint JavaScript language implementation";
18
17
  var main = "./src/index.js";
19
18
  var types = "./types/index.d.ts";
@@ -47,7 +46,7 @@ var engines = {
47
46
  };
48
47
  var require$$0 = {
49
48
  name: name,
50
- version: version$1,
49
+ version: version,
51
50
  description: description,
52
51
  main: main,
53
52
  types: types,
@@ -67,217 +66,226 @@ var require$$0 = {
67
66
  * script. Do not edit manually.
68
67
  */
69
68
 
70
- /* eslint quote-props: off -- autogenerated so don't lint */
69
+ var eslintAll;
70
+ var hasRequiredEslintAll;
71
71
 
72
- /*
73
- * IMPORTANT!
74
- *
75
- * We cannot add a "name" property to this object because it's still used in eslintrc
76
- * which doesn't support the "name" property. If we add a "name" property, it will
77
- * cause an error.
78
- */
72
+ function requireEslintAll () {
73
+ if (hasRequiredEslintAll) return eslintAll;
74
+ hasRequiredEslintAll = 1;
79
75
 
80
- var eslintAll = Object.freeze({
81
- "rules": {
82
- "accessor-pairs": "error",
83
- "array-callback-return": "error",
84
- "arrow-body-style": "error",
85
- "block-scoped-var": "error",
86
- "camelcase": "error",
87
- "capitalized-comments": "error",
88
- "class-methods-use-this": "error",
89
- "complexity": "error",
90
- "consistent-return": "error",
91
- "consistent-this": "error",
92
- "constructor-super": "error",
93
- "curly": "error",
94
- "default-case": "error",
95
- "default-case-last": "error",
96
- "default-param-last": "error",
97
- "dot-notation": "error",
98
- "eqeqeq": "error",
99
- "for-direction": "error",
100
- "func-name-matching": "error",
101
- "func-names": "error",
102
- "func-style": "error",
103
- "getter-return": "error",
104
- "grouped-accessor-pairs": "error",
105
- "guard-for-in": "error",
106
- "id-denylist": "error",
107
- "id-length": "error",
108
- "id-match": "error",
109
- "init-declarations": "error",
110
- "logical-assignment-operators": "error",
111
- "max-classes-per-file": "error",
112
- "max-depth": "error",
113
- "max-lines": "error",
114
- "max-lines-per-function": "error",
115
- "max-nested-callbacks": "error",
116
- "max-params": "error",
117
- "max-statements": "error",
118
- "new-cap": "error",
119
- "no-alert": "error",
120
- "no-array-constructor": "error",
121
- "no-async-promise-executor": "error",
122
- "no-await-in-loop": "error",
123
- "no-bitwise": "error",
124
- "no-caller": "error",
125
- "no-case-declarations": "error",
126
- "no-class-assign": "error",
127
- "no-compare-neg-zero": "error",
128
- "no-cond-assign": "error",
129
- "no-console": "error",
130
- "no-const-assign": "error",
131
- "no-constant-binary-expression": "error",
132
- "no-constant-condition": "error",
133
- "no-constructor-return": "error",
134
- "no-continue": "error",
135
- "no-control-regex": "error",
136
- "no-debugger": "error",
137
- "no-delete-var": "error",
138
- "no-div-regex": "error",
139
- "no-dupe-args": "error",
140
- "no-dupe-class-members": "error",
141
- "no-dupe-else-if": "error",
142
- "no-dupe-keys": "error",
143
- "no-duplicate-case": "error",
144
- "no-duplicate-imports": "error",
145
- "no-else-return": "error",
146
- "no-empty": "error",
147
- "no-empty-character-class": "error",
148
- "no-empty-function": "error",
149
- "no-empty-pattern": "error",
150
- "no-empty-static-block": "error",
151
- "no-eq-null": "error",
152
- "no-eval": "error",
153
- "no-ex-assign": "error",
154
- "no-extend-native": "error",
155
- "no-extra-bind": "error",
156
- "no-extra-boolean-cast": "error",
157
- "no-extra-label": "error",
158
- "no-fallthrough": "error",
159
- "no-func-assign": "error",
160
- "no-global-assign": "error",
161
- "no-implicit-coercion": "error",
162
- "no-implicit-globals": "error",
163
- "no-implied-eval": "error",
164
- "no-import-assign": "error",
165
- "no-inline-comments": "error",
166
- "no-inner-declarations": "error",
167
- "no-invalid-regexp": "error",
168
- "no-invalid-this": "error",
169
- "no-irregular-whitespace": "error",
170
- "no-iterator": "error",
171
- "no-label-var": "error",
172
- "no-labels": "error",
173
- "no-lone-blocks": "error",
174
- "no-lonely-if": "error",
175
- "no-loop-func": "error",
176
- "no-loss-of-precision": "error",
177
- "no-magic-numbers": "error",
178
- "no-misleading-character-class": "error",
179
- "no-multi-assign": "error",
180
- "no-multi-str": "error",
181
- "no-negated-condition": "error",
182
- "no-nested-ternary": "error",
183
- "no-new": "error",
184
- "no-new-func": "error",
185
- "no-new-native-nonconstructor": "error",
186
- "no-new-wrappers": "error",
187
- "no-nonoctal-decimal-escape": "error",
188
- "no-obj-calls": "error",
189
- "no-object-constructor": "error",
190
- "no-octal": "error",
191
- "no-octal-escape": "error",
192
- "no-param-reassign": "error",
193
- "no-plusplus": "error",
194
- "no-promise-executor-return": "error",
195
- "no-proto": "error",
196
- "no-prototype-builtins": "error",
197
- "no-redeclare": "error",
198
- "no-regex-spaces": "error",
199
- "no-restricted-exports": "error",
200
- "no-restricted-globals": "error",
201
- "no-restricted-imports": "error",
202
- "no-restricted-properties": "error",
203
- "no-restricted-syntax": "error",
204
- "no-return-assign": "error",
205
- "no-script-url": "error",
206
- "no-self-assign": "error",
207
- "no-self-compare": "error",
208
- "no-sequences": "error",
209
- "no-setter-return": "error",
210
- "no-shadow": "error",
211
- "no-shadow-restricted-names": "error",
212
- "no-sparse-arrays": "error",
213
- "no-template-curly-in-string": "error",
214
- "no-ternary": "error",
215
- "no-this-before-super": "error",
216
- "no-throw-literal": "error",
217
- "no-undef": "error",
218
- "no-undef-init": "error",
219
- "no-undefined": "error",
220
- "no-underscore-dangle": "error",
221
- "no-unexpected-multiline": "error",
222
- "no-unmodified-loop-condition": "error",
223
- "no-unneeded-ternary": "error",
224
- "no-unreachable": "error",
225
- "no-unreachable-loop": "error",
226
- "no-unsafe-finally": "error",
227
- "no-unsafe-negation": "error",
228
- "no-unsafe-optional-chaining": "error",
229
- "no-unused-expressions": "error",
230
- "no-unused-labels": "error",
231
- "no-unused-private-class-members": "error",
232
- "no-unused-vars": "error",
233
- "no-use-before-define": "error",
234
- "no-useless-assignment": "error",
235
- "no-useless-backreference": "error",
236
- "no-useless-call": "error",
237
- "no-useless-catch": "error",
238
- "no-useless-computed-key": "error",
239
- "no-useless-concat": "error",
240
- "no-useless-constructor": "error",
241
- "no-useless-escape": "error",
242
- "no-useless-rename": "error",
243
- "no-useless-return": "error",
244
- "no-var": "error",
245
- "no-void": "error",
246
- "no-warning-comments": "error",
247
- "no-with": "error",
248
- "object-shorthand": "error",
249
- "one-var": "error",
250
- "operator-assignment": "error",
251
- "prefer-arrow-callback": "error",
252
- "prefer-const": "error",
253
- "prefer-destructuring": "error",
254
- "prefer-exponentiation-operator": "error",
255
- "prefer-named-capture-group": "error",
256
- "prefer-numeric-literals": "error",
257
- "prefer-object-has-own": "error",
258
- "prefer-object-spread": "error",
259
- "prefer-promise-reject-errors": "error",
260
- "prefer-regex-literals": "error",
261
- "prefer-rest-params": "error",
262
- "prefer-spread": "error",
263
- "prefer-template": "error",
264
- "radix": "error",
265
- "require-atomic-updates": "error",
266
- "require-await": "error",
267
- "require-unicode-regexp": "error",
268
- "require-yield": "error",
269
- "sort-imports": "error",
270
- "sort-keys": "error",
271
- "sort-vars": "error",
272
- "strict": "error",
273
- "symbol-description": "error",
274
- "unicode-bom": "error",
275
- "use-isnan": "error",
276
- "valid-typeof": "error",
277
- "vars-on-top": "error",
278
- "yoda": "error"
279
- }
280
- });
76
+ /* eslint quote-props: off -- autogenerated so don't lint */
77
+
78
+ /*
79
+ * IMPORTANT!
80
+ *
81
+ * We cannot add a "name" property to this object because it's still used in eslintrc
82
+ * which doesn't support the "name" property. If we add a "name" property, it will
83
+ * cause an error.
84
+ */
85
+
86
+ eslintAll = Object.freeze({
87
+ "rules": {
88
+ "accessor-pairs": "error",
89
+ "array-callback-return": "error",
90
+ "arrow-body-style": "error",
91
+ "block-scoped-var": "error",
92
+ "camelcase": "error",
93
+ "capitalized-comments": "error",
94
+ "class-methods-use-this": "error",
95
+ "complexity": "error",
96
+ "consistent-return": "error",
97
+ "consistent-this": "error",
98
+ "constructor-super": "error",
99
+ "curly": "error",
100
+ "default-case": "error",
101
+ "default-case-last": "error",
102
+ "default-param-last": "error",
103
+ "dot-notation": "error",
104
+ "eqeqeq": "error",
105
+ "for-direction": "error",
106
+ "func-name-matching": "error",
107
+ "func-names": "error",
108
+ "func-style": "error",
109
+ "getter-return": "error",
110
+ "grouped-accessor-pairs": "error",
111
+ "guard-for-in": "error",
112
+ "id-denylist": "error",
113
+ "id-length": "error",
114
+ "id-match": "error",
115
+ "init-declarations": "error",
116
+ "logical-assignment-operators": "error",
117
+ "max-classes-per-file": "error",
118
+ "max-depth": "error",
119
+ "max-lines": "error",
120
+ "max-lines-per-function": "error",
121
+ "max-nested-callbacks": "error",
122
+ "max-params": "error",
123
+ "max-statements": "error",
124
+ "new-cap": "error",
125
+ "no-alert": "error",
126
+ "no-array-constructor": "error",
127
+ "no-async-promise-executor": "error",
128
+ "no-await-in-loop": "error",
129
+ "no-bitwise": "error",
130
+ "no-caller": "error",
131
+ "no-case-declarations": "error",
132
+ "no-class-assign": "error",
133
+ "no-compare-neg-zero": "error",
134
+ "no-cond-assign": "error",
135
+ "no-console": "error",
136
+ "no-const-assign": "error",
137
+ "no-constant-binary-expression": "error",
138
+ "no-constant-condition": "error",
139
+ "no-constructor-return": "error",
140
+ "no-continue": "error",
141
+ "no-control-regex": "error",
142
+ "no-debugger": "error",
143
+ "no-delete-var": "error",
144
+ "no-div-regex": "error",
145
+ "no-dupe-args": "error",
146
+ "no-dupe-class-members": "error",
147
+ "no-dupe-else-if": "error",
148
+ "no-dupe-keys": "error",
149
+ "no-duplicate-case": "error",
150
+ "no-duplicate-imports": "error",
151
+ "no-else-return": "error",
152
+ "no-empty": "error",
153
+ "no-empty-character-class": "error",
154
+ "no-empty-function": "error",
155
+ "no-empty-pattern": "error",
156
+ "no-empty-static-block": "error",
157
+ "no-eq-null": "error",
158
+ "no-eval": "error",
159
+ "no-ex-assign": "error",
160
+ "no-extend-native": "error",
161
+ "no-extra-bind": "error",
162
+ "no-extra-boolean-cast": "error",
163
+ "no-extra-label": "error",
164
+ "no-fallthrough": "error",
165
+ "no-func-assign": "error",
166
+ "no-global-assign": "error",
167
+ "no-implicit-coercion": "error",
168
+ "no-implicit-globals": "error",
169
+ "no-implied-eval": "error",
170
+ "no-import-assign": "error",
171
+ "no-inline-comments": "error",
172
+ "no-inner-declarations": "error",
173
+ "no-invalid-regexp": "error",
174
+ "no-invalid-this": "error",
175
+ "no-irregular-whitespace": "error",
176
+ "no-iterator": "error",
177
+ "no-label-var": "error",
178
+ "no-labels": "error",
179
+ "no-lone-blocks": "error",
180
+ "no-lonely-if": "error",
181
+ "no-loop-func": "error",
182
+ "no-loss-of-precision": "error",
183
+ "no-magic-numbers": "error",
184
+ "no-misleading-character-class": "error",
185
+ "no-multi-assign": "error",
186
+ "no-multi-str": "error",
187
+ "no-negated-condition": "error",
188
+ "no-nested-ternary": "error",
189
+ "no-new": "error",
190
+ "no-new-func": "error",
191
+ "no-new-native-nonconstructor": "error",
192
+ "no-new-wrappers": "error",
193
+ "no-nonoctal-decimal-escape": "error",
194
+ "no-obj-calls": "error",
195
+ "no-object-constructor": "error",
196
+ "no-octal": "error",
197
+ "no-octal-escape": "error",
198
+ "no-param-reassign": "error",
199
+ "no-plusplus": "error",
200
+ "no-promise-executor-return": "error",
201
+ "no-proto": "error",
202
+ "no-prototype-builtins": "error",
203
+ "no-redeclare": "error",
204
+ "no-regex-spaces": "error",
205
+ "no-restricted-exports": "error",
206
+ "no-restricted-globals": "error",
207
+ "no-restricted-imports": "error",
208
+ "no-restricted-properties": "error",
209
+ "no-restricted-syntax": "error",
210
+ "no-return-assign": "error",
211
+ "no-script-url": "error",
212
+ "no-self-assign": "error",
213
+ "no-self-compare": "error",
214
+ "no-sequences": "error",
215
+ "no-setter-return": "error",
216
+ "no-shadow": "error",
217
+ "no-shadow-restricted-names": "error",
218
+ "no-sparse-arrays": "error",
219
+ "no-template-curly-in-string": "error",
220
+ "no-ternary": "error",
221
+ "no-this-before-super": "error",
222
+ "no-throw-literal": "error",
223
+ "no-undef": "error",
224
+ "no-undef-init": "error",
225
+ "no-undefined": "error",
226
+ "no-underscore-dangle": "error",
227
+ "no-unexpected-multiline": "error",
228
+ "no-unmodified-loop-condition": "error",
229
+ "no-unneeded-ternary": "error",
230
+ "no-unreachable": "error",
231
+ "no-unreachable-loop": "error",
232
+ "no-unsafe-finally": "error",
233
+ "no-unsafe-negation": "error",
234
+ "no-unsafe-optional-chaining": "error",
235
+ "no-unused-expressions": "error",
236
+ "no-unused-labels": "error",
237
+ "no-unused-private-class-members": "error",
238
+ "no-unused-vars": "error",
239
+ "no-use-before-define": "error",
240
+ "no-useless-assignment": "error",
241
+ "no-useless-backreference": "error",
242
+ "no-useless-call": "error",
243
+ "no-useless-catch": "error",
244
+ "no-useless-computed-key": "error",
245
+ "no-useless-concat": "error",
246
+ "no-useless-constructor": "error",
247
+ "no-useless-escape": "error",
248
+ "no-useless-rename": "error",
249
+ "no-useless-return": "error",
250
+ "no-var": "error",
251
+ "no-void": "error",
252
+ "no-warning-comments": "error",
253
+ "no-with": "error",
254
+ "object-shorthand": "error",
255
+ "one-var": "error",
256
+ "operator-assignment": "error",
257
+ "prefer-arrow-callback": "error",
258
+ "prefer-const": "error",
259
+ "prefer-destructuring": "error",
260
+ "prefer-exponentiation-operator": "error",
261
+ "prefer-named-capture-group": "error",
262
+ "prefer-numeric-literals": "error",
263
+ "prefer-object-has-own": "error",
264
+ "prefer-object-spread": "error",
265
+ "prefer-promise-reject-errors": "error",
266
+ "prefer-regex-literals": "error",
267
+ "prefer-rest-params": "error",
268
+ "prefer-spread": "error",
269
+ "prefer-template": "error",
270
+ "radix": "error",
271
+ "require-atomic-updates": "error",
272
+ "require-await": "error",
273
+ "require-unicode-regexp": "error",
274
+ "require-yield": "error",
275
+ "sort-imports": "error",
276
+ "sort-keys": "error",
277
+ "sort-vars": "error",
278
+ "strict": "error",
279
+ "symbol-description": "error",
280
+ "unicode-bom": "error",
281
+ "use-isnan": "error",
282
+ "valid-typeof": "error",
283
+ "vars-on-top": "error",
284
+ "yoda": "error"
285
+ }
286
+ });
287
+ return eslintAll;
288
+ }
281
289
 
282
290
  /**
283
291
  * @fileoverview Configuration applied when a user configuration extends from
@@ -285,105 +293,124 @@ var eslintAll = Object.freeze({
285
293
  * @author Nicholas C. Zakas
286
294
  */
287
295
 
288
- /* eslint sort-keys: ["error", "asc"] -- Long, so make more readable */
296
+ var eslintRecommended;
297
+ var hasRequiredEslintRecommended;
289
298
 
290
- /*
291
- * IMPORTANT!
292
- *
293
- * We cannot add a "name" property to this object because it's still used in eslintrc
294
- * which doesn't support the "name" property. If we add a "name" property, it will
295
- * cause an error.
296
- */
299
+ function requireEslintRecommended () {
300
+ if (hasRequiredEslintRecommended) return eslintRecommended;
301
+ hasRequiredEslintRecommended = 1;
297
302
 
298
- var eslintRecommended = Object.freeze({
299
- rules: Object.freeze({
300
- "constructor-super": "error",
301
- "for-direction": "error",
302
- "getter-return": "error",
303
- "no-async-promise-executor": "error",
304
- "no-case-declarations": "error",
305
- "no-class-assign": "error",
306
- "no-compare-neg-zero": "error",
307
- "no-cond-assign": "error",
308
- "no-const-assign": "error",
309
- "no-constant-binary-expression": "error",
310
- "no-constant-condition": "error",
311
- "no-control-regex": "error",
312
- "no-debugger": "error",
313
- "no-delete-var": "error",
314
- "no-dupe-args": "error",
315
- "no-dupe-class-members": "error",
316
- "no-dupe-else-if": "error",
317
- "no-dupe-keys": "error",
318
- "no-duplicate-case": "error",
319
- "no-empty": "error",
320
- "no-empty-character-class": "error",
321
- "no-empty-pattern": "error",
322
- "no-empty-static-block": "error",
323
- "no-ex-assign": "error",
324
- "no-extra-boolean-cast": "error",
325
- "no-fallthrough": "error",
326
- "no-func-assign": "error",
327
- "no-global-assign": "error",
328
- "no-import-assign": "error",
329
- "no-invalid-regexp": "error",
330
- "no-irregular-whitespace": "error",
331
- "no-loss-of-precision": "error",
332
- "no-misleading-character-class": "error",
333
- "no-new-native-nonconstructor": "error",
334
- "no-nonoctal-decimal-escape": "error",
335
- "no-obj-calls": "error",
336
- "no-octal": "error",
337
- "no-prototype-builtins": "error",
338
- "no-redeclare": "error",
339
- "no-regex-spaces": "error",
340
- "no-self-assign": "error",
341
- "no-setter-return": "error",
342
- "no-shadow-restricted-names": "error",
343
- "no-sparse-arrays": "error",
344
- "no-this-before-super": "error",
345
- "no-undef": "error",
346
- "no-unexpected-multiline": "error",
347
- "no-unreachable": "error",
348
- "no-unsafe-finally": "error",
349
- "no-unsafe-negation": "error",
350
- "no-unsafe-optional-chaining": "error",
351
- "no-unused-labels": "error",
352
- "no-unused-private-class-members": "error",
353
- "no-unused-vars": "error",
354
- "no-useless-backreference": "error",
355
- "no-useless-catch": "error",
356
- "no-useless-escape": "error",
357
- "no-with": "error",
358
- "require-yield": "error",
359
- "use-isnan": "error",
360
- "valid-typeof": "error"
361
- })
362
- });
303
+ /* eslint sort-keys: ["error", "asc"] -- Long, so make more readable */
304
+
305
+ /*
306
+ * IMPORTANT!
307
+ *
308
+ * We cannot add a "name" property to this object because it's still used in eslintrc
309
+ * which doesn't support the "name" property. If we add a "name" property, it will
310
+ * cause an error.
311
+ */
312
+
313
+ eslintRecommended = Object.freeze({
314
+ rules: Object.freeze({
315
+ "constructor-super": "error",
316
+ "for-direction": "error",
317
+ "getter-return": "error",
318
+ "no-async-promise-executor": "error",
319
+ "no-case-declarations": "error",
320
+ "no-class-assign": "error",
321
+ "no-compare-neg-zero": "error",
322
+ "no-cond-assign": "error",
323
+ "no-const-assign": "error",
324
+ "no-constant-binary-expression": "error",
325
+ "no-constant-condition": "error",
326
+ "no-control-regex": "error",
327
+ "no-debugger": "error",
328
+ "no-delete-var": "error",
329
+ "no-dupe-args": "error",
330
+ "no-dupe-class-members": "error",
331
+ "no-dupe-else-if": "error",
332
+ "no-dupe-keys": "error",
333
+ "no-duplicate-case": "error",
334
+ "no-empty": "error",
335
+ "no-empty-character-class": "error",
336
+ "no-empty-pattern": "error",
337
+ "no-empty-static-block": "error",
338
+ "no-ex-assign": "error",
339
+ "no-extra-boolean-cast": "error",
340
+ "no-fallthrough": "error",
341
+ "no-func-assign": "error",
342
+ "no-global-assign": "error",
343
+ "no-import-assign": "error",
344
+ "no-invalid-regexp": "error",
345
+ "no-irregular-whitespace": "error",
346
+ "no-loss-of-precision": "error",
347
+ "no-misleading-character-class": "error",
348
+ "no-new-native-nonconstructor": "error",
349
+ "no-nonoctal-decimal-escape": "error",
350
+ "no-obj-calls": "error",
351
+ "no-octal": "error",
352
+ "no-prototype-builtins": "error",
353
+ "no-redeclare": "error",
354
+ "no-regex-spaces": "error",
355
+ "no-self-assign": "error",
356
+ "no-setter-return": "error",
357
+ "no-shadow-restricted-names": "error",
358
+ "no-sparse-arrays": "error",
359
+ "no-this-before-super": "error",
360
+ "no-undef": "error",
361
+ "no-unexpected-multiline": "error",
362
+ "no-unreachable": "error",
363
+ "no-unsafe-finally": "error",
364
+ "no-unsafe-negation": "error",
365
+ "no-unsafe-optional-chaining": "error",
366
+ "no-unused-labels": "error",
367
+ "no-unused-private-class-members": "error",
368
+ "no-unused-vars": "error",
369
+ "no-useless-backreference": "error",
370
+ "no-useless-catch": "error",
371
+ "no-useless-escape": "error",
372
+ "no-with": "error",
373
+ "require-yield": "error",
374
+ "use-isnan": "error",
375
+ "valid-typeof": "error"
376
+ })
377
+ });
378
+ return eslintRecommended;
379
+ }
363
380
 
364
381
  /**
365
382
  * @fileoverview Main package entrypoint.
366
383
  * @author Nicholas C. Zakas
367
384
  */
368
385
 
369
- const { version } = require$$0;
386
+ var src;
387
+ var hasRequiredSrc;
370
388
 
371
- //------------------------------------------------------------------------------
372
- // Public Interface
373
- //------------------------------------------------------------------------------
389
+ function requireSrc () {
390
+ if (hasRequiredSrc) return src;
391
+ hasRequiredSrc = 1;
374
392
 
375
- var src = {
376
- meta: {
377
- name: "@eslint/js",
378
- version
379
- },
380
- configs: {
381
- all: eslintAll,
382
- recommended: eslintRecommended
383
- }
384
- };
393
+ const { version } = require$$0;
394
+
395
+ //------------------------------------------------------------------------------
396
+ // Public Interface
397
+ //------------------------------------------------------------------------------
398
+
399
+ src = {
400
+ meta: {
401
+ name: "@eslint/js",
402
+ version
403
+ },
404
+ configs: {
405
+ all: requireEslintAll(),
406
+ recommended: requireEslintRecommended()
407
+ }
408
+ };
409
+ return src;
410
+ }
385
411
 
386
- var js = /*@__PURE__*/getDefaultExportFromCjs(src);
412
+ var srcExports = requireSrc();
413
+ var js = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
387
414
 
388
415
  const typescript = [
389
416
  ...neostandard.plugins["typescript-eslint"].configs.recommended,
@@ -478,19 +505,6 @@ const vue = (options) => {
478
505
  return config;
479
506
  };
480
507
 
481
- const pluginImportTypescript = Object.keys(pluginImport.flatConfigs.typescript).reduce(
482
- (acc, key) => ({
483
- ...acc,
484
- [key]: Object.keys(pluginImport.flatConfigs.typescript[key]).reduce(
485
- (innerAcc, curr) => ({
486
- ...innerAcc,
487
- [curr.replace("import-x", "import")]: pluginImport.flatConfigs.typescript[key][curr]
488
- }),
489
- {}
490
- )
491
- }),
492
- {}
493
- );
494
508
  const config = (options) => {
495
509
  const opts = {
496
510
  noJsx: true,
@@ -538,32 +552,15 @@ const config = (options) => {
538
552
  ],
539
553
  // Console and debugger settings depending whether we're on production or not
540
554
  "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
541
- "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
542
- }
543
- },
544
- // Import
545
- {
546
- name: "kouts/import",
547
- plugins: {
548
- import: pluginImport
549
- },
550
- ...opts.ts ? pluginImportTypescript : {},
551
- rules: {
552
- // TypeScript compilation already ensures that named imports exist in the referenced module
553
- // and has its own version of no-unused-vars
555
+ "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
556
+ // Import rules
554
557
  ...opts.ts ? {
555
- "import/named": "off",
558
+ "import-x/named": "off",
556
559
  "no-unused-vars": "off"
557
560
  } : {},
558
- "import/export": "error",
559
- "import/first": "error",
560
- "import/no-duplicates": "error",
561
- "import/no-mutable-exports": "error",
562
- "import/no-named-default": "error",
563
- "import/no-self-import": "error",
564
- "import/no-webpack-loader-syntax": "error",
565
- "import/no-absolute-path": ["error", { esmodule: true, commonjs: true, amd: false }],
566
- "import/newline-after-import": ["error", { count: 1 }]
561
+ "import-x/no-mutable-exports": "error",
562
+ "import-x/newline-after-import": ["error", { count: 1 }],
563
+ "import-x/no-self-import": "error"
567
564
  }
568
565
  },
569
566
  // Sort imports