@kouts/eslint-config 2.0.0 → 2.0.2
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 +332 -300
- package/dist/index.js +332 -300
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -12,7 +12,7 @@ function getDefaultExportFromCjs (x) {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
var name = "@eslint/js";
|
|
15
|
-
var version
|
|
15
|
+
var version = "9.17.0";
|
|
16
16
|
var description = "ESLint JavaScript language implementation";
|
|
17
17
|
var main = "./src/index.js";
|
|
18
18
|
var types = "./types/index.d.ts";
|
|
@@ -46,7 +46,7 @@ var engines = {
|
|
|
46
46
|
};
|
|
47
47
|
var require$$0 = {
|
|
48
48
|
name: name,
|
|
49
|
-
version: version
|
|
49
|
+
version: version,
|
|
50
50
|
description: description,
|
|
51
51
|
main: main,
|
|
52
52
|
types: types,
|
|
@@ -66,217 +66,226 @@ var require$$0 = {
|
|
|
66
66
|
* script. Do not edit manually.
|
|
67
67
|
*/
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
var eslintAll;
|
|
70
|
+
var hasRequiredEslintAll;
|
|
70
71
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
* We cannot add a "name" property to this object because it's still used in eslintrc
|
|
75
|
-
* which doesn't support the "name" property. If we add a "name" property, it will
|
|
76
|
-
* cause an error.
|
|
77
|
-
*/
|
|
72
|
+
function requireEslintAll () {
|
|
73
|
+
if (hasRequiredEslintAll) return eslintAll;
|
|
74
|
+
hasRequiredEslintAll = 1;
|
|
78
75
|
|
|
79
|
-
|
|
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
|
-
|
|
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
|
+
}
|
|
280
289
|
|
|
281
290
|
/**
|
|
282
291
|
* @fileoverview Configuration applied when a user configuration extends from
|
|
@@ -284,105 +293,124 @@ var eslintAll = Object.freeze({
|
|
|
284
293
|
* @author Nicholas C. Zakas
|
|
285
294
|
*/
|
|
286
295
|
|
|
287
|
-
|
|
296
|
+
var eslintRecommended;
|
|
297
|
+
var hasRequiredEslintRecommended;
|
|
288
298
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
* We cannot add a "name" property to this object because it's still used in eslintrc
|
|
293
|
-
* which doesn't support the "name" property. If we add a "name" property, it will
|
|
294
|
-
* cause an error.
|
|
295
|
-
*/
|
|
299
|
+
function requireEslintRecommended () {
|
|
300
|
+
if (hasRequiredEslintRecommended) return eslintRecommended;
|
|
301
|
+
hasRequiredEslintRecommended = 1;
|
|
296
302
|
|
|
297
|
-
|
|
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
|
-
|
|
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
|
+
}
|
|
362
380
|
|
|
363
381
|
/**
|
|
364
382
|
* @fileoverview Main package entrypoint.
|
|
365
383
|
* @author Nicholas C. Zakas
|
|
366
384
|
*/
|
|
367
385
|
|
|
368
|
-
|
|
386
|
+
var src;
|
|
387
|
+
var hasRequiredSrc;
|
|
369
388
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
389
|
+
function requireSrc () {
|
|
390
|
+
if (hasRequiredSrc) return src;
|
|
391
|
+
hasRequiredSrc = 1;
|
|
373
392
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
configs: {
|
|
380
|
-
all: eslintAll,
|
|
381
|
-
recommended: eslintRecommended
|
|
382
|
-
}
|
|
383
|
-
};
|
|
393
|
+
const { version } = require$$0;
|
|
394
|
+
|
|
395
|
+
//------------------------------------------------------------------------------
|
|
396
|
+
// Public Interface
|
|
397
|
+
//------------------------------------------------------------------------------
|
|
384
398
|
|
|
385
|
-
|
|
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
|
+
}
|
|
411
|
+
|
|
412
|
+
var srcExports = requireSrc();
|
|
413
|
+
var js = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
|
|
386
414
|
|
|
387
415
|
const typescript = [
|
|
388
416
|
...neostandard.plugins["typescript-eslint"].configs.recommended,
|
|
@@ -470,7 +498,9 @@ const vue = (options) => {
|
|
|
470
498
|
svg: "always",
|
|
471
499
|
math: "always"
|
|
472
500
|
}
|
|
473
|
-
]
|
|
501
|
+
],
|
|
502
|
+
// Enforce dot notation whenever possible in `<template>`
|
|
503
|
+
"vue/dot-notation": ["error"]
|
|
474
504
|
}
|
|
475
505
|
}
|
|
476
506
|
];
|
|
@@ -525,6 +555,8 @@ const config = (options) => {
|
|
|
525
555
|
// Console and debugger settings depending whether we're on production or not
|
|
526
556
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
527
557
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
558
|
+
// Enforce dot notation
|
|
559
|
+
"dot-notation": ["error"],
|
|
528
560
|
// Import rules
|
|
529
561
|
...opts.ts ? {
|
|
530
562
|
"import-x/named": "off",
|