@saasmakers/eslint 0.1.18 → 0.1.19
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 +482 -438
- package/dist/eslint.config.mjs +470 -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 +6 -2
- package/dist/shared/eslint.NxlGRwZa.cjs +0 -15282
- package/dist/shared/eslint.poN7Ld_I.mjs +0 -15272
package/dist/eslint.config.mjs
CHANGED
|
@@ -1,448 +1,467 @@
|
|
|
1
|
-
import
|
|
1
|
+
import pluginJs from '@eslint/js';
|
|
2
2
|
import unocss from '@unocss/eslint-config/flat';
|
|
3
|
+
import nodeEslint from 'eslint-plugin-n';
|
|
3
4
|
import packageJson from 'eslint-plugin-package-json';
|
|
4
5
|
import perfectionist from 'eslint-plugin-perfectionist';
|
|
5
6
|
import { configs } from 'eslint-plugin-pnpm';
|
|
6
7
|
import turbo from 'eslint-plugin-turbo';
|
|
8
|
+
import unicorn from 'eslint-plugin-unicorn';
|
|
7
9
|
import tseslint from 'typescript-eslint';
|
|
8
|
-
import require$$0$
|
|
10
|
+
import require$$0$1 from 'path';
|
|
9
11
|
import require$$2 from 'assert';
|
|
10
12
|
import require$$1$1 from 'tty';
|
|
11
13
|
import require$$1$2 from 'util';
|
|
12
|
-
import require$$0
|
|
14
|
+
import require$$0 from 'os';
|
|
13
15
|
import require$$6 from 'module';
|
|
14
16
|
import require$$8 from 'events';
|
|
15
17
|
import require$$9 from 'esquery';
|
|
16
|
-
import require$$
|
|
17
|
-
import '
|
|
18
|
-
|
|
19
|
-
const name$1 = "@eslint/js";
|
|
20
|
-
const version$1 = "9.39.2";
|
|
21
|
-
const description$1 = "ESLint JavaScript language implementation";
|
|
22
|
-
const funding = "https://eslint.org/donate";
|
|
23
|
-
const main$1 = "./src/index.js";
|
|
24
|
-
const types = "./types/index.d.ts";
|
|
25
|
-
const scripts$1 = {
|
|
26
|
-
"test:types": "tsc -p tests/types/tsconfig.json"
|
|
27
|
-
};
|
|
28
|
-
const files = [
|
|
29
|
-
"LICENSE",
|
|
30
|
-
"README.md",
|
|
31
|
-
"src",
|
|
32
|
-
"types"
|
|
33
|
-
];
|
|
34
|
-
const publishConfig = {
|
|
35
|
-
access: "public"
|
|
36
|
-
};
|
|
37
|
-
const repository$1 = {
|
|
38
|
-
type: "git",
|
|
39
|
-
url: "https://github.com/eslint/eslint.git",
|
|
40
|
-
directory: "packages/js"
|
|
41
|
-
};
|
|
42
|
-
const homepage$1 = "https://eslint.org";
|
|
43
|
-
const bugs = "https://github.com/eslint/eslint/issues/";
|
|
44
|
-
const keywords = [
|
|
45
|
-
"javascript",
|
|
46
|
-
"eslint-plugin",
|
|
47
|
-
"eslint"
|
|
48
|
-
];
|
|
49
|
-
const license$1 = "MIT";
|
|
50
|
-
const engines$1 = {
|
|
51
|
-
node: "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
52
|
-
};
|
|
53
|
-
const _package$2 = {
|
|
54
|
-
name: name$1,
|
|
55
|
-
version: version$1,
|
|
56
|
-
description: description$1,
|
|
57
|
-
funding: funding,
|
|
58
|
-
main: main$1,
|
|
59
|
-
types: types,
|
|
60
|
-
scripts: scripts$1,
|
|
61
|
-
files: files,
|
|
62
|
-
publishConfig: publishConfig,
|
|
63
|
-
repository: repository$1,
|
|
64
|
-
homepage: homepage$1,
|
|
65
|
-
bugs: bugs,
|
|
66
|
-
keywords: keywords,
|
|
67
|
-
license: license$1,
|
|
68
|
-
engines: engines$1
|
|
69
|
-
};
|
|
18
|
+
import require$$10 from 'eslint';
|
|
19
|
+
import saasmakers from './index.mjs';
|
|
20
|
+
import '@typescript-eslint/utils';
|
|
70
21
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
default: _package$2,
|
|
75
|
-
description: description$1,
|
|
76
|
-
engines: engines$1,
|
|
77
|
-
files: files,
|
|
78
|
-
funding: funding,
|
|
79
|
-
homepage: homepage$1,
|
|
80
|
-
keywords: keywords,
|
|
81
|
-
license: license$1,
|
|
82
|
-
main: main$1,
|
|
83
|
-
name: name$1,
|
|
84
|
-
publishConfig: publishConfig,
|
|
85
|
-
repository: repository$1,
|
|
86
|
-
scripts: scripts$1,
|
|
87
|
-
types: types,
|
|
88
|
-
version: version$1
|
|
89
|
-
};
|
|
22
|
+
function getDefaultExportFromCjs (x) {
|
|
23
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
24
|
+
}
|
|
90
25
|
|
|
91
|
-
|
|
26
|
+
function getAugmentedNamespace(n) {
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
28
|
+
var f = n.default;
|
|
29
|
+
if (typeof f == "function") {
|
|
30
|
+
var a = function a () {
|
|
31
|
+
var isInstance = false;
|
|
32
|
+
try {
|
|
33
|
+
isInstance = this instanceof a;
|
|
34
|
+
} catch {}
|
|
35
|
+
if (isInstance) {
|
|
36
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
37
|
+
}
|
|
38
|
+
return f.apply(this, arguments);
|
|
39
|
+
};
|
|
40
|
+
a.prototype = f.prototype;
|
|
41
|
+
} else a = {};
|
|
42
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
43
|
+
Object.keys(n).forEach(function (k) {
|
|
44
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
45
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () {
|
|
48
|
+
return n[k];
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
return a;
|
|
53
|
+
}
|
|
92
54
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
*/
|
|
55
|
+
function commonjsRequire(path) {
|
|
56
|
+
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.');
|
|
57
|
+
}
|
|
97
58
|
|
|
98
|
-
var
|
|
99
|
-
var hasRequiredEslintAll;
|
|
59
|
+
var vueEslintParser = {};
|
|
100
60
|
|
|
101
|
-
|
|
102
|
-
if (hasRequiredEslintAll) return eslintAll;
|
|
103
|
-
hasRequiredEslintAll = 1;
|
|
61
|
+
var eslintVisitorKeys = {};
|
|
104
62
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
63
|
+
var hasRequiredEslintVisitorKeys;
|
|
64
|
+
|
|
65
|
+
function requireEslintVisitorKeys () {
|
|
66
|
+
if (hasRequiredEslintVisitorKeys) return eslintVisitorKeys;
|
|
67
|
+
hasRequiredEslintVisitorKeys = 1;
|
|
68
|
+
|
|
69
|
+
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
|
|
70
|
+
TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
|
|
111
74
|
*/
|
|
75
|
+
/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly string[]`. TODO: check why */
|
|
112
76
|
|
|
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
|
-
|
|
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
|
-
|
|
77
|
+
/**
|
|
78
|
+
* @type {VisitorKeys}
|
|
79
|
+
*/
|
|
80
|
+
const KEYS = {
|
|
81
|
+
ArrayExpression: [
|
|
82
|
+
"elements"
|
|
83
|
+
],
|
|
84
|
+
ArrayPattern: [
|
|
85
|
+
"elements"
|
|
86
|
+
],
|
|
87
|
+
ArrowFunctionExpression: [
|
|
88
|
+
"params",
|
|
89
|
+
"body"
|
|
90
|
+
],
|
|
91
|
+
AssignmentExpression: [
|
|
92
|
+
"left",
|
|
93
|
+
"right"
|
|
94
|
+
],
|
|
95
|
+
AssignmentPattern: [
|
|
96
|
+
"left",
|
|
97
|
+
"right"
|
|
98
|
+
],
|
|
99
|
+
AwaitExpression: [
|
|
100
|
+
"argument"
|
|
101
|
+
],
|
|
102
|
+
BinaryExpression: [
|
|
103
|
+
"left",
|
|
104
|
+
"right"
|
|
105
|
+
],
|
|
106
|
+
BlockStatement: [
|
|
107
|
+
"body"
|
|
108
|
+
],
|
|
109
|
+
BreakStatement: [
|
|
110
|
+
"label"
|
|
111
|
+
],
|
|
112
|
+
CallExpression: [
|
|
113
|
+
"callee",
|
|
114
|
+
"arguments"
|
|
115
|
+
],
|
|
116
|
+
CatchClause: [
|
|
117
|
+
"param",
|
|
118
|
+
"body"
|
|
119
|
+
],
|
|
120
|
+
ChainExpression: [
|
|
121
|
+
"expression"
|
|
122
|
+
],
|
|
123
|
+
ClassBody: [
|
|
124
|
+
"body"
|
|
125
|
+
],
|
|
126
|
+
ClassDeclaration: [
|
|
127
|
+
"id",
|
|
128
|
+
"superClass",
|
|
129
|
+
"body"
|
|
130
|
+
],
|
|
131
|
+
ClassExpression: [
|
|
132
|
+
"id",
|
|
133
|
+
"superClass",
|
|
134
|
+
"body"
|
|
135
|
+
],
|
|
136
|
+
ConditionalExpression: [
|
|
137
|
+
"test",
|
|
138
|
+
"consequent",
|
|
139
|
+
"alternate"
|
|
140
|
+
],
|
|
141
|
+
ContinueStatement: [
|
|
142
|
+
"label"
|
|
143
|
+
],
|
|
144
|
+
DebuggerStatement: [],
|
|
145
|
+
DoWhileStatement: [
|
|
146
|
+
"body",
|
|
147
|
+
"test"
|
|
148
|
+
],
|
|
149
|
+
EmptyStatement: [],
|
|
150
|
+
ExperimentalRestProperty: [
|
|
151
|
+
"argument"
|
|
152
|
+
],
|
|
153
|
+
ExperimentalSpreadProperty: [
|
|
154
|
+
"argument"
|
|
155
|
+
],
|
|
156
|
+
ExportAllDeclaration: [
|
|
157
|
+
"exported",
|
|
158
|
+
"source",
|
|
159
|
+
"attributes"
|
|
160
|
+
],
|
|
161
|
+
ExportDefaultDeclaration: [
|
|
162
|
+
"declaration"
|
|
163
|
+
],
|
|
164
|
+
ExportNamedDeclaration: [
|
|
165
|
+
"declaration",
|
|
166
|
+
"specifiers",
|
|
167
|
+
"source",
|
|
168
|
+
"attributes"
|
|
169
|
+
],
|
|
170
|
+
ExportSpecifier: [
|
|
171
|
+
"local",
|
|
172
|
+
"exported"
|
|
173
|
+
],
|
|
174
|
+
ExpressionStatement: [
|
|
175
|
+
"expression"
|
|
176
|
+
],
|
|
177
|
+
ForInStatement: [
|
|
178
|
+
"left",
|
|
179
|
+
"right",
|
|
180
|
+
"body"
|
|
181
|
+
],
|
|
182
|
+
ForOfStatement: [
|
|
183
|
+
"left",
|
|
184
|
+
"right",
|
|
185
|
+
"body"
|
|
186
|
+
],
|
|
187
|
+
ForStatement: [
|
|
188
|
+
"init",
|
|
189
|
+
"test",
|
|
190
|
+
"update",
|
|
191
|
+
"body"
|
|
192
|
+
],
|
|
193
|
+
FunctionDeclaration: [
|
|
194
|
+
"id",
|
|
195
|
+
"params",
|
|
196
|
+
"body"
|
|
197
|
+
],
|
|
198
|
+
FunctionExpression: [
|
|
199
|
+
"id",
|
|
200
|
+
"params",
|
|
201
|
+
"body"
|
|
202
|
+
],
|
|
203
|
+
Identifier: [],
|
|
204
|
+
IfStatement: [
|
|
205
|
+
"test",
|
|
206
|
+
"consequent",
|
|
207
|
+
"alternate"
|
|
208
|
+
],
|
|
209
|
+
ImportAttribute: [
|
|
210
|
+
"key",
|
|
211
|
+
"value"
|
|
212
|
+
],
|
|
213
|
+
ImportDeclaration: [
|
|
214
|
+
"specifiers",
|
|
215
|
+
"source",
|
|
216
|
+
"attributes"
|
|
217
|
+
],
|
|
218
|
+
ImportDefaultSpecifier: [
|
|
219
|
+
"local"
|
|
220
|
+
],
|
|
221
|
+
ImportExpression: [
|
|
222
|
+
"source",
|
|
223
|
+
"options"
|
|
224
|
+
],
|
|
225
|
+
ImportNamespaceSpecifier: [
|
|
226
|
+
"local"
|
|
227
|
+
],
|
|
228
|
+
ImportSpecifier: [
|
|
229
|
+
"imported",
|
|
230
|
+
"local"
|
|
231
|
+
],
|
|
232
|
+
JSXAttribute: [
|
|
233
|
+
"name",
|
|
234
|
+
"value"
|
|
235
|
+
],
|
|
236
|
+
JSXClosingElement: [
|
|
237
|
+
"name"
|
|
238
|
+
],
|
|
239
|
+
JSXClosingFragment: [],
|
|
240
|
+
JSXElement: [
|
|
241
|
+
"openingElement",
|
|
242
|
+
"children",
|
|
243
|
+
"closingElement"
|
|
244
|
+
],
|
|
245
|
+
JSXEmptyExpression: [],
|
|
246
|
+
JSXExpressionContainer: [
|
|
247
|
+
"expression"
|
|
248
|
+
],
|
|
249
|
+
JSXFragment: [
|
|
250
|
+
"openingFragment",
|
|
251
|
+
"children",
|
|
252
|
+
"closingFragment"
|
|
253
|
+
],
|
|
254
|
+
JSXIdentifier: [],
|
|
255
|
+
JSXMemberExpression: [
|
|
256
|
+
"object",
|
|
257
|
+
"property"
|
|
258
|
+
],
|
|
259
|
+
JSXNamespacedName: [
|
|
260
|
+
"namespace",
|
|
261
|
+
"name"
|
|
262
|
+
],
|
|
263
|
+
JSXOpeningElement: [
|
|
264
|
+
"name",
|
|
265
|
+
"attributes"
|
|
266
|
+
],
|
|
267
|
+
JSXOpeningFragment: [],
|
|
268
|
+
JSXSpreadAttribute: [
|
|
269
|
+
"argument"
|
|
270
|
+
],
|
|
271
|
+
JSXSpreadChild: [
|
|
272
|
+
"expression"
|
|
273
|
+
],
|
|
274
|
+
JSXText: [],
|
|
275
|
+
LabeledStatement: [
|
|
276
|
+
"label",
|
|
277
|
+
"body"
|
|
278
|
+
],
|
|
279
|
+
Literal: [],
|
|
280
|
+
LogicalExpression: [
|
|
281
|
+
"left",
|
|
282
|
+
"right"
|
|
283
|
+
],
|
|
284
|
+
MemberExpression: [
|
|
285
|
+
"object",
|
|
286
|
+
"property"
|
|
287
|
+
],
|
|
288
|
+
MetaProperty: [
|
|
289
|
+
"meta",
|
|
290
|
+
"property"
|
|
291
|
+
],
|
|
292
|
+
MethodDefinition: [
|
|
293
|
+
"key",
|
|
294
|
+
"value"
|
|
295
|
+
],
|
|
296
|
+
NewExpression: [
|
|
297
|
+
"callee",
|
|
298
|
+
"arguments"
|
|
299
|
+
],
|
|
300
|
+
ObjectExpression: [
|
|
301
|
+
"properties"
|
|
302
|
+
],
|
|
303
|
+
ObjectPattern: [
|
|
304
|
+
"properties"
|
|
305
|
+
],
|
|
306
|
+
PrivateIdentifier: [],
|
|
307
|
+
Program: [
|
|
308
|
+
"body"
|
|
309
|
+
],
|
|
310
|
+
Property: [
|
|
311
|
+
"key",
|
|
312
|
+
"value"
|
|
313
|
+
],
|
|
314
|
+
PropertyDefinition: [
|
|
315
|
+
"key",
|
|
316
|
+
"value"
|
|
317
|
+
],
|
|
318
|
+
RestElement: [
|
|
319
|
+
"argument"
|
|
320
|
+
],
|
|
321
|
+
ReturnStatement: [
|
|
322
|
+
"argument"
|
|
323
|
+
],
|
|
324
|
+
SequenceExpression: [
|
|
325
|
+
"expressions"
|
|
326
|
+
],
|
|
327
|
+
SpreadElement: [
|
|
328
|
+
"argument"
|
|
329
|
+
],
|
|
330
|
+
StaticBlock: [
|
|
331
|
+
"body"
|
|
332
|
+
],
|
|
333
|
+
Super: [],
|
|
334
|
+
SwitchCase: [
|
|
335
|
+
"test",
|
|
336
|
+
"consequent"
|
|
337
|
+
],
|
|
338
|
+
SwitchStatement: [
|
|
339
|
+
"discriminant",
|
|
340
|
+
"cases"
|
|
341
|
+
],
|
|
342
|
+
TaggedTemplateExpression: [
|
|
343
|
+
"tag",
|
|
344
|
+
"quasi"
|
|
345
|
+
],
|
|
346
|
+
TemplateElement: [],
|
|
347
|
+
TemplateLiteral: [
|
|
348
|
+
"quasis",
|
|
349
|
+
"expressions"
|
|
350
|
+
],
|
|
351
|
+
ThisExpression: [],
|
|
352
|
+
ThrowStatement: [
|
|
353
|
+
"argument"
|
|
354
|
+
],
|
|
355
|
+
TryStatement: [
|
|
356
|
+
"block",
|
|
357
|
+
"handler",
|
|
358
|
+
"finalizer"
|
|
359
|
+
],
|
|
360
|
+
UnaryExpression: [
|
|
361
|
+
"argument"
|
|
362
|
+
],
|
|
363
|
+
UpdateExpression: [
|
|
364
|
+
"argument"
|
|
365
|
+
],
|
|
366
|
+
VariableDeclaration: [
|
|
367
|
+
"declarations"
|
|
368
|
+
],
|
|
369
|
+
VariableDeclarator: [
|
|
370
|
+
"id",
|
|
371
|
+
"init"
|
|
372
|
+
],
|
|
373
|
+
WhileStatement: [
|
|
374
|
+
"test",
|
|
375
|
+
"body"
|
|
376
|
+
],
|
|
377
|
+
WithStatement: [
|
|
378
|
+
"object",
|
|
379
|
+
"body"
|
|
380
|
+
],
|
|
381
|
+
YieldExpression: [
|
|
382
|
+
"argument"
|
|
383
|
+
]
|
|
384
|
+
};
|
|
318
385
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
* script. Do not edit manually.
|
|
322
|
-
*/
|
|
386
|
+
// Types.
|
|
387
|
+
const NODE_TYPES = Object.keys(KEYS);
|
|
323
388
|
|
|
324
|
-
|
|
325
|
-
|
|
389
|
+
// Freeze the keys.
|
|
390
|
+
for (const type of NODE_TYPES) {
|
|
391
|
+
Object.freeze(KEYS[type]);
|
|
392
|
+
}
|
|
393
|
+
Object.freeze(KEYS);
|
|
326
394
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
395
|
+
/**
|
|
396
|
+
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
397
|
+
* See LICENSE file in root directory for full license.
|
|
398
|
+
*/
|
|
330
399
|
|
|
331
|
-
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
* We cannot add a "name" property to this object because it's still used in eslintrc
|
|
335
|
-
* which doesn't support the "name" property. If we add a "name" property, it will
|
|
336
|
-
* cause an error.
|
|
400
|
+
/**
|
|
401
|
+
* @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys
|
|
337
402
|
*/
|
|
338
403
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
"no-case-declarations": "error",
|
|
346
|
-
"no-class-assign": "error",
|
|
347
|
-
"no-compare-neg-zero": "error",
|
|
348
|
-
"no-cond-assign": "error",
|
|
349
|
-
"no-const-assign": "error",
|
|
350
|
-
"no-constant-binary-expression": "error",
|
|
351
|
-
"no-constant-condition": "error",
|
|
352
|
-
"no-control-regex": "error",
|
|
353
|
-
"no-debugger": "error",
|
|
354
|
-
"no-delete-var": "error",
|
|
355
|
-
"no-dupe-args": "error",
|
|
356
|
-
"no-dupe-class-members": "error",
|
|
357
|
-
"no-dupe-else-if": "error",
|
|
358
|
-
"no-dupe-keys": "error",
|
|
359
|
-
"no-duplicate-case": "error",
|
|
360
|
-
"no-empty": "error",
|
|
361
|
-
"no-empty-character-class": "error",
|
|
362
|
-
"no-empty-pattern": "error",
|
|
363
|
-
"no-empty-static-block": "error",
|
|
364
|
-
"no-ex-assign": "error",
|
|
365
|
-
"no-extra-boolean-cast": "error",
|
|
366
|
-
"no-fallthrough": "error",
|
|
367
|
-
"no-func-assign": "error",
|
|
368
|
-
"no-global-assign": "error",
|
|
369
|
-
"no-import-assign": "error",
|
|
370
|
-
"no-invalid-regexp": "error",
|
|
371
|
-
"no-irregular-whitespace": "error",
|
|
372
|
-
"no-loss-of-precision": "error",
|
|
373
|
-
"no-misleading-character-class": "error",
|
|
374
|
-
"no-new-native-nonconstructor": "error",
|
|
375
|
-
"no-nonoctal-decimal-escape": "error",
|
|
376
|
-
"no-obj-calls": "error",
|
|
377
|
-
"no-octal": "error",
|
|
378
|
-
"no-prototype-builtins": "error",
|
|
379
|
-
"no-redeclare": "error",
|
|
380
|
-
"no-regex-spaces": "error",
|
|
381
|
-
"no-self-assign": "error",
|
|
382
|
-
"no-setter-return": "error",
|
|
383
|
-
"no-shadow-restricted-names": "error",
|
|
384
|
-
"no-sparse-arrays": "error",
|
|
385
|
-
"no-this-before-super": "error",
|
|
386
|
-
"no-undef": "error",
|
|
387
|
-
"no-unexpected-multiline": "error",
|
|
388
|
-
"no-unreachable": "error",
|
|
389
|
-
"no-unsafe-finally": "error",
|
|
390
|
-
"no-unsafe-negation": "error",
|
|
391
|
-
"no-unsafe-optional-chaining": "error",
|
|
392
|
-
"no-unused-labels": "error",
|
|
393
|
-
"no-unused-private-class-members": "error",
|
|
394
|
-
"no-unused-vars": "error",
|
|
395
|
-
"no-useless-backreference": "error",
|
|
396
|
-
"no-useless-catch": "error",
|
|
397
|
-
"no-useless-escape": "error",
|
|
398
|
-
"no-with": "error",
|
|
399
|
-
"require-yield": "error",
|
|
400
|
-
"use-isnan": "error",
|
|
401
|
-
"valid-typeof": "error"
|
|
402
|
-
}),
|
|
403
|
-
});
|
|
404
|
-
return eslintRecommended;
|
|
405
|
-
}
|
|
404
|
+
// List to ignore keys.
|
|
405
|
+
const KEY_BLACKLIST = new Set([
|
|
406
|
+
"parent",
|
|
407
|
+
"leadingComments",
|
|
408
|
+
"trailingComments"
|
|
409
|
+
]);
|
|
406
410
|
|
|
407
|
-
/**
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
+
/**
|
|
412
|
+
* Check whether a given key should be used or not.
|
|
413
|
+
* @param {string} key The key to check.
|
|
414
|
+
* @returns {boolean} `true` if the key should be used.
|
|
415
|
+
*/
|
|
416
|
+
function filterKey(key) {
|
|
417
|
+
return !KEY_BLACKLIST.has(key) && key[0] !== "_";
|
|
418
|
+
}
|
|
411
419
|
|
|
412
|
-
var src$1;
|
|
413
|
-
var hasRequiredSrc$1;
|
|
414
420
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
421
|
+
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
|
|
422
|
+
TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
|
|
423
|
+
*/
|
|
424
|
+
/**
|
|
425
|
+
* Get visitor keys of a given node.
|
|
426
|
+
* @param {Object} node The AST node to get keys.
|
|
427
|
+
* @returns {readonly string[]} Visitor keys of the node.
|
|
428
|
+
*/
|
|
429
|
+
function getKeys(node) {
|
|
430
|
+
return Object.keys(node).filter(filterKey);
|
|
431
|
+
}
|
|
432
|
+
/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */
|
|
418
433
|
|
|
419
|
-
|
|
434
|
+
/**
|
|
435
|
+
* Make the union set with `KEYS` and given keys.
|
|
436
|
+
* @param {VisitorKeys} additionalKeys The additional keys.
|
|
437
|
+
* @returns {VisitorKeys} The union set.
|
|
438
|
+
*/
|
|
439
|
+
function unionWith(additionalKeys) {
|
|
440
|
+
const retv = /** @type {{ [type: string]: ReadonlyArray<string> }} */
|
|
441
|
+
(Object.assign({}, KEYS));
|
|
420
442
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
443
|
+
for (const type of Object.keys(additionalKeys)) {
|
|
444
|
+
if (Object.hasOwn(retv, type)) {
|
|
445
|
+
const keys = new Set(additionalKeys[type]);
|
|
424
446
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
version,
|
|
429
|
-
},
|
|
430
|
-
configs: {
|
|
431
|
-
all: requireEslintAll(),
|
|
432
|
-
recommended: requireEslintRecommended(),
|
|
433
|
-
},
|
|
434
|
-
};
|
|
435
|
-
return src$1;
|
|
436
|
-
}
|
|
447
|
+
for (const key of retv[type]) {
|
|
448
|
+
keys.add(key);
|
|
449
|
+
}
|
|
437
450
|
|
|
438
|
-
|
|
439
|
-
|
|
451
|
+
retv[type] = Object.freeze(Array.from(keys));
|
|
452
|
+
} else {
|
|
453
|
+
retv[type] = Object.freeze(Array.from(additionalKeys[type]));
|
|
454
|
+
}
|
|
455
|
+
}
|
|
440
456
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
457
|
+
return Object.freeze(retv);
|
|
458
|
+
}
|
|
444
459
|
|
|
445
|
-
|
|
460
|
+
eslintVisitorKeys.KEYS = KEYS;
|
|
461
|
+
eslintVisitorKeys.getKeys = getKeys;
|
|
462
|
+
eslintVisitorKeys.unionWith = unionWith;
|
|
463
|
+
return eslintVisitorKeys;
|
|
464
|
+
}
|
|
446
465
|
|
|
447
466
|
var src = {exports: {}};
|
|
448
467
|
|
|
@@ -1225,7 +1244,7 @@ var hasRequiredSupportsColor;
|
|
|
1225
1244
|
function requireSupportsColor () {
|
|
1226
1245
|
if (hasRequiredSupportsColor) return supportsColor_1;
|
|
1227
1246
|
hasRequiredSupportsColor = 1;
|
|
1228
|
-
const os = require$$0
|
|
1247
|
+
const os = require$$0;
|
|
1229
1248
|
const tty = require$$1$1;
|
|
1230
1249
|
const hasFlag = requireHasFlag();
|
|
1231
1250
|
|
|
@@ -2541,21 +2560,21 @@ const _package = {
|
|
|
2541
2560
|
};
|
|
2542
2561
|
|
|
2543
2562
|
const _package$1 = {
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2563
|
+
__proto__: null,
|
|
2564
|
+
babel: babel,
|
|
2565
|
+
default: _package,
|
|
2566
|
+
dependencies: dependencies,
|
|
2567
|
+
description: description,
|
|
2568
|
+
devDependencies: devDependencies,
|
|
2569
|
+
engines: engines,
|
|
2570
|
+
homepage: homepage,
|
|
2571
|
+
license: license,
|
|
2572
|
+
main: main,
|
|
2573
|
+
maintainers: maintainers,
|
|
2574
|
+
name: name,
|
|
2575
|
+
repository: repository,
|
|
2576
|
+
scripts: scripts,
|
|
2577
|
+
version: version
|
|
2559
2578
|
};
|
|
2560
2579
|
|
|
2561
2580
|
const require$$1 = /*@__PURE__*/getAugmentedNamespace(_package$1);
|
|
@@ -15746,7 +15765,7 @@ function requireVueEslintParser () {
|
|
|
15746
15765
|
|
|
15747
15766
|
Object.defineProperty(vueEslintParser, '__esModule', { value: true });
|
|
15748
15767
|
|
|
15749
|
-
var path = require$$0$
|
|
15768
|
+
var path = require$$0$1;
|
|
15750
15769
|
var Evk = requireEslintVisitorKeys();
|
|
15751
15770
|
var assert = require$$2;
|
|
15752
15771
|
var debugFactory = requireSrc();
|
|
@@ -20774,7 +20793,7 @@ function requireVueEslintParser () {
|
|
|
20774
20793
|
return sourceCode;
|
|
20775
20794
|
}
|
|
20776
20795
|
const scopeManager = getScopeManager();
|
|
20777
|
-
const originalSourceCode = new (require$$
|
|
20796
|
+
const originalSourceCode = new (require$$10.SourceCode)({
|
|
20778
20797
|
text,
|
|
20779
20798
|
ast: parsedResult.ast,
|
|
20780
20799
|
parserServices: {
|
|
@@ -22428,7 +22447,7 @@ const config = [
|
|
|
22428
22447
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
22429
22448
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
22430
22449
|
"array-bracket-newline": ["error", { minItems: 3, multiline: true }],
|
|
22431
|
-
"id-length": ["error", { exceptions: ["_", "t", "x", "y"], min: 2 }],
|
|
22450
|
+
"id-length": ["error", { exceptions: ["_", "n", "t", "x", "y"], min: 2 }],
|
|
22432
22451
|
"no-undef": "off"
|
|
22433
22452
|
}
|
|
22434
22453
|
},
|
|
@@ -22437,6 +22456,20 @@ const config = [
|
|
|
22437
22456
|
...configs.yaml,
|
|
22438
22457
|
unocss,
|
|
22439
22458
|
turbo.configs["flat/recommended"],
|
|
22459
|
+
// Node
|
|
22460
|
+
nodeEslint.configs["flat/recommended"],
|
|
22461
|
+
{
|
|
22462
|
+
files: ["**/*.{js,mjs,ts,mts,vue}"],
|
|
22463
|
+
rules: {
|
|
22464
|
+
"n/no-missing-import": "off",
|
|
22465
|
+
"n/no-sync": "error",
|
|
22466
|
+
"n/no-unsupported-features/es-syntax": ["error", { ignores: ["modules"] }],
|
|
22467
|
+
"n/prefer-global/process": ["error", "always"],
|
|
22468
|
+
"n/prefer-node-protocol": "error",
|
|
22469
|
+
"n/prefer-promises/fs": "error"
|
|
22470
|
+
},
|
|
22471
|
+
settings: { n: { version: "22.21.1" } }
|
|
22472
|
+
},
|
|
22440
22473
|
// Package JSON
|
|
22441
22474
|
packageJson.configs["recommended-publishable"],
|
|
22442
22475
|
packageJson.configs.stylistic,
|
|
@@ -22479,6 +22512,14 @@ const config = [
|
|
|
22479
22512
|
"saasmakers/vue-template-remove-comments": "error",
|
|
22480
22513
|
"saasmakers/vue-template-remove-true-attributes": "error"
|
|
22481
22514
|
}
|
|
22515
|
+
},
|
|
22516
|
+
// Unicorn
|
|
22517
|
+
unicorn.configs["recommended"],
|
|
22518
|
+
{
|
|
22519
|
+
rules: {
|
|
22520
|
+
"unicorn/filename-case": "off",
|
|
22521
|
+
"unicorn/prevent-abbreviations": "off"
|
|
22522
|
+
}
|
|
22482
22523
|
}
|
|
22483
22524
|
];
|
|
22484
22525
|
|