@kouts/eslint-config 2.0.8 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -320
- package/dist/index.js +2 -318
- package/package.json +12 -11
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var js = require('@eslint/js');
|
|
3
4
|
var pluginVitest = require('@vitest/eslint-plugin');
|
|
4
5
|
var pluginHtml = require('eslint-plugin-html');
|
|
5
6
|
var pluginPrettier = require('eslint-plugin-prettier/recommended');
|
|
@@ -7,323 +8,6 @@ var pluginSimpleImportSort = require('eslint-plugin-simple-import-sort');
|
|
|
7
8
|
var neostandard = require('neostandard');
|
|
8
9
|
var pluginVue = require('eslint-plugin-vue');
|
|
9
10
|
|
|
10
|
-
function getDefaultExportFromCjs (x) {
|
|
11
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
var name = "@eslint/js";
|
|
15
|
-
var version = "9.21.0";
|
|
16
|
-
var require$$0 = {
|
|
17
|
-
name: name,
|
|
18
|
-
version: version};
|
|
19
|
-
|
|
20
|
-
var eslintAll;
|
|
21
|
-
var hasRequiredEslintAll;
|
|
22
|
-
|
|
23
|
-
function requireEslintAll () {
|
|
24
|
-
if (hasRequiredEslintAll) return eslintAll;
|
|
25
|
-
hasRequiredEslintAll = 1;
|
|
26
|
-
eslintAll = Object.freeze({
|
|
27
|
-
"rules": {
|
|
28
|
-
"accessor-pairs": "error",
|
|
29
|
-
"array-callback-return": "error",
|
|
30
|
-
"arrow-body-style": "error",
|
|
31
|
-
"block-scoped-var": "error",
|
|
32
|
-
"camelcase": "error",
|
|
33
|
-
"capitalized-comments": "error",
|
|
34
|
-
"class-methods-use-this": "error",
|
|
35
|
-
"complexity": "error",
|
|
36
|
-
"consistent-return": "error",
|
|
37
|
-
"consistent-this": "error",
|
|
38
|
-
"constructor-super": "error",
|
|
39
|
-
"curly": "error",
|
|
40
|
-
"default-case": "error",
|
|
41
|
-
"default-case-last": "error",
|
|
42
|
-
"default-param-last": "error",
|
|
43
|
-
"dot-notation": "error",
|
|
44
|
-
"eqeqeq": "error",
|
|
45
|
-
"for-direction": "error",
|
|
46
|
-
"func-name-matching": "error",
|
|
47
|
-
"func-names": "error",
|
|
48
|
-
"func-style": "error",
|
|
49
|
-
"getter-return": "error",
|
|
50
|
-
"grouped-accessor-pairs": "error",
|
|
51
|
-
"guard-for-in": "error",
|
|
52
|
-
"id-denylist": "error",
|
|
53
|
-
"id-length": "error",
|
|
54
|
-
"id-match": "error",
|
|
55
|
-
"init-declarations": "error",
|
|
56
|
-
"logical-assignment-operators": "error",
|
|
57
|
-
"max-classes-per-file": "error",
|
|
58
|
-
"max-depth": "error",
|
|
59
|
-
"max-lines": "error",
|
|
60
|
-
"max-lines-per-function": "error",
|
|
61
|
-
"max-nested-callbacks": "error",
|
|
62
|
-
"max-params": "error",
|
|
63
|
-
"max-statements": "error",
|
|
64
|
-
"new-cap": "error",
|
|
65
|
-
"no-alert": "error",
|
|
66
|
-
"no-array-constructor": "error",
|
|
67
|
-
"no-async-promise-executor": "error",
|
|
68
|
-
"no-await-in-loop": "error",
|
|
69
|
-
"no-bitwise": "error",
|
|
70
|
-
"no-caller": "error",
|
|
71
|
-
"no-case-declarations": "error",
|
|
72
|
-
"no-class-assign": "error",
|
|
73
|
-
"no-compare-neg-zero": "error",
|
|
74
|
-
"no-cond-assign": "error",
|
|
75
|
-
"no-console": "error",
|
|
76
|
-
"no-const-assign": "error",
|
|
77
|
-
"no-constant-binary-expression": "error",
|
|
78
|
-
"no-constant-condition": "error",
|
|
79
|
-
"no-constructor-return": "error",
|
|
80
|
-
"no-continue": "error",
|
|
81
|
-
"no-control-regex": "error",
|
|
82
|
-
"no-debugger": "error",
|
|
83
|
-
"no-delete-var": "error",
|
|
84
|
-
"no-div-regex": "error",
|
|
85
|
-
"no-dupe-args": "error",
|
|
86
|
-
"no-dupe-class-members": "error",
|
|
87
|
-
"no-dupe-else-if": "error",
|
|
88
|
-
"no-dupe-keys": "error",
|
|
89
|
-
"no-duplicate-case": "error",
|
|
90
|
-
"no-duplicate-imports": "error",
|
|
91
|
-
"no-else-return": "error",
|
|
92
|
-
"no-empty": "error",
|
|
93
|
-
"no-empty-character-class": "error",
|
|
94
|
-
"no-empty-function": "error",
|
|
95
|
-
"no-empty-pattern": "error",
|
|
96
|
-
"no-empty-static-block": "error",
|
|
97
|
-
"no-eq-null": "error",
|
|
98
|
-
"no-eval": "error",
|
|
99
|
-
"no-ex-assign": "error",
|
|
100
|
-
"no-extend-native": "error",
|
|
101
|
-
"no-extra-bind": "error",
|
|
102
|
-
"no-extra-boolean-cast": "error",
|
|
103
|
-
"no-extra-label": "error",
|
|
104
|
-
"no-fallthrough": "error",
|
|
105
|
-
"no-func-assign": "error",
|
|
106
|
-
"no-global-assign": "error",
|
|
107
|
-
"no-implicit-coercion": "error",
|
|
108
|
-
"no-implicit-globals": "error",
|
|
109
|
-
"no-implied-eval": "error",
|
|
110
|
-
"no-import-assign": "error",
|
|
111
|
-
"no-inline-comments": "error",
|
|
112
|
-
"no-inner-declarations": "error",
|
|
113
|
-
"no-invalid-regexp": "error",
|
|
114
|
-
"no-invalid-this": "error",
|
|
115
|
-
"no-irregular-whitespace": "error",
|
|
116
|
-
"no-iterator": "error",
|
|
117
|
-
"no-label-var": "error",
|
|
118
|
-
"no-labels": "error",
|
|
119
|
-
"no-lone-blocks": "error",
|
|
120
|
-
"no-lonely-if": "error",
|
|
121
|
-
"no-loop-func": "error",
|
|
122
|
-
"no-loss-of-precision": "error",
|
|
123
|
-
"no-magic-numbers": "error",
|
|
124
|
-
"no-misleading-character-class": "error",
|
|
125
|
-
"no-multi-assign": "error",
|
|
126
|
-
"no-multi-str": "error",
|
|
127
|
-
"no-negated-condition": "error",
|
|
128
|
-
"no-nested-ternary": "error",
|
|
129
|
-
"no-new": "error",
|
|
130
|
-
"no-new-func": "error",
|
|
131
|
-
"no-new-native-nonconstructor": "error",
|
|
132
|
-
"no-new-wrappers": "error",
|
|
133
|
-
"no-nonoctal-decimal-escape": "error",
|
|
134
|
-
"no-obj-calls": "error",
|
|
135
|
-
"no-object-constructor": "error",
|
|
136
|
-
"no-octal": "error",
|
|
137
|
-
"no-octal-escape": "error",
|
|
138
|
-
"no-param-reassign": "error",
|
|
139
|
-
"no-plusplus": "error",
|
|
140
|
-
"no-promise-executor-return": "error",
|
|
141
|
-
"no-proto": "error",
|
|
142
|
-
"no-prototype-builtins": "error",
|
|
143
|
-
"no-redeclare": "error",
|
|
144
|
-
"no-regex-spaces": "error",
|
|
145
|
-
"no-restricted-exports": "error",
|
|
146
|
-
"no-restricted-globals": "error",
|
|
147
|
-
"no-restricted-imports": "error",
|
|
148
|
-
"no-restricted-properties": "error",
|
|
149
|
-
"no-restricted-syntax": "error",
|
|
150
|
-
"no-return-assign": "error",
|
|
151
|
-
"no-script-url": "error",
|
|
152
|
-
"no-self-assign": "error",
|
|
153
|
-
"no-self-compare": "error",
|
|
154
|
-
"no-sequences": "error",
|
|
155
|
-
"no-setter-return": "error",
|
|
156
|
-
"no-shadow": "error",
|
|
157
|
-
"no-shadow-restricted-names": "error",
|
|
158
|
-
"no-sparse-arrays": "error",
|
|
159
|
-
"no-template-curly-in-string": "error",
|
|
160
|
-
"no-ternary": "error",
|
|
161
|
-
"no-this-before-super": "error",
|
|
162
|
-
"no-throw-literal": "error",
|
|
163
|
-
"no-undef": "error",
|
|
164
|
-
"no-undef-init": "error",
|
|
165
|
-
"no-undefined": "error",
|
|
166
|
-
"no-underscore-dangle": "error",
|
|
167
|
-
"no-unexpected-multiline": "error",
|
|
168
|
-
"no-unmodified-loop-condition": "error",
|
|
169
|
-
"no-unneeded-ternary": "error",
|
|
170
|
-
"no-unreachable": "error",
|
|
171
|
-
"no-unreachable-loop": "error",
|
|
172
|
-
"no-unsafe-finally": "error",
|
|
173
|
-
"no-unsafe-negation": "error",
|
|
174
|
-
"no-unsafe-optional-chaining": "error",
|
|
175
|
-
"no-unused-expressions": "error",
|
|
176
|
-
"no-unused-labels": "error",
|
|
177
|
-
"no-unused-private-class-members": "error",
|
|
178
|
-
"no-unused-vars": "error",
|
|
179
|
-
"no-use-before-define": "error",
|
|
180
|
-
"no-useless-assignment": "error",
|
|
181
|
-
"no-useless-backreference": "error",
|
|
182
|
-
"no-useless-call": "error",
|
|
183
|
-
"no-useless-catch": "error",
|
|
184
|
-
"no-useless-computed-key": "error",
|
|
185
|
-
"no-useless-concat": "error",
|
|
186
|
-
"no-useless-constructor": "error",
|
|
187
|
-
"no-useless-escape": "error",
|
|
188
|
-
"no-useless-rename": "error",
|
|
189
|
-
"no-useless-return": "error",
|
|
190
|
-
"no-var": "error",
|
|
191
|
-
"no-void": "error",
|
|
192
|
-
"no-warning-comments": "error",
|
|
193
|
-
"no-with": "error",
|
|
194
|
-
"object-shorthand": "error",
|
|
195
|
-
"one-var": "error",
|
|
196
|
-
"operator-assignment": "error",
|
|
197
|
-
"prefer-arrow-callback": "error",
|
|
198
|
-
"prefer-const": "error",
|
|
199
|
-
"prefer-destructuring": "error",
|
|
200
|
-
"prefer-exponentiation-operator": "error",
|
|
201
|
-
"prefer-named-capture-group": "error",
|
|
202
|
-
"prefer-numeric-literals": "error",
|
|
203
|
-
"prefer-object-has-own": "error",
|
|
204
|
-
"prefer-object-spread": "error",
|
|
205
|
-
"prefer-promise-reject-errors": "error",
|
|
206
|
-
"prefer-regex-literals": "error",
|
|
207
|
-
"prefer-rest-params": "error",
|
|
208
|
-
"prefer-spread": "error",
|
|
209
|
-
"prefer-template": "error",
|
|
210
|
-
"radix": "error",
|
|
211
|
-
"require-atomic-updates": "error",
|
|
212
|
-
"require-await": "error",
|
|
213
|
-
"require-unicode-regexp": "error",
|
|
214
|
-
"require-yield": "error",
|
|
215
|
-
"sort-imports": "error",
|
|
216
|
-
"sort-keys": "error",
|
|
217
|
-
"sort-vars": "error",
|
|
218
|
-
"strict": "error",
|
|
219
|
-
"symbol-description": "error",
|
|
220
|
-
"unicode-bom": "error",
|
|
221
|
-
"use-isnan": "error",
|
|
222
|
-
"valid-typeof": "error",
|
|
223
|
-
"vars-on-top": "error",
|
|
224
|
-
"yoda": "error"
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
return eslintAll;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
var eslintRecommended;
|
|
231
|
-
var hasRequiredEslintRecommended;
|
|
232
|
-
|
|
233
|
-
function requireEslintRecommended () {
|
|
234
|
-
if (hasRequiredEslintRecommended) return eslintRecommended;
|
|
235
|
-
hasRequiredEslintRecommended = 1;
|
|
236
|
-
eslintRecommended = Object.freeze({
|
|
237
|
-
rules: Object.freeze({
|
|
238
|
-
"constructor-super": "error",
|
|
239
|
-
"for-direction": "error",
|
|
240
|
-
"getter-return": "error",
|
|
241
|
-
"no-async-promise-executor": "error",
|
|
242
|
-
"no-case-declarations": "error",
|
|
243
|
-
"no-class-assign": "error",
|
|
244
|
-
"no-compare-neg-zero": "error",
|
|
245
|
-
"no-cond-assign": "error",
|
|
246
|
-
"no-const-assign": "error",
|
|
247
|
-
"no-constant-binary-expression": "error",
|
|
248
|
-
"no-constant-condition": "error",
|
|
249
|
-
"no-control-regex": "error",
|
|
250
|
-
"no-debugger": "error",
|
|
251
|
-
"no-delete-var": "error",
|
|
252
|
-
"no-dupe-args": "error",
|
|
253
|
-
"no-dupe-class-members": "error",
|
|
254
|
-
"no-dupe-else-if": "error",
|
|
255
|
-
"no-dupe-keys": "error",
|
|
256
|
-
"no-duplicate-case": "error",
|
|
257
|
-
"no-empty": "error",
|
|
258
|
-
"no-empty-character-class": "error",
|
|
259
|
-
"no-empty-pattern": "error",
|
|
260
|
-
"no-empty-static-block": "error",
|
|
261
|
-
"no-ex-assign": "error",
|
|
262
|
-
"no-extra-boolean-cast": "error",
|
|
263
|
-
"no-fallthrough": "error",
|
|
264
|
-
"no-func-assign": "error",
|
|
265
|
-
"no-global-assign": "error",
|
|
266
|
-
"no-import-assign": "error",
|
|
267
|
-
"no-invalid-regexp": "error",
|
|
268
|
-
"no-irregular-whitespace": "error",
|
|
269
|
-
"no-loss-of-precision": "error",
|
|
270
|
-
"no-misleading-character-class": "error",
|
|
271
|
-
"no-new-native-nonconstructor": "error",
|
|
272
|
-
"no-nonoctal-decimal-escape": "error",
|
|
273
|
-
"no-obj-calls": "error",
|
|
274
|
-
"no-octal": "error",
|
|
275
|
-
"no-prototype-builtins": "error",
|
|
276
|
-
"no-redeclare": "error",
|
|
277
|
-
"no-regex-spaces": "error",
|
|
278
|
-
"no-self-assign": "error",
|
|
279
|
-
"no-setter-return": "error",
|
|
280
|
-
"no-shadow-restricted-names": "error",
|
|
281
|
-
"no-sparse-arrays": "error",
|
|
282
|
-
"no-this-before-super": "error",
|
|
283
|
-
"no-undef": "error",
|
|
284
|
-
"no-unexpected-multiline": "error",
|
|
285
|
-
"no-unreachable": "error",
|
|
286
|
-
"no-unsafe-finally": "error",
|
|
287
|
-
"no-unsafe-negation": "error",
|
|
288
|
-
"no-unsafe-optional-chaining": "error",
|
|
289
|
-
"no-unused-labels": "error",
|
|
290
|
-
"no-unused-private-class-members": "error",
|
|
291
|
-
"no-unused-vars": "error",
|
|
292
|
-
"no-useless-backreference": "error",
|
|
293
|
-
"no-useless-catch": "error",
|
|
294
|
-
"no-useless-escape": "error",
|
|
295
|
-
"no-with": "error",
|
|
296
|
-
"require-yield": "error",
|
|
297
|
-
"use-isnan": "error",
|
|
298
|
-
"valid-typeof": "error"
|
|
299
|
-
})
|
|
300
|
-
});
|
|
301
|
-
return eslintRecommended;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
var src;
|
|
305
|
-
var hasRequiredSrc;
|
|
306
|
-
|
|
307
|
-
function requireSrc () {
|
|
308
|
-
if (hasRequiredSrc) return src;
|
|
309
|
-
hasRequiredSrc = 1;
|
|
310
|
-
const { name, version } = require$$0;
|
|
311
|
-
src = {
|
|
312
|
-
meta: {
|
|
313
|
-
name,
|
|
314
|
-
version
|
|
315
|
-
},
|
|
316
|
-
configs: {
|
|
317
|
-
all: requireEslintAll(),
|
|
318
|
-
recommended: requireEslintRecommended()
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
return src;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
var srcExports = requireSrc();
|
|
325
|
-
var js = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
|
|
326
|
-
|
|
327
11
|
const typescript = [
|
|
328
12
|
...neostandard.plugins["typescript-eslint"].configs.recommended,
|
|
329
13
|
{
|
|
@@ -393,7 +77,7 @@ const vue = (options) => {
|
|
|
393
77
|
// Strengthen vue/(vue3-)recommended preset for autofix
|
|
394
78
|
// https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/configs/recommended.js
|
|
395
79
|
"vue/attributes-order": "error",
|
|
396
|
-
"vue/
|
|
80
|
+
"vue/block-order": "error",
|
|
397
81
|
"vue/no-lone-template": "error",
|
|
398
82
|
"vue/no-multiple-slot-args": "error",
|
|
399
83
|
"vue/no-v-html": "error",
|
|
@@ -544,7 +228,7 @@ const config = (options) => {
|
|
|
544
228
|
};
|
|
545
229
|
|
|
546
230
|
Object.defineProperty(exports, "plugins", {
|
|
547
|
-
|
|
548
|
-
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: function () { return neostandard.plugins; }
|
|
549
233
|
});
|
|
550
234
|
exports.config = config;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
1
2
|
import pluginVitest from '@vitest/eslint-plugin';
|
|
2
3
|
import pluginHtml from 'eslint-plugin-html';
|
|
3
4
|
import pluginPrettier from 'eslint-plugin-prettier/recommended';
|
|
@@ -6,323 +7,6 @@ import neostandard, { plugins, resolveIgnoresFromGitignore } from 'neostandard';
|
|
|
6
7
|
export { plugins } from 'neostandard';
|
|
7
8
|
import pluginVue from 'eslint-plugin-vue';
|
|
8
9
|
|
|
9
|
-
function getDefaultExportFromCjs (x) {
|
|
10
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
var name = "@eslint/js";
|
|
14
|
-
var version = "9.21.0";
|
|
15
|
-
var require$$0 = {
|
|
16
|
-
name: name,
|
|
17
|
-
version: version};
|
|
18
|
-
|
|
19
|
-
var eslintAll;
|
|
20
|
-
var hasRequiredEslintAll;
|
|
21
|
-
|
|
22
|
-
function requireEslintAll () {
|
|
23
|
-
if (hasRequiredEslintAll) return eslintAll;
|
|
24
|
-
hasRequiredEslintAll = 1;
|
|
25
|
-
eslintAll = Object.freeze({
|
|
26
|
-
"rules": {
|
|
27
|
-
"accessor-pairs": "error",
|
|
28
|
-
"array-callback-return": "error",
|
|
29
|
-
"arrow-body-style": "error",
|
|
30
|
-
"block-scoped-var": "error",
|
|
31
|
-
"camelcase": "error",
|
|
32
|
-
"capitalized-comments": "error",
|
|
33
|
-
"class-methods-use-this": "error",
|
|
34
|
-
"complexity": "error",
|
|
35
|
-
"consistent-return": "error",
|
|
36
|
-
"consistent-this": "error",
|
|
37
|
-
"constructor-super": "error",
|
|
38
|
-
"curly": "error",
|
|
39
|
-
"default-case": "error",
|
|
40
|
-
"default-case-last": "error",
|
|
41
|
-
"default-param-last": "error",
|
|
42
|
-
"dot-notation": "error",
|
|
43
|
-
"eqeqeq": "error",
|
|
44
|
-
"for-direction": "error",
|
|
45
|
-
"func-name-matching": "error",
|
|
46
|
-
"func-names": "error",
|
|
47
|
-
"func-style": "error",
|
|
48
|
-
"getter-return": "error",
|
|
49
|
-
"grouped-accessor-pairs": "error",
|
|
50
|
-
"guard-for-in": "error",
|
|
51
|
-
"id-denylist": "error",
|
|
52
|
-
"id-length": "error",
|
|
53
|
-
"id-match": "error",
|
|
54
|
-
"init-declarations": "error",
|
|
55
|
-
"logical-assignment-operators": "error",
|
|
56
|
-
"max-classes-per-file": "error",
|
|
57
|
-
"max-depth": "error",
|
|
58
|
-
"max-lines": "error",
|
|
59
|
-
"max-lines-per-function": "error",
|
|
60
|
-
"max-nested-callbacks": "error",
|
|
61
|
-
"max-params": "error",
|
|
62
|
-
"max-statements": "error",
|
|
63
|
-
"new-cap": "error",
|
|
64
|
-
"no-alert": "error",
|
|
65
|
-
"no-array-constructor": "error",
|
|
66
|
-
"no-async-promise-executor": "error",
|
|
67
|
-
"no-await-in-loop": "error",
|
|
68
|
-
"no-bitwise": "error",
|
|
69
|
-
"no-caller": "error",
|
|
70
|
-
"no-case-declarations": "error",
|
|
71
|
-
"no-class-assign": "error",
|
|
72
|
-
"no-compare-neg-zero": "error",
|
|
73
|
-
"no-cond-assign": "error",
|
|
74
|
-
"no-console": "error",
|
|
75
|
-
"no-const-assign": "error",
|
|
76
|
-
"no-constant-binary-expression": "error",
|
|
77
|
-
"no-constant-condition": "error",
|
|
78
|
-
"no-constructor-return": "error",
|
|
79
|
-
"no-continue": "error",
|
|
80
|
-
"no-control-regex": "error",
|
|
81
|
-
"no-debugger": "error",
|
|
82
|
-
"no-delete-var": "error",
|
|
83
|
-
"no-div-regex": "error",
|
|
84
|
-
"no-dupe-args": "error",
|
|
85
|
-
"no-dupe-class-members": "error",
|
|
86
|
-
"no-dupe-else-if": "error",
|
|
87
|
-
"no-dupe-keys": "error",
|
|
88
|
-
"no-duplicate-case": "error",
|
|
89
|
-
"no-duplicate-imports": "error",
|
|
90
|
-
"no-else-return": "error",
|
|
91
|
-
"no-empty": "error",
|
|
92
|
-
"no-empty-character-class": "error",
|
|
93
|
-
"no-empty-function": "error",
|
|
94
|
-
"no-empty-pattern": "error",
|
|
95
|
-
"no-empty-static-block": "error",
|
|
96
|
-
"no-eq-null": "error",
|
|
97
|
-
"no-eval": "error",
|
|
98
|
-
"no-ex-assign": "error",
|
|
99
|
-
"no-extend-native": "error",
|
|
100
|
-
"no-extra-bind": "error",
|
|
101
|
-
"no-extra-boolean-cast": "error",
|
|
102
|
-
"no-extra-label": "error",
|
|
103
|
-
"no-fallthrough": "error",
|
|
104
|
-
"no-func-assign": "error",
|
|
105
|
-
"no-global-assign": "error",
|
|
106
|
-
"no-implicit-coercion": "error",
|
|
107
|
-
"no-implicit-globals": "error",
|
|
108
|
-
"no-implied-eval": "error",
|
|
109
|
-
"no-import-assign": "error",
|
|
110
|
-
"no-inline-comments": "error",
|
|
111
|
-
"no-inner-declarations": "error",
|
|
112
|
-
"no-invalid-regexp": "error",
|
|
113
|
-
"no-invalid-this": "error",
|
|
114
|
-
"no-irregular-whitespace": "error",
|
|
115
|
-
"no-iterator": "error",
|
|
116
|
-
"no-label-var": "error",
|
|
117
|
-
"no-labels": "error",
|
|
118
|
-
"no-lone-blocks": "error",
|
|
119
|
-
"no-lonely-if": "error",
|
|
120
|
-
"no-loop-func": "error",
|
|
121
|
-
"no-loss-of-precision": "error",
|
|
122
|
-
"no-magic-numbers": "error",
|
|
123
|
-
"no-misleading-character-class": "error",
|
|
124
|
-
"no-multi-assign": "error",
|
|
125
|
-
"no-multi-str": "error",
|
|
126
|
-
"no-negated-condition": "error",
|
|
127
|
-
"no-nested-ternary": "error",
|
|
128
|
-
"no-new": "error",
|
|
129
|
-
"no-new-func": "error",
|
|
130
|
-
"no-new-native-nonconstructor": "error",
|
|
131
|
-
"no-new-wrappers": "error",
|
|
132
|
-
"no-nonoctal-decimal-escape": "error",
|
|
133
|
-
"no-obj-calls": "error",
|
|
134
|
-
"no-object-constructor": "error",
|
|
135
|
-
"no-octal": "error",
|
|
136
|
-
"no-octal-escape": "error",
|
|
137
|
-
"no-param-reassign": "error",
|
|
138
|
-
"no-plusplus": "error",
|
|
139
|
-
"no-promise-executor-return": "error",
|
|
140
|
-
"no-proto": "error",
|
|
141
|
-
"no-prototype-builtins": "error",
|
|
142
|
-
"no-redeclare": "error",
|
|
143
|
-
"no-regex-spaces": "error",
|
|
144
|
-
"no-restricted-exports": "error",
|
|
145
|
-
"no-restricted-globals": "error",
|
|
146
|
-
"no-restricted-imports": "error",
|
|
147
|
-
"no-restricted-properties": "error",
|
|
148
|
-
"no-restricted-syntax": "error",
|
|
149
|
-
"no-return-assign": "error",
|
|
150
|
-
"no-script-url": "error",
|
|
151
|
-
"no-self-assign": "error",
|
|
152
|
-
"no-self-compare": "error",
|
|
153
|
-
"no-sequences": "error",
|
|
154
|
-
"no-setter-return": "error",
|
|
155
|
-
"no-shadow": "error",
|
|
156
|
-
"no-shadow-restricted-names": "error",
|
|
157
|
-
"no-sparse-arrays": "error",
|
|
158
|
-
"no-template-curly-in-string": "error",
|
|
159
|
-
"no-ternary": "error",
|
|
160
|
-
"no-this-before-super": "error",
|
|
161
|
-
"no-throw-literal": "error",
|
|
162
|
-
"no-undef": "error",
|
|
163
|
-
"no-undef-init": "error",
|
|
164
|
-
"no-undefined": "error",
|
|
165
|
-
"no-underscore-dangle": "error",
|
|
166
|
-
"no-unexpected-multiline": "error",
|
|
167
|
-
"no-unmodified-loop-condition": "error",
|
|
168
|
-
"no-unneeded-ternary": "error",
|
|
169
|
-
"no-unreachable": "error",
|
|
170
|
-
"no-unreachable-loop": "error",
|
|
171
|
-
"no-unsafe-finally": "error",
|
|
172
|
-
"no-unsafe-negation": "error",
|
|
173
|
-
"no-unsafe-optional-chaining": "error",
|
|
174
|
-
"no-unused-expressions": "error",
|
|
175
|
-
"no-unused-labels": "error",
|
|
176
|
-
"no-unused-private-class-members": "error",
|
|
177
|
-
"no-unused-vars": "error",
|
|
178
|
-
"no-use-before-define": "error",
|
|
179
|
-
"no-useless-assignment": "error",
|
|
180
|
-
"no-useless-backreference": "error",
|
|
181
|
-
"no-useless-call": "error",
|
|
182
|
-
"no-useless-catch": "error",
|
|
183
|
-
"no-useless-computed-key": "error",
|
|
184
|
-
"no-useless-concat": "error",
|
|
185
|
-
"no-useless-constructor": "error",
|
|
186
|
-
"no-useless-escape": "error",
|
|
187
|
-
"no-useless-rename": "error",
|
|
188
|
-
"no-useless-return": "error",
|
|
189
|
-
"no-var": "error",
|
|
190
|
-
"no-void": "error",
|
|
191
|
-
"no-warning-comments": "error",
|
|
192
|
-
"no-with": "error",
|
|
193
|
-
"object-shorthand": "error",
|
|
194
|
-
"one-var": "error",
|
|
195
|
-
"operator-assignment": "error",
|
|
196
|
-
"prefer-arrow-callback": "error",
|
|
197
|
-
"prefer-const": "error",
|
|
198
|
-
"prefer-destructuring": "error",
|
|
199
|
-
"prefer-exponentiation-operator": "error",
|
|
200
|
-
"prefer-named-capture-group": "error",
|
|
201
|
-
"prefer-numeric-literals": "error",
|
|
202
|
-
"prefer-object-has-own": "error",
|
|
203
|
-
"prefer-object-spread": "error",
|
|
204
|
-
"prefer-promise-reject-errors": "error",
|
|
205
|
-
"prefer-regex-literals": "error",
|
|
206
|
-
"prefer-rest-params": "error",
|
|
207
|
-
"prefer-spread": "error",
|
|
208
|
-
"prefer-template": "error",
|
|
209
|
-
"radix": "error",
|
|
210
|
-
"require-atomic-updates": "error",
|
|
211
|
-
"require-await": "error",
|
|
212
|
-
"require-unicode-regexp": "error",
|
|
213
|
-
"require-yield": "error",
|
|
214
|
-
"sort-imports": "error",
|
|
215
|
-
"sort-keys": "error",
|
|
216
|
-
"sort-vars": "error",
|
|
217
|
-
"strict": "error",
|
|
218
|
-
"symbol-description": "error",
|
|
219
|
-
"unicode-bom": "error",
|
|
220
|
-
"use-isnan": "error",
|
|
221
|
-
"valid-typeof": "error",
|
|
222
|
-
"vars-on-top": "error",
|
|
223
|
-
"yoda": "error"
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
return eslintAll;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
var eslintRecommended;
|
|
230
|
-
var hasRequiredEslintRecommended;
|
|
231
|
-
|
|
232
|
-
function requireEslintRecommended () {
|
|
233
|
-
if (hasRequiredEslintRecommended) return eslintRecommended;
|
|
234
|
-
hasRequiredEslintRecommended = 1;
|
|
235
|
-
eslintRecommended = Object.freeze({
|
|
236
|
-
rules: Object.freeze({
|
|
237
|
-
"constructor-super": "error",
|
|
238
|
-
"for-direction": "error",
|
|
239
|
-
"getter-return": "error",
|
|
240
|
-
"no-async-promise-executor": "error",
|
|
241
|
-
"no-case-declarations": "error",
|
|
242
|
-
"no-class-assign": "error",
|
|
243
|
-
"no-compare-neg-zero": "error",
|
|
244
|
-
"no-cond-assign": "error",
|
|
245
|
-
"no-const-assign": "error",
|
|
246
|
-
"no-constant-binary-expression": "error",
|
|
247
|
-
"no-constant-condition": "error",
|
|
248
|
-
"no-control-regex": "error",
|
|
249
|
-
"no-debugger": "error",
|
|
250
|
-
"no-delete-var": "error",
|
|
251
|
-
"no-dupe-args": "error",
|
|
252
|
-
"no-dupe-class-members": "error",
|
|
253
|
-
"no-dupe-else-if": "error",
|
|
254
|
-
"no-dupe-keys": "error",
|
|
255
|
-
"no-duplicate-case": "error",
|
|
256
|
-
"no-empty": "error",
|
|
257
|
-
"no-empty-character-class": "error",
|
|
258
|
-
"no-empty-pattern": "error",
|
|
259
|
-
"no-empty-static-block": "error",
|
|
260
|
-
"no-ex-assign": "error",
|
|
261
|
-
"no-extra-boolean-cast": "error",
|
|
262
|
-
"no-fallthrough": "error",
|
|
263
|
-
"no-func-assign": "error",
|
|
264
|
-
"no-global-assign": "error",
|
|
265
|
-
"no-import-assign": "error",
|
|
266
|
-
"no-invalid-regexp": "error",
|
|
267
|
-
"no-irregular-whitespace": "error",
|
|
268
|
-
"no-loss-of-precision": "error",
|
|
269
|
-
"no-misleading-character-class": "error",
|
|
270
|
-
"no-new-native-nonconstructor": "error",
|
|
271
|
-
"no-nonoctal-decimal-escape": "error",
|
|
272
|
-
"no-obj-calls": "error",
|
|
273
|
-
"no-octal": "error",
|
|
274
|
-
"no-prototype-builtins": "error",
|
|
275
|
-
"no-redeclare": "error",
|
|
276
|
-
"no-regex-spaces": "error",
|
|
277
|
-
"no-self-assign": "error",
|
|
278
|
-
"no-setter-return": "error",
|
|
279
|
-
"no-shadow-restricted-names": "error",
|
|
280
|
-
"no-sparse-arrays": "error",
|
|
281
|
-
"no-this-before-super": "error",
|
|
282
|
-
"no-undef": "error",
|
|
283
|
-
"no-unexpected-multiline": "error",
|
|
284
|
-
"no-unreachable": "error",
|
|
285
|
-
"no-unsafe-finally": "error",
|
|
286
|
-
"no-unsafe-negation": "error",
|
|
287
|
-
"no-unsafe-optional-chaining": "error",
|
|
288
|
-
"no-unused-labels": "error",
|
|
289
|
-
"no-unused-private-class-members": "error",
|
|
290
|
-
"no-unused-vars": "error",
|
|
291
|
-
"no-useless-backreference": "error",
|
|
292
|
-
"no-useless-catch": "error",
|
|
293
|
-
"no-useless-escape": "error",
|
|
294
|
-
"no-with": "error",
|
|
295
|
-
"require-yield": "error",
|
|
296
|
-
"use-isnan": "error",
|
|
297
|
-
"valid-typeof": "error"
|
|
298
|
-
})
|
|
299
|
-
});
|
|
300
|
-
return eslintRecommended;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
var src;
|
|
304
|
-
var hasRequiredSrc;
|
|
305
|
-
|
|
306
|
-
function requireSrc () {
|
|
307
|
-
if (hasRequiredSrc) return src;
|
|
308
|
-
hasRequiredSrc = 1;
|
|
309
|
-
const { name, version } = require$$0;
|
|
310
|
-
src = {
|
|
311
|
-
meta: {
|
|
312
|
-
name,
|
|
313
|
-
version
|
|
314
|
-
},
|
|
315
|
-
configs: {
|
|
316
|
-
all: requireEslintAll(),
|
|
317
|
-
recommended: requireEslintRecommended()
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
return src;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
var srcExports = requireSrc();
|
|
324
|
-
var js = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
|
|
325
|
-
|
|
326
10
|
const typescript = [
|
|
327
11
|
...plugins["typescript-eslint"].configs.recommended,
|
|
328
12
|
{
|
|
@@ -392,7 +76,7 @@ const vue = (options) => {
|
|
|
392
76
|
// Strengthen vue/(vue3-)recommended preset for autofix
|
|
393
77
|
// https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/configs/recommended.js
|
|
394
78
|
"vue/attributes-order": "error",
|
|
395
|
-
"vue/
|
|
79
|
+
"vue/block-order": "error",
|
|
396
80
|
"vue/no-lone-template": "error",
|
|
397
81
|
"vue/no-multiple-slot-args": "error",
|
|
398
82
|
"vue/no-v-html": "error",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kouts/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
5
|
-
"packageManager": "pnpm@
|
|
4
|
+
"version": "3.0.0",
|
|
5
|
+
"packageManager": "pnpm@10.6.1",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
8
8
|
},
|
|
@@ -70,28 +70,29 @@
|
|
|
70
70
|
"url": "git+https://github.com/kouts/eslint-config.git"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
+
"@eslint/js": "^9.22.0",
|
|
73
74
|
"@vitest/eslint-plugin": "^1.1.36",
|
|
74
|
-
"eslint-config-prettier": "^10.
|
|
75
|
+
"eslint-config-prettier": "^10.1.1",
|
|
75
76
|
"eslint-plugin-html": "^8.1.2",
|
|
76
77
|
"eslint-plugin-prettier": "^5.2.3",
|
|
77
78
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
78
|
-
"eslint-plugin-vue": "^
|
|
79
|
+
"eslint-plugin-vue": "^10.0.0",
|
|
79
80
|
"neostandard": "^0.12.1",
|
|
80
|
-
"prettier": "^3.
|
|
81
|
+
"prettier": "^3.5.3"
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
83
|
-
"@commitlint/cli": "^19.
|
|
84
|
-
"@commitlint/config-conventional": "^19.
|
|
84
|
+
"@commitlint/cli": "^19.8.0",
|
|
85
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
85
86
|
"@semantic-release/changelog": "^6.0.3",
|
|
86
87
|
"@semantic-release/git": "^10.0.1",
|
|
87
|
-
"@types/node": "^22.13.
|
|
88
|
-
"eslint": "^9.
|
|
88
|
+
"@types/node": "^22.13.10",
|
|
89
|
+
"eslint": "^9.22.0",
|
|
89
90
|
"husky": "^9.1.7",
|
|
90
91
|
"lint-staged": "^15.4.3",
|
|
91
92
|
"pkgroll": "^2.11.2",
|
|
92
93
|
"semantic-release": "^24.2.3",
|
|
93
|
-
"typescript": "5.
|
|
94
|
-
"vitest": "^3.0.
|
|
94
|
+
"typescript": "5.8.2",
|
|
95
|
+
"vitest": "^3.0.8"
|
|
95
96
|
},
|
|
96
97
|
"peerDependencies": {
|
|
97
98
|
"eslint": "^9.8.0"
|