@saasmakers/eslint 0.1.18 → 0.1.20
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/eslint.config.cjs +527 -438
- package/dist/eslint.config.mjs +511 -429
- package/dist/index.cjs +1150 -4
- package/dist/index.d.cts +2 -5178
- package/dist/index.d.mts +2 -5178
- package/dist/index.d.ts +2 -5178
- package/dist/index.mjs +1153 -3
- package/package.json +13 -3
- package/dist/shared/eslint.NxlGRwZa.cjs +0 -15282
- package/dist/shared/eslint.poN7Ld_I.mjs +0 -15272
package/dist/eslint.config.cjs
CHANGED
|
@@ -2,468 +2,499 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const pluginJs = require('@eslint/js');
|
|
6
|
+
const stylistic = require('@stylistic/eslint-plugin');
|
|
6
7
|
const unocss = require('@unocss/eslint-config/flat');
|
|
8
|
+
const eslintMergeProcessors = require('eslint-merge-processors');
|
|
9
|
+
const nodeEslint = require('eslint-plugin-n');
|
|
7
10
|
const packageJson = require('eslint-plugin-package-json');
|
|
8
11
|
const perfectionist = require('eslint-plugin-perfectionist');
|
|
9
12
|
const eslintPluginPnpm = require('eslint-plugin-pnpm');
|
|
10
13
|
const turbo = require('eslint-plugin-turbo');
|
|
14
|
+
const unicorn = require('eslint-plugin-unicorn');
|
|
15
|
+
const pluginVue = require('eslint-plugin-vue');
|
|
16
|
+
const vueAccessibility = require('eslint-plugin-vuejs-accessibility');
|
|
17
|
+
const processorVueBlocks = require('eslint-processor-vue-blocks');
|
|
11
18
|
const tseslint = require('typescript-eslint');
|
|
12
|
-
const require$$0$
|
|
19
|
+
const require$$0$1 = require('path');
|
|
13
20
|
const require$$2 = require('assert');
|
|
14
21
|
const require$$1$1 = require('tty');
|
|
15
22
|
const require$$1$2 = require('util');
|
|
16
|
-
const require$$0
|
|
23
|
+
const require$$0 = require('os');
|
|
17
24
|
const require$$6 = require('module');
|
|
18
25
|
const require$$8 = require('events');
|
|
19
26
|
const require$$9 = require('esquery');
|
|
20
|
-
const require$$
|
|
21
|
-
require('
|
|
27
|
+
const require$$10 = require('eslint');
|
|
28
|
+
const index = require('./index.cjs');
|
|
29
|
+
require('@typescript-eslint/utils');
|
|
22
30
|
|
|
23
31
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
24
32
|
|
|
33
|
+
const pluginJs__default = /*#__PURE__*/_interopDefaultCompat(pluginJs);
|
|
34
|
+
const stylistic__default = /*#__PURE__*/_interopDefaultCompat(stylistic);
|
|
25
35
|
const unocss__default = /*#__PURE__*/_interopDefaultCompat(unocss);
|
|
36
|
+
const nodeEslint__default = /*#__PURE__*/_interopDefaultCompat(nodeEslint);
|
|
26
37
|
const packageJson__default = /*#__PURE__*/_interopDefaultCompat(packageJson);
|
|
27
38
|
const perfectionist__default = /*#__PURE__*/_interopDefaultCompat(perfectionist);
|
|
28
39
|
const turbo__default = /*#__PURE__*/_interopDefaultCompat(turbo);
|
|
40
|
+
const unicorn__default = /*#__PURE__*/_interopDefaultCompat(unicorn);
|
|
41
|
+
const pluginVue__default = /*#__PURE__*/_interopDefaultCompat(pluginVue);
|
|
42
|
+
const vueAccessibility__default = /*#__PURE__*/_interopDefaultCompat(vueAccessibility);
|
|
43
|
+
const processorVueBlocks__default = /*#__PURE__*/_interopDefaultCompat(processorVueBlocks);
|
|
29
44
|
const tseslint__default = /*#__PURE__*/_interopDefaultCompat(tseslint);
|
|
30
|
-
const require$$0__default$1 = /*#__PURE__*/_interopDefaultCompat(require$$0$
|
|
45
|
+
const require$$0__default$1 = /*#__PURE__*/_interopDefaultCompat(require$$0$1);
|
|
31
46
|
const require$$2__default = /*#__PURE__*/_interopDefaultCompat(require$$2);
|
|
32
47
|
const require$$1__default = /*#__PURE__*/_interopDefaultCompat(require$$1$1);
|
|
33
48
|
const require$$1__default$1 = /*#__PURE__*/_interopDefaultCompat(require$$1$2);
|
|
34
|
-
const require$$0__default = /*#__PURE__*/_interopDefaultCompat(require$$0
|
|
49
|
+
const require$$0__default = /*#__PURE__*/_interopDefaultCompat(require$$0);
|
|
35
50
|
const require$$6__default = /*#__PURE__*/_interopDefaultCompat(require$$6);
|
|
36
51
|
const require$$8__default = /*#__PURE__*/_interopDefaultCompat(require$$8);
|
|
37
52
|
const require$$9__default = /*#__PURE__*/_interopDefaultCompat(require$$9);
|
|
38
|
-
const require$$
|
|
39
|
-
|
|
40
|
-
const name$1 = "@eslint/js";
|
|
41
|
-
const version$1 = "9.39.2";
|
|
42
|
-
const description$1 = "ESLint JavaScript language implementation";
|
|
43
|
-
const funding = "https://eslint.org/donate";
|
|
44
|
-
const main$1 = "./src/index.js";
|
|
45
|
-
const types = "./types/index.d.ts";
|
|
46
|
-
const scripts$1 = {
|
|
47
|
-
"test:types": "tsc -p tests/types/tsconfig.json"
|
|
48
|
-
};
|
|
49
|
-
const files = [
|
|
50
|
-
"LICENSE",
|
|
51
|
-
"README.md",
|
|
52
|
-
"src",
|
|
53
|
-
"types"
|
|
54
|
-
];
|
|
55
|
-
const publishConfig = {
|
|
56
|
-
access: "public"
|
|
57
|
-
};
|
|
58
|
-
const repository$1 = {
|
|
59
|
-
type: "git",
|
|
60
|
-
url: "https://github.com/eslint/eslint.git",
|
|
61
|
-
directory: "packages/js"
|
|
62
|
-
};
|
|
63
|
-
const homepage$1 = "https://eslint.org";
|
|
64
|
-
const bugs = "https://github.com/eslint/eslint/issues/";
|
|
65
|
-
const keywords = [
|
|
66
|
-
"javascript",
|
|
67
|
-
"eslint-plugin",
|
|
68
|
-
"eslint"
|
|
69
|
-
];
|
|
70
|
-
const license$1 = "MIT";
|
|
71
|
-
const engines$1 = {
|
|
72
|
-
node: "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
73
|
-
};
|
|
74
|
-
const _package$2 = {
|
|
75
|
-
name: name$1,
|
|
76
|
-
version: version$1,
|
|
77
|
-
description: description$1,
|
|
78
|
-
funding: funding,
|
|
79
|
-
main: main$1,
|
|
80
|
-
types: types,
|
|
81
|
-
scripts: scripts$1,
|
|
82
|
-
files: files,
|
|
83
|
-
publishConfig: publishConfig,
|
|
84
|
-
repository: repository$1,
|
|
85
|
-
homepage: homepage$1,
|
|
86
|
-
bugs: bugs,
|
|
87
|
-
keywords: keywords,
|
|
88
|
-
license: license$1,
|
|
89
|
-
engines: engines$1
|
|
90
|
-
};
|
|
53
|
+
const require$$10__default = /*#__PURE__*/_interopDefaultCompat(require$$10);
|
|
91
54
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
default: _package$2,
|
|
96
|
-
description: description$1,
|
|
97
|
-
engines: engines$1,
|
|
98
|
-
files: files,
|
|
99
|
-
funding: funding,
|
|
100
|
-
homepage: homepage$1,
|
|
101
|
-
keywords: keywords,
|
|
102
|
-
license: license$1,
|
|
103
|
-
main: main$1,
|
|
104
|
-
name: name$1,
|
|
105
|
-
publishConfig: publishConfig,
|
|
106
|
-
repository: repository$1,
|
|
107
|
-
scripts: scripts$1,
|
|
108
|
-
types: types,
|
|
109
|
-
version: version$1
|
|
110
|
-
};
|
|
55
|
+
function getDefaultExportFromCjs (x) {
|
|
56
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
57
|
+
}
|
|
111
58
|
|
|
112
|
-
|
|
59
|
+
function getAugmentedNamespace(n) {
|
|
60
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
61
|
+
var f = n.default;
|
|
62
|
+
if (typeof f == "function") {
|
|
63
|
+
var a = function a () {
|
|
64
|
+
var isInstance = false;
|
|
65
|
+
try {
|
|
66
|
+
isInstance = this instanceof a;
|
|
67
|
+
} catch {}
|
|
68
|
+
if (isInstance) {
|
|
69
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
70
|
+
}
|
|
71
|
+
return f.apply(this, arguments);
|
|
72
|
+
};
|
|
73
|
+
a.prototype = f.prototype;
|
|
74
|
+
} else a = {};
|
|
75
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
76
|
+
Object.keys(n).forEach(function (k) {
|
|
77
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
78
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return n[k];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
return a;
|
|
86
|
+
}
|
|
113
87
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
*/
|
|
88
|
+
function commonjsRequire(path) {
|
|
89
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
90
|
+
}
|
|
118
91
|
|
|
119
|
-
var
|
|
120
|
-
var hasRequiredEslintAll;
|
|
92
|
+
var vueEslintParser = {};
|
|
121
93
|
|
|
122
|
-
|
|
123
|
-
if (hasRequiredEslintAll) return eslintAll;
|
|
124
|
-
hasRequiredEslintAll = 1;
|
|
94
|
+
var eslintVisitorKeys = {};
|
|
125
95
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
96
|
+
var hasRequiredEslintVisitorKeys;
|
|
97
|
+
|
|
98
|
+
function requireEslintVisitorKeys () {
|
|
99
|
+
if (hasRequiredEslintVisitorKeys) return eslintVisitorKeys;
|
|
100
|
+
hasRequiredEslintVisitorKeys = 1;
|
|
101
|
+
|
|
102
|
+
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
|
|
103
|
+
TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
|
|
104
|
+
*/
|
|
105
|
+
/**
|
|
106
|
+
* @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
|
|
132
107
|
*/
|
|
108
|
+
/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */
|
|
133
109
|
|
|
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
|
-
"
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
"
|
|
295
|
-
|
|
296
|
-
|
|
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
|
-
|
|
110
|
+
/**
|
|
111
|
+
* @type {VisitorKeys}
|
|
112
|
+
*/
|
|
113
|
+
const KEYS = {
|
|
114
|
+
ArrayExpression: [
|
|
115
|
+
"elements"
|
|
116
|
+
],
|
|
117
|
+
ArrayPattern: [
|
|
118
|
+
"elements"
|
|
119
|
+
],
|
|
120
|
+
ArrowFunctionExpression: [
|
|
121
|
+
"params",
|
|
122
|
+
"body"
|
|
123
|
+
],
|
|
124
|
+
AssignmentExpression: [
|
|
125
|
+
"left",
|
|
126
|
+
"right"
|
|
127
|
+
],
|
|
128
|
+
AssignmentPattern: [
|
|
129
|
+
"left",
|
|
130
|
+
"right"
|
|
131
|
+
],
|
|
132
|
+
AwaitExpression: [
|
|
133
|
+
"argument"
|
|
134
|
+
],
|
|
135
|
+
BinaryExpression: [
|
|
136
|
+
"left",
|
|
137
|
+
"right"
|
|
138
|
+
],
|
|
139
|
+
BlockStatement: [
|
|
140
|
+
"body"
|
|
141
|
+
],
|
|
142
|
+
BreakStatement: [
|
|
143
|
+
"label"
|
|
144
|
+
],
|
|
145
|
+
CallExpression: [
|
|
146
|
+
"callee",
|
|
147
|
+
"arguments"
|
|
148
|
+
],
|
|
149
|
+
CatchClause: [
|
|
150
|
+
"param",
|
|
151
|
+
"body"
|
|
152
|
+
],
|
|
153
|
+
ChainExpression: [
|
|
154
|
+
"expression"
|
|
155
|
+
],
|
|
156
|
+
ClassBody: [
|
|
157
|
+
"body"
|
|
158
|
+
],
|
|
159
|
+
ClassDeclaration: [
|
|
160
|
+
"id",
|
|
161
|
+
"superClass",
|
|
162
|
+
"body"
|
|
163
|
+
],
|
|
164
|
+
ClassExpression: [
|
|
165
|
+
"id",
|
|
166
|
+
"superClass",
|
|
167
|
+
"body"
|
|
168
|
+
],
|
|
169
|
+
ConditionalExpression: [
|
|
170
|
+
"test",
|
|
171
|
+
"consequent",
|
|
172
|
+
"alternate"
|
|
173
|
+
],
|
|
174
|
+
ContinueStatement: [
|
|
175
|
+
"label"
|
|
176
|
+
],
|
|
177
|
+
DebuggerStatement: [],
|
|
178
|
+
DoWhileStatement: [
|
|
179
|
+
"body",
|
|
180
|
+
"test"
|
|
181
|
+
],
|
|
182
|
+
EmptyStatement: [],
|
|
183
|
+
ExperimentalRestProperty: [
|
|
184
|
+
"argument"
|
|
185
|
+
],
|
|
186
|
+
ExperimentalSpreadProperty: [
|
|
187
|
+
"argument"
|
|
188
|
+
],
|
|
189
|
+
ExportAllDeclaration: [
|
|
190
|
+
"exported",
|
|
191
|
+
"source",
|
|
192
|
+
"attributes"
|
|
193
|
+
],
|
|
194
|
+
ExportDefaultDeclaration: [
|
|
195
|
+
"declaration"
|
|
196
|
+
],
|
|
197
|
+
ExportNamedDeclaration: [
|
|
198
|
+
"declaration",
|
|
199
|
+
"specifiers",
|
|
200
|
+
"source",
|
|
201
|
+
"attributes"
|
|
202
|
+
],
|
|
203
|
+
ExportSpecifier: [
|
|
204
|
+
"local",
|
|
205
|
+
"exported"
|
|
206
|
+
],
|
|
207
|
+
ExpressionStatement: [
|
|
208
|
+
"expression"
|
|
209
|
+
],
|
|
210
|
+
ForInStatement: [
|
|
211
|
+
"left",
|
|
212
|
+
"right",
|
|
213
|
+
"body"
|
|
214
|
+
],
|
|
215
|
+
ForOfStatement: [
|
|
216
|
+
"left",
|
|
217
|
+
"right",
|
|
218
|
+
"body"
|
|
219
|
+
],
|
|
220
|
+
ForStatement: [
|
|
221
|
+
"init",
|
|
222
|
+
"test",
|
|
223
|
+
"update",
|
|
224
|
+
"body"
|
|
225
|
+
],
|
|
226
|
+
FunctionDeclaration: [
|
|
227
|
+
"id",
|
|
228
|
+
"params",
|
|
229
|
+
"body"
|
|
230
|
+
],
|
|
231
|
+
FunctionExpression: [
|
|
232
|
+
"id",
|
|
233
|
+
"params",
|
|
234
|
+
"body"
|
|
235
|
+
],
|
|
236
|
+
Identifier: [],
|
|
237
|
+
IfStatement: [
|
|
238
|
+
"test",
|
|
239
|
+
"consequent",
|
|
240
|
+
"alternate"
|
|
241
|
+
],
|
|
242
|
+
ImportAttribute: [
|
|
243
|
+
"key",
|
|
244
|
+
"value"
|
|
245
|
+
],
|
|
246
|
+
ImportDeclaration: [
|
|
247
|
+
"specifiers",
|
|
248
|
+
"source",
|
|
249
|
+
"attributes"
|
|
250
|
+
],
|
|
251
|
+
ImportDefaultSpecifier: [
|
|
252
|
+
"local"
|
|
253
|
+
],
|
|
254
|
+
ImportExpression: [
|
|
255
|
+
"source",
|
|
256
|
+
"options"
|
|
257
|
+
],
|
|
258
|
+
ImportNamespaceSpecifier: [
|
|
259
|
+
"local"
|
|
260
|
+
],
|
|
261
|
+
ImportSpecifier: [
|
|
262
|
+
"imported",
|
|
263
|
+
"local"
|
|
264
|
+
],
|
|
265
|
+
JSXAttribute: [
|
|
266
|
+
"name",
|
|
267
|
+
"value"
|
|
268
|
+
],
|
|
269
|
+
JSXClosingElement: [
|
|
270
|
+
"name"
|
|
271
|
+
],
|
|
272
|
+
JSXClosingFragment: [],
|
|
273
|
+
JSXElement: [
|
|
274
|
+
"openingElement",
|
|
275
|
+
"children",
|
|
276
|
+
"closingElement"
|
|
277
|
+
],
|
|
278
|
+
JSXEmptyExpression: [],
|
|
279
|
+
JSXExpressionContainer: [
|
|
280
|
+
"expression"
|
|
281
|
+
],
|
|
282
|
+
JSXFragment: [
|
|
283
|
+
"openingFragment",
|
|
284
|
+
"children",
|
|
285
|
+
"closingFragment"
|
|
286
|
+
],
|
|
287
|
+
JSXIdentifier: [],
|
|
288
|
+
JSXMemberExpression: [
|
|
289
|
+
"object",
|
|
290
|
+
"property"
|
|
291
|
+
],
|
|
292
|
+
JSXNamespacedName: [
|
|
293
|
+
"namespace",
|
|
294
|
+
"name"
|
|
295
|
+
],
|
|
296
|
+
JSXOpeningElement: [
|
|
297
|
+
"name",
|
|
298
|
+
"attributes"
|
|
299
|
+
],
|
|
300
|
+
JSXOpeningFragment: [],
|
|
301
|
+
JSXSpreadAttribute: [
|
|
302
|
+
"argument"
|
|
303
|
+
],
|
|
304
|
+
JSXSpreadChild: [
|
|
305
|
+
"expression"
|
|
306
|
+
],
|
|
307
|
+
JSXText: [],
|
|
308
|
+
LabeledStatement: [
|
|
309
|
+
"label",
|
|
310
|
+
"body"
|
|
311
|
+
],
|
|
312
|
+
Literal: [],
|
|
313
|
+
LogicalExpression: [
|
|
314
|
+
"left",
|
|
315
|
+
"right"
|
|
316
|
+
],
|
|
317
|
+
MemberExpression: [
|
|
318
|
+
"object",
|
|
319
|
+
"property"
|
|
320
|
+
],
|
|
321
|
+
MetaProperty: [
|
|
322
|
+
"meta",
|
|
323
|
+
"property"
|
|
324
|
+
],
|
|
325
|
+
MethodDefinition: [
|
|
326
|
+
"key",
|
|
327
|
+
"value"
|
|
328
|
+
],
|
|
329
|
+
NewExpression: [
|
|
330
|
+
"callee",
|
|
331
|
+
"arguments"
|
|
332
|
+
],
|
|
333
|
+
ObjectExpression: [
|
|
334
|
+
"properties"
|
|
335
|
+
],
|
|
336
|
+
ObjectPattern: [
|
|
337
|
+
"properties"
|
|
338
|
+
],
|
|
339
|
+
PrivateIdentifier: [],
|
|
340
|
+
Program: [
|
|
341
|
+
"body"
|
|
342
|
+
],
|
|
343
|
+
Property: [
|
|
344
|
+
"key",
|
|
345
|
+
"value"
|
|
346
|
+
],
|
|
347
|
+
PropertyDefinition: [
|
|
348
|
+
"key",
|
|
349
|
+
"value"
|
|
350
|
+
],
|
|
351
|
+
RestElement: [
|
|
352
|
+
"argument"
|
|
353
|
+
],
|
|
354
|
+
ReturnStatement: [
|
|
355
|
+
"argument"
|
|
356
|
+
],
|
|
357
|
+
SequenceExpression: [
|
|
358
|
+
"expressions"
|
|
359
|
+
],
|
|
360
|
+
SpreadElement: [
|
|
361
|
+
"argument"
|
|
362
|
+
],
|
|
363
|
+
StaticBlock: [
|
|
364
|
+
"body"
|
|
365
|
+
],
|
|
366
|
+
Super: [],
|
|
367
|
+
SwitchCase: [
|
|
368
|
+
"test",
|
|
369
|
+
"consequent"
|
|
370
|
+
],
|
|
371
|
+
SwitchStatement: [
|
|
372
|
+
"discriminant",
|
|
373
|
+
"cases"
|
|
374
|
+
],
|
|
375
|
+
TaggedTemplateExpression: [
|
|
376
|
+
"tag",
|
|
377
|
+
"quasi"
|
|
378
|
+
],
|
|
379
|
+
TemplateElement: [],
|
|
380
|
+
TemplateLiteral: [
|
|
381
|
+
"quasis",
|
|
382
|
+
"expressions"
|
|
383
|
+
],
|
|
384
|
+
ThisExpression: [],
|
|
385
|
+
ThrowStatement: [
|
|
386
|
+
"argument"
|
|
387
|
+
],
|
|
388
|
+
TryStatement: [
|
|
389
|
+
"block",
|
|
390
|
+
"handler",
|
|
391
|
+
"finalizer"
|
|
392
|
+
],
|
|
393
|
+
UnaryExpression: [
|
|
394
|
+
"argument"
|
|
395
|
+
],
|
|
396
|
+
UpdateExpression: [
|
|
397
|
+
"argument"
|
|
398
|
+
],
|
|
399
|
+
VariableDeclaration: [
|
|
400
|
+
"declarations"
|
|
401
|
+
],
|
|
402
|
+
VariableDeclarator: [
|
|
403
|
+
"id",
|
|
404
|
+
"init"
|
|
405
|
+
],
|
|
406
|
+
WhileStatement: [
|
|
407
|
+
"test",
|
|
408
|
+
"body"
|
|
409
|
+
],
|
|
410
|
+
WithStatement: [
|
|
411
|
+
"object",
|
|
412
|
+
"body"
|
|
413
|
+
],
|
|
414
|
+
YieldExpression: [
|
|
415
|
+
"argument"
|
|
416
|
+
]
|
|
417
|
+
};
|
|
339
418
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
* script. Do not edit manually.
|
|
343
|
-
*/
|
|
419
|
+
// Types.
|
|
420
|
+
const NODE_TYPES = Object.keys(KEYS);
|
|
344
421
|
|
|
345
|
-
|
|
346
|
-
|
|
422
|
+
// Freeze the keys.
|
|
423
|
+
for (const type of NODE_TYPES) {
|
|
424
|
+
Object.freeze(KEYS[type]);
|
|
425
|
+
}
|
|
426
|
+
Object.freeze(KEYS);
|
|
347
427
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
428
|
+
/**
|
|
429
|
+
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
430
|
+
* See LICENSE file in root directory for full license.
|
|
431
|
+
*/
|
|
351
432
|
|
|
352
|
-
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
* We cannot add a "name" property to this object because it's still used in eslintrc
|
|
356
|
-
* which doesn't support the "name" property. If we add a "name" property, it will
|
|
357
|
-
* cause an error.
|
|
433
|
+
/**
|
|
434
|
+
* @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys
|
|
358
435
|
*/
|
|
359
436
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
"no-case-declarations": "error",
|
|
367
|
-
"no-class-assign": "error",
|
|
368
|
-
"no-compare-neg-zero": "error",
|
|
369
|
-
"no-cond-assign": "error",
|
|
370
|
-
"no-const-assign": "error",
|
|
371
|
-
"no-constant-binary-expression": "error",
|
|
372
|
-
"no-constant-condition": "error",
|
|
373
|
-
"no-control-regex": "error",
|
|
374
|
-
"no-debugger": "error",
|
|
375
|
-
"no-delete-var": "error",
|
|
376
|
-
"no-dupe-args": "error",
|
|
377
|
-
"no-dupe-class-members": "error",
|
|
378
|
-
"no-dupe-else-if": "error",
|
|
379
|
-
"no-dupe-keys": "error",
|
|
380
|
-
"no-duplicate-case": "error",
|
|
381
|
-
"no-empty": "error",
|
|
382
|
-
"no-empty-character-class": "error",
|
|
383
|
-
"no-empty-pattern": "error",
|
|
384
|
-
"no-empty-static-block": "error",
|
|
385
|
-
"no-ex-assign": "error",
|
|
386
|
-
"no-extra-boolean-cast": "error",
|
|
387
|
-
"no-fallthrough": "error",
|
|
388
|
-
"no-func-assign": "error",
|
|
389
|
-
"no-global-assign": "error",
|
|
390
|
-
"no-import-assign": "error",
|
|
391
|
-
"no-invalid-regexp": "error",
|
|
392
|
-
"no-irregular-whitespace": "error",
|
|
393
|
-
"no-loss-of-precision": "error",
|
|
394
|
-
"no-misleading-character-class": "error",
|
|
395
|
-
"no-new-native-nonconstructor": "error",
|
|
396
|
-
"no-nonoctal-decimal-escape": "error",
|
|
397
|
-
"no-obj-calls": "error",
|
|
398
|
-
"no-octal": "error",
|
|
399
|
-
"no-prototype-builtins": "error",
|
|
400
|
-
"no-redeclare": "error",
|
|
401
|
-
"no-regex-spaces": "error",
|
|
402
|
-
"no-self-assign": "error",
|
|
403
|
-
"no-setter-return": "error",
|
|
404
|
-
"no-shadow-restricted-names": "error",
|
|
405
|
-
"no-sparse-arrays": "error",
|
|
406
|
-
"no-this-before-super": "error",
|
|
407
|
-
"no-undef": "error",
|
|
408
|
-
"no-unexpected-multiline": "error",
|
|
409
|
-
"no-unreachable": "error",
|
|
410
|
-
"no-unsafe-finally": "error",
|
|
411
|
-
"no-unsafe-negation": "error",
|
|
412
|
-
"no-unsafe-optional-chaining": "error",
|
|
413
|
-
"no-unused-labels": "error",
|
|
414
|
-
"no-unused-private-class-members": "error",
|
|
415
|
-
"no-unused-vars": "error",
|
|
416
|
-
"no-useless-backreference": "error",
|
|
417
|
-
"no-useless-catch": "error",
|
|
418
|
-
"no-useless-escape": "error",
|
|
419
|
-
"no-with": "error",
|
|
420
|
-
"require-yield": "error",
|
|
421
|
-
"use-isnan": "error",
|
|
422
|
-
"valid-typeof": "error"
|
|
423
|
-
}),
|
|
424
|
-
});
|
|
425
|
-
return eslintRecommended;
|
|
426
|
-
}
|
|
437
|
+
// List to ignore keys.
|
|
438
|
+
const KEY_BLACKLIST = new Set([
|
|
439
|
+
"parent",
|
|
440
|
+
"leadingComments",
|
|
441
|
+
"trailingComments"
|
|
442
|
+
]);
|
|
427
443
|
|
|
428
|
-
/**
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
444
|
+
/**
|
|
445
|
+
* Check whether a given key should be used or not.
|
|
446
|
+
* @param {string} key The key to check.
|
|
447
|
+
* @returns {boolean} `true` if the key should be used.
|
|
448
|
+
*/
|
|
449
|
+
function filterKey(key) {
|
|
450
|
+
return !KEY_BLACKLIST.has(key) && key[0] !== "_";
|
|
451
|
+
}
|
|
432
452
|
|
|
433
|
-
var src$1;
|
|
434
|
-
var hasRequiredSrc$1;
|
|
435
453
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
454
|
+
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
|
|
455
|
+
TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
|
|
456
|
+
*/
|
|
457
|
+
/**
|
|
458
|
+
* Get visitor keys of a given node.
|
|
459
|
+
* @param {Object} node The AST node to get keys.
|
|
460
|
+
* @returns {readonly string[]} Visitor keys of the node.
|
|
461
|
+
*/
|
|
462
|
+
function getKeys(node) {
|
|
463
|
+
return Object.keys(node).filter(filterKey);
|
|
464
|
+
}
|
|
465
|
+
/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */
|
|
439
466
|
|
|
440
|
-
|
|
467
|
+
/**
|
|
468
|
+
* Make the union set with `KEYS` and given keys.
|
|
469
|
+
* @param {VisitorKeys} additionalKeys The additional keys.
|
|
470
|
+
* @returns {VisitorKeys} The union set.
|
|
471
|
+
*/
|
|
472
|
+
function unionWith(additionalKeys) {
|
|
473
|
+
const retv = /** @type {{ [type: string]: ReadonlyArray<string> }} */
|
|
474
|
+
(Object.assign({}, KEYS));
|
|
441
475
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
476
|
+
for (const type of Object.keys(additionalKeys)) {
|
|
477
|
+
if (Object.hasOwn(retv, type)) {
|
|
478
|
+
const keys = new Set(additionalKeys[type]);
|
|
445
479
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
version,
|
|
450
|
-
},
|
|
451
|
-
configs: {
|
|
452
|
-
all: requireEslintAll(),
|
|
453
|
-
recommended: requireEslintRecommended(),
|
|
454
|
-
},
|
|
455
|
-
};
|
|
456
|
-
return src$1;
|
|
457
|
-
}
|
|
480
|
+
for (const key of retv[type]) {
|
|
481
|
+
keys.add(key);
|
|
482
|
+
}
|
|
458
483
|
|
|
459
|
-
|
|
460
|
-
|
|
484
|
+
retv[type] = Object.freeze(Array.from(keys));
|
|
485
|
+
} else {
|
|
486
|
+
retv[type] = Object.freeze(Array.from(additionalKeys[type]));
|
|
487
|
+
}
|
|
488
|
+
}
|
|
461
489
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
}
|
|
490
|
+
return Object.freeze(retv);
|
|
491
|
+
}
|
|
465
492
|
|
|
466
|
-
|
|
493
|
+
eslintVisitorKeys.KEYS = KEYS;
|
|
494
|
+
eslintVisitorKeys.getKeys = getKeys;
|
|
495
|
+
eslintVisitorKeys.unionWith = unionWith;
|
|
496
|
+
return eslintVisitorKeys;
|
|
497
|
+
}
|
|
467
498
|
|
|
468
499
|
var src = {exports: {}};
|
|
469
500
|
|
|
@@ -2562,24 +2593,24 @@ const _package = {
|
|
|
2562
2593
|
};
|
|
2563
2594
|
|
|
2564
2595
|
const _package$1 = {
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2596
|
+
__proto__: null,
|
|
2597
|
+
babel: babel,
|
|
2598
|
+
default: _package,
|
|
2599
|
+
dependencies: dependencies,
|
|
2600
|
+
description: description,
|
|
2601
|
+
devDependencies: devDependencies,
|
|
2602
|
+
engines: engines,
|
|
2603
|
+
homepage: homepage,
|
|
2604
|
+
license: license,
|
|
2605
|
+
main: main,
|
|
2606
|
+
maintainers: maintainers,
|
|
2607
|
+
name: name,
|
|
2608
|
+
repository: repository,
|
|
2609
|
+
scripts: scripts,
|
|
2610
|
+
version: version
|
|
2580
2611
|
};
|
|
2581
2612
|
|
|
2582
|
-
const require$$1 = /*@__PURE__*/
|
|
2613
|
+
const require$$1 = /*@__PURE__*/getAugmentedNamespace(_package$1);
|
|
2583
2614
|
|
|
2584
2615
|
/*
|
|
2585
2616
|
Copyright (C) 2014 Yusuke Suzuki <utatane.tea@gmail.com>
|
|
@@ -14818,7 +14849,7 @@ function requireEspree () {
|
|
|
14818
14849
|
|
|
14819
14850
|
var acorn = requireAcorn();
|
|
14820
14851
|
var jsx = requireAcornJsx();
|
|
14821
|
-
var visitorKeys =
|
|
14852
|
+
var visitorKeys = requireEslintVisitorKeys();
|
|
14822
14853
|
|
|
14823
14854
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14824
14855
|
|
|
@@ -15768,7 +15799,7 @@ function requireVueEslintParser () {
|
|
|
15768
15799
|
Object.defineProperty(vueEslintParser, '__esModule', { value: true });
|
|
15769
15800
|
|
|
15770
15801
|
var path = require$$0__default$1;
|
|
15771
|
-
var Evk =
|
|
15802
|
+
var Evk = requireEslintVisitorKeys();
|
|
15772
15803
|
var assert = require$$2__default;
|
|
15773
15804
|
var debugFactory = requireSrc();
|
|
15774
15805
|
var escope = requireEslintScope();
|
|
@@ -15930,7 +15961,7 @@ function requireVueEslintParser () {
|
|
|
15930
15961
|
traverse(node, null, visitor);
|
|
15931
15962
|
}
|
|
15932
15963
|
|
|
15933
|
-
var index
|
|
15964
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
15934
15965
|
__proto__: null,
|
|
15935
15966
|
ParseError: ParseError,
|
|
15936
15967
|
NS: NS,
|
|
@@ -20795,7 +20826,7 @@ function requireVueEslintParser () {
|
|
|
20795
20826
|
return sourceCode;
|
|
20796
20827
|
}
|
|
20797
20828
|
const scopeManager = getScopeManager();
|
|
20798
|
-
const originalSourceCode = new (require$$
|
|
20829
|
+
const originalSourceCode = new (require$$10__default.SourceCode)({
|
|
20799
20830
|
text,
|
|
20800
20831
|
ast: parsedResult.ast,
|
|
20801
20832
|
parserServices: {
|
|
@@ -22396,7 +22427,7 @@ function requireVueEslintParser () {
|
|
|
22396
22427
|
version: "10.2.0",
|
|
22397
22428
|
};
|
|
22398
22429
|
|
|
22399
|
-
vueEslintParser.AST = index
|
|
22430
|
+
vueEslintParser.AST = index;
|
|
22400
22431
|
vueEslintParser.meta = meta;
|
|
22401
22432
|
vueEslintParser.parse = parse;
|
|
22402
22433
|
vueEslintParser.parseForESLint = parseForESLint;
|
|
@@ -22405,7 +22436,7 @@ function requireVueEslintParser () {
|
|
|
22405
22436
|
}
|
|
22406
22437
|
|
|
22407
22438
|
var vueEslintParserExports = requireVueEslintParser();
|
|
22408
|
-
const parserVue = /*@__PURE__*/
|
|
22439
|
+
const parserVue = /*@__PURE__*/getDefaultExportFromCjs(vueEslintParserExports);
|
|
22409
22440
|
|
|
22410
22441
|
const config = [
|
|
22411
22442
|
// Global ignores
|
|
@@ -22425,7 +22456,7 @@ const config = [
|
|
|
22425
22456
|
]
|
|
22426
22457
|
},
|
|
22427
22458
|
// JavaScript & TypeScript
|
|
22428
|
-
|
|
22459
|
+
pluginJs__default.configs.recommended,
|
|
22429
22460
|
...tseslint__default.configs.strict,
|
|
22430
22461
|
...tseslint__default.configs.stylistic,
|
|
22431
22462
|
{
|
|
@@ -22449,15 +22480,41 @@ const config = [
|
|
|
22449
22480
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
22450
22481
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
22451
22482
|
"array-bracket-newline": ["error", { minItems: 3, multiline: true }],
|
|
22452
|
-
"id-length": ["error", { exceptions: ["_", "t", "x", "y"], min: 2 }],
|
|
22483
|
+
"id-length": ["error", { exceptions: ["_", "n", "t", "x", "y"], min: 2 }],
|
|
22453
22484
|
"no-undef": "off"
|
|
22454
22485
|
}
|
|
22455
22486
|
},
|
|
22487
|
+
// Stylistic
|
|
22488
|
+
stylistic__default.configs.customize({
|
|
22489
|
+
arrowParens: true,
|
|
22490
|
+
blockSpacing: true,
|
|
22491
|
+
braceStyle: "stroustrup",
|
|
22492
|
+
commaDangle: "always-multiline",
|
|
22493
|
+
indent: 2,
|
|
22494
|
+
quoteProps: "consistent-as-needed",
|
|
22495
|
+
quotes: "single",
|
|
22496
|
+
semi: false,
|
|
22497
|
+
severity: "error"
|
|
22498
|
+
}),
|
|
22456
22499
|
// Plugins
|
|
22457
22500
|
...eslintPluginPnpm.configs.json,
|
|
22458
22501
|
...eslintPluginPnpm.configs.yaml,
|
|
22459
22502
|
unocss__default,
|
|
22460
22503
|
turbo__default.configs["flat/recommended"],
|
|
22504
|
+
// Node
|
|
22505
|
+
nodeEslint__default.configs["flat/recommended"],
|
|
22506
|
+
{
|
|
22507
|
+
files: ["**/*.{js,mjs,ts,mts,vue}"],
|
|
22508
|
+
rules: {
|
|
22509
|
+
"n/no-missing-import": "off",
|
|
22510
|
+
"n/no-sync": "error",
|
|
22511
|
+
"n/no-unsupported-features/es-syntax": ["error", { ignores: ["modules"] }],
|
|
22512
|
+
"n/prefer-global/process": ["error", "always"],
|
|
22513
|
+
"n/prefer-node-protocol": "error",
|
|
22514
|
+
"n/prefer-promises/fs": "error"
|
|
22515
|
+
},
|
|
22516
|
+
settings: { n: { version: "22.21.1" } }
|
|
22517
|
+
},
|
|
22461
22518
|
// Package JSON
|
|
22462
22519
|
packageJson__default.configs["recommended-publishable"],
|
|
22463
22520
|
packageJson__default.configs.stylistic,
|
|
@@ -22481,7 +22538,7 @@ const config = [
|
|
|
22481
22538
|
// SaaS Makers
|
|
22482
22539
|
{
|
|
22483
22540
|
plugins: {
|
|
22484
|
-
saasmakers: index.
|
|
22541
|
+
saasmakers: index.default
|
|
22485
22542
|
},
|
|
22486
22543
|
rules: {
|
|
22487
22544
|
"saasmakers/ts-multiline-ternary": "error",
|
|
@@ -22500,6 +22557,38 @@ const config = [
|
|
|
22500
22557
|
"saasmakers/vue-template-remove-comments": "error",
|
|
22501
22558
|
"saasmakers/vue-template-remove-true-attributes": "error"
|
|
22502
22559
|
}
|
|
22560
|
+
},
|
|
22561
|
+
// Unicorn
|
|
22562
|
+
unicorn__default.configs["recommended"],
|
|
22563
|
+
{
|
|
22564
|
+
rules: {
|
|
22565
|
+
"unicorn/filename-case": "off",
|
|
22566
|
+
"unicorn/prevent-abbreviations": "off"
|
|
22567
|
+
}
|
|
22568
|
+
},
|
|
22569
|
+
// Vue & Vue Accessibility
|
|
22570
|
+
...pluginVue__default.configs["flat/recommended"],
|
|
22571
|
+
...vueAccessibility__default.configs["flat/recommended"],
|
|
22572
|
+
{
|
|
22573
|
+
files: ["**/*.vue"],
|
|
22574
|
+
plugins: {
|
|
22575
|
+
"vue": pluginVue__default,
|
|
22576
|
+
"vuejs-accessibility": vueAccessibility__default
|
|
22577
|
+
},
|
|
22578
|
+
processor: eslintMergeProcessors.mergeProcessors([
|
|
22579
|
+
pluginVue__default.processors[".vue"],
|
|
22580
|
+
processorVueBlocks__default({
|
|
22581
|
+
blocks: {
|
|
22582
|
+
customBlocks: true,
|
|
22583
|
+
script: false,
|
|
22584
|
+
styles: true,
|
|
22585
|
+
template: false
|
|
22586
|
+
}
|
|
22587
|
+
})
|
|
22588
|
+
]),
|
|
22589
|
+
rules: {
|
|
22590
|
+
"n/no-unsupported-features/node-builtins": "off"
|
|
22591
|
+
}
|
|
22503
22592
|
}
|
|
22504
22593
|
];
|
|
22505
22594
|
|