@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.
- package/dist/index.cjs +333 -336
- package/dist/index.js +333 -336
- 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
|
|
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
|
|
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
|
-
|
|
69
|
+
var eslintAll;
|
|
70
|
+
var hasRequiredEslintAll;
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
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
|
-
|
|
296
|
+
var eslintRecommended;
|
|
297
|
+
var hasRequiredEslintRecommended;
|
|
289
298
|
|
|
290
|
-
|
|
291
|
-
|
|
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
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
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
|
-
|
|
386
|
+
var src;
|
|
387
|
+
var hasRequiredSrc;
|
|
370
388
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
389
|
+
function requireSrc () {
|
|
390
|
+
if (hasRequiredSrc) return src;
|
|
391
|
+
hasRequiredSrc = 1;
|
|
374
392
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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
|
|
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/
|
|
559
|
-
"import/
|
|
560
|
-
"import/no-
|
|
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
|