@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.
@@ -2,468 +2,499 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./shared/eslint.NxlGRwZa.cjs');
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$2 = require('path');
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$1 = require('os');
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$$0$3 = require('eslint');
21
- require('eslint/use-at-your-own-risk');
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$2);
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$1);
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$$0__default$2 = /*#__PURE__*/_interopDefaultCompat(require$$0$3);
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
- const _package$3 = {
93
- __proto__: null,
94
- bugs: bugs,
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
- const require$$0 = /*@__PURE__*/index.getAugmentedNamespace(_package$3);
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
- * WARNING: This file is autogenerated using the tools/update-eslint-all.js
116
- * script. Do not edit manually.
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 eslintAll;
120
- var hasRequiredEslintAll;
92
+ var vueEslintParser = {};
121
93
 
122
- function requireEslintAll () {
123
- if (hasRequiredEslintAll) return eslintAll;
124
- hasRequiredEslintAll = 1;
94
+ var eslintVisitorKeys = {};
125
95
 
126
- /*
127
- * IMPORTANT!
128
- *
129
- * We cannot add a "name" property to this object because it's still used in eslintrc
130
- * which doesn't support the "name" property. If we add a "name" property, it will
131
- * cause an error.
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
- eslintAll = Object.freeze({
135
- rules: Object.freeze({
136
- "accessor-pairs": "error",
137
- "array-callback-return": "error",
138
- "arrow-body-style": "error",
139
- "block-scoped-var": "error",
140
- "camelcase": "error",
141
- "capitalized-comments": "error",
142
- "class-methods-use-this": "error",
143
- "complexity": "error",
144
- "consistent-return": "error",
145
- "consistent-this": "error",
146
- "constructor-super": "error",
147
- "curly": "error",
148
- "default-case": "error",
149
- "default-case-last": "error",
150
- "default-param-last": "error",
151
- "dot-notation": "error",
152
- "eqeqeq": "error",
153
- "for-direction": "error",
154
- "func-name-matching": "error",
155
- "func-names": "error",
156
- "func-style": "error",
157
- "getter-return": "error",
158
- "grouped-accessor-pairs": "error",
159
- "guard-for-in": "error",
160
- "id-denylist": "error",
161
- "id-length": "error",
162
- "id-match": "error",
163
- "init-declarations": "error",
164
- "logical-assignment-operators": "error",
165
- "max-classes-per-file": "error",
166
- "max-depth": "error",
167
- "max-lines": "error",
168
- "max-lines-per-function": "error",
169
- "max-nested-callbacks": "error",
170
- "max-params": "error",
171
- "max-statements": "error",
172
- "new-cap": "error",
173
- "no-alert": "error",
174
- "no-array-constructor": "error",
175
- "no-async-promise-executor": "error",
176
- "no-await-in-loop": "error",
177
- "no-bitwise": "error",
178
- "no-caller": "error",
179
- "no-case-declarations": "error",
180
- "no-class-assign": "error",
181
- "no-compare-neg-zero": "error",
182
- "no-cond-assign": "error",
183
- "no-console": "error",
184
- "no-const-assign": "error",
185
- "no-constant-binary-expression": "error",
186
- "no-constant-condition": "error",
187
- "no-constructor-return": "error",
188
- "no-continue": "error",
189
- "no-control-regex": "error",
190
- "no-debugger": "error",
191
- "no-delete-var": "error",
192
- "no-div-regex": "error",
193
- "no-dupe-args": "error",
194
- "no-dupe-class-members": "error",
195
- "no-dupe-else-if": "error",
196
- "no-dupe-keys": "error",
197
- "no-duplicate-case": "error",
198
- "no-duplicate-imports": "error",
199
- "no-else-return": "error",
200
- "no-empty": "error",
201
- "no-empty-character-class": "error",
202
- "no-empty-function": "error",
203
- "no-empty-pattern": "error",
204
- "no-empty-static-block": "error",
205
- "no-eq-null": "error",
206
- "no-eval": "error",
207
- "no-ex-assign": "error",
208
- "no-extend-native": "error",
209
- "no-extra-bind": "error",
210
- "no-extra-boolean-cast": "error",
211
- "no-extra-label": "error",
212
- "no-fallthrough": "error",
213
- "no-func-assign": "error",
214
- "no-global-assign": "error",
215
- "no-implicit-coercion": "error",
216
- "no-implicit-globals": "error",
217
- "no-implied-eval": "error",
218
- "no-import-assign": "error",
219
- "no-inline-comments": "error",
220
- "no-inner-declarations": "error",
221
- "no-invalid-regexp": "error",
222
- "no-invalid-this": "error",
223
- "no-irregular-whitespace": "error",
224
- "no-iterator": "error",
225
- "no-label-var": "error",
226
- "no-labels": "error",
227
- "no-lone-blocks": "error",
228
- "no-lonely-if": "error",
229
- "no-loop-func": "error",
230
- "no-loss-of-precision": "error",
231
- "no-magic-numbers": "error",
232
- "no-misleading-character-class": "error",
233
- "no-multi-assign": "error",
234
- "no-multi-str": "error",
235
- "no-negated-condition": "error",
236
- "no-nested-ternary": "error",
237
- "no-new": "error",
238
- "no-new-func": "error",
239
- "no-new-native-nonconstructor": "error",
240
- "no-new-wrappers": "error",
241
- "no-nonoctal-decimal-escape": "error",
242
- "no-obj-calls": "error",
243
- "no-object-constructor": "error",
244
- "no-octal": "error",
245
- "no-octal-escape": "error",
246
- "no-param-reassign": "error",
247
- "no-plusplus": "error",
248
- "no-promise-executor-return": "error",
249
- "no-proto": "error",
250
- "no-prototype-builtins": "error",
251
- "no-redeclare": "error",
252
- "no-regex-spaces": "error",
253
- "no-restricted-exports": "error",
254
- "no-restricted-globals": "error",
255
- "no-restricted-imports": "error",
256
- "no-restricted-properties": "error",
257
- "no-restricted-syntax": "error",
258
- "no-return-assign": "error",
259
- "no-script-url": "error",
260
- "no-self-assign": "error",
261
- "no-self-compare": "error",
262
- "no-sequences": "error",
263
- "no-setter-return": "error",
264
- "no-shadow": "error",
265
- "no-shadow-restricted-names": "error",
266
- "no-sparse-arrays": "error",
267
- "no-template-curly-in-string": "error",
268
- "no-ternary": "error",
269
- "no-this-before-super": "error",
270
- "no-throw-literal": "error",
271
- "no-unassigned-vars": "error",
272
- "no-undef": "error",
273
- "no-undef-init": "error",
274
- "no-undefined": "error",
275
- "no-underscore-dangle": "error",
276
- "no-unexpected-multiline": "error",
277
- "no-unmodified-loop-condition": "error",
278
- "no-unneeded-ternary": "error",
279
- "no-unreachable": "error",
280
- "no-unreachable-loop": "error",
281
- "no-unsafe-finally": "error",
282
- "no-unsafe-negation": "error",
283
- "no-unsafe-optional-chaining": "error",
284
- "no-unused-expressions": "error",
285
- "no-unused-labels": "error",
286
- "no-unused-private-class-members": "error",
287
- "no-unused-vars": "error",
288
- "no-use-before-define": "error",
289
- "no-useless-assignment": "error",
290
- "no-useless-backreference": "error",
291
- "no-useless-call": "error",
292
- "no-useless-catch": "error",
293
- "no-useless-computed-key": "error",
294
- "no-useless-concat": "error",
295
- "no-useless-constructor": "error",
296
- "no-useless-escape": "error",
297
- "no-useless-rename": "error",
298
- "no-useless-return": "error",
299
- "no-var": "error",
300
- "no-void": "error",
301
- "no-warning-comments": "error",
302
- "no-with": "error",
303
- "object-shorthand": "error",
304
- "one-var": "error",
305
- "operator-assignment": "error",
306
- "prefer-arrow-callback": "error",
307
- "prefer-const": "error",
308
- "prefer-destructuring": "error",
309
- "prefer-exponentiation-operator": "error",
310
- "prefer-named-capture-group": "error",
311
- "prefer-numeric-literals": "error",
312
- "prefer-object-has-own": "error",
313
- "prefer-object-spread": "error",
314
- "prefer-promise-reject-errors": "error",
315
- "prefer-regex-literals": "error",
316
- "prefer-rest-params": "error",
317
- "prefer-spread": "error",
318
- "prefer-template": "error",
319
- "preserve-caught-error": "error",
320
- "radix": "error",
321
- "require-atomic-updates": "error",
322
- "require-await": "error",
323
- "require-unicode-regexp": "error",
324
- "require-yield": "error",
325
- "sort-imports": "error",
326
- "sort-keys": "error",
327
- "sort-vars": "error",
328
- "strict": "error",
329
- "symbol-description": "error",
330
- "unicode-bom": "error",
331
- "use-isnan": "error",
332
- "valid-typeof": "error",
333
- "vars-on-top": "error",
334
- "yoda": "error"
335
- })
336
- });
337
- return eslintAll;
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
- * WARNING: This file is autogenerated using the tools/update-eslint-recommended.js
342
- * script. Do not edit manually.
343
- */
419
+ // Types.
420
+ const NODE_TYPES = Object.keys(KEYS);
344
421
 
345
- var eslintRecommended;
346
- var hasRequiredEslintRecommended;
422
+ // Freeze the keys.
423
+ for (const type of NODE_TYPES) {
424
+ Object.freeze(KEYS[type]);
425
+ }
426
+ Object.freeze(KEYS);
347
427
 
348
- function requireEslintRecommended () {
349
- if (hasRequiredEslintRecommended) return eslintRecommended;
350
- hasRequiredEslintRecommended = 1;
428
+ /**
429
+ * @author Toru Nagashima <https://github.com/mysticatea>
430
+ * See LICENSE file in root directory for full license.
431
+ */
351
432
 
352
- /*
353
- * IMPORTANT!
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
- eslintRecommended = Object.freeze({
361
- rules: Object.freeze({
362
- "constructor-super": "error",
363
- "for-direction": "error",
364
- "getter-return": "error",
365
- "no-async-promise-executor": "error",
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
- * @fileoverview Main package entrypoint.
430
- * @author Nicholas C. Zakas
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
- function requireSrc$1 () {
437
- if (hasRequiredSrc$1) return src$1;
438
- hasRequiredSrc$1 = 1;
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
- const { name, version } = require$$0;
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
- // Public Interface
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
- src$1 = {
447
- meta: {
448
- name,
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
- var srcExports = requireSrc$1();
460
- const pluginJs = /*@__PURE__*/index.getDefaultExportFromCjs(srcExports);
484
+ retv[type] = Object.freeze(Array.from(keys));
485
+ } else {
486
+ retv[type] = Object.freeze(Array.from(additionalKeys[type]));
487
+ }
488
+ }
461
489
 
462
- function commonjsRequire(path) {
463
- 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.');
464
- }
490
+ return Object.freeze(retv);
491
+ }
465
492
 
466
- var vueEslintParser = {};
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
- __proto__: null,
2566
- babel: babel,
2567
- default: _package,
2568
- dependencies: dependencies,
2569
- description: description,
2570
- devDependencies: devDependencies,
2571
- engines: engines,
2572
- homepage: homepage,
2573
- license: license,
2574
- main: main,
2575
- maintainers: maintainers,
2576
- name: name,
2577
- repository: repository,
2578
- scripts: scripts,
2579
- version: version
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__*/index.getAugmentedNamespace(_package$1);
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 = index.requireEslintVisitorKeys();
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 = index.requireEslintVisitorKeys();
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$1 = /*#__PURE__*/Object.freeze({
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$$0__default$2.SourceCode)({
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$1;
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__*/index.getDefaultExportFromCjs(vueEslintParserExports);
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
- pluginJs.configs.recommended,
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.saasmakers
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