oxlint-plugin-eslint 1.68.0 → 1.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/ast-utils.cjs +77 -58
- package/common/eslint-utils.cjs +3 -3
- package/common/fix-tracker.cjs +3 -3
- package/common/ignore.cjs +1 -1
- package/common/keywords.cjs +2 -2
- package/common/regexpp.cjs +1 -1
- package/common/regular-expressions.cjs +3 -3
- package/common/string-utils.cjs +2 -2
- package/package.json +1 -1
- package/rules/accessor-pairs.cjs +3 -3
- package/rules/array-bracket-newline.cjs +3 -3
- package/rules/array-bracket-spacing.cjs +3 -3
- package/rules/array-callback-return.cjs +3 -3
- package/rules/array-element-newline.cjs +3 -3
- package/rules/arrow-body-style.cjs +3 -3
- package/rules/arrow-parens.cjs +3 -3
- package/rules/arrow-spacing.cjs +3 -3
- package/rules/block-scoped-var.cjs +2 -2
- package/rules/block-spacing.cjs +3 -3
- package/rules/brace-style.cjs +3 -3
- package/rules/callback-return.cjs +2 -2
- package/rules/camelcase.cjs +3 -3
- package/rules/capitalized-comments.cjs +3 -3
- package/rules/class-methods-use-this.cjs +3 -3
- package/rules/comma-dangle.cjs +3 -3
- package/rules/comma-spacing.cjs +3 -3
- package/rules/comma-style.cjs +3 -3
- package/rules/complexity.cjs +3 -3
- package/rules/computed-property-spacing.cjs +3 -3
- package/rules/consistent-return.cjs +3 -3
- package/rules/consistent-this.cjs +2 -2
- package/rules/constructor-super.cjs +2 -2
- package/rules/curly.cjs +3 -3
- package/rules/default-case-last.cjs +2 -2
- package/rules/default-case.cjs +2 -2
- package/rules/default-param-last.cjs +2 -2
- package/rules/dot-location.cjs +3 -3
- package/rules/dot-notation.cjs +3 -3
- package/rules/eol-last.cjs +2 -2
- package/rules/eqeqeq.cjs +3 -3
- package/rules/for-direction.cjs +3 -3
- package/rules/func-call-spacing.cjs +3 -3
- package/rules/func-name-matching.cjs +3 -3
- package/rules/func-names.cjs +3 -3
- package/rules/func-style.cjs +2 -2
- package/rules/function-call-argument-newline.cjs +2 -2
- package/rules/function-paren-newline.cjs +3 -3
- package/rules/generator-star-spacing.cjs +2 -2
- package/rules/getter-return.cjs +3 -3
- package/rules/global-require.cjs +2 -2
- package/rules/grouped-accessor-pairs.cjs +3 -3
- package/rules/guard-for-in.cjs +2 -2
- package/rules/handle-callback-err.cjs +2 -2
- package/rules/id-blacklist.cjs +2 -2
- package/rules/id-denylist.cjs +3 -3
- package/rules/id-length.cjs +3 -3
- package/rules/id-match.cjs +3 -3
- package/rules/implicit-arrow-linebreak.cjs +3 -3
- package/rules/indent-legacy.cjs +3 -3
- package/rules/indent.cjs +3 -3
- package/rules/init-declarations.cjs +2 -2
- package/rules/jsx-quotes.cjs +3 -3
- package/rules/key-spacing.cjs +3 -3
- package/rules/keyword-spacing.cjs +3 -3
- package/rules/line-comment-position.cjs +3 -3
- package/rules/linebreak-style.cjs +3 -3
- package/rules/lines-around-comment.cjs +3 -3
- package/rules/lines-around-directive.cjs +3 -3
- package/rules/lines-between-class-members.cjs +3 -3
- package/rules/logical-assignment-operators.cjs +3 -3
- package/rules/max-classes-per-file.cjs +2 -2
- package/rules/max-depth.cjs +2 -2
- package/rules/max-len.cjs +2 -2
- package/rules/max-lines-per-function.cjs +3 -3
- package/rules/max-lines.cjs +3 -3
- package/rules/max-nested-callbacks.cjs +2 -2
- package/rules/max-params.cjs +3 -3
- package/rules/max-statements-per-line.cjs +3 -3
- package/rules/max-statements.cjs +3 -3
- package/rules/multiline-comment-style.cjs +3 -3
- package/rules/multiline-ternary.cjs +3 -3
- package/rules/new-cap.cjs +3 -3
- package/rules/new-parens.cjs +3 -3
- package/rules/newline-after-var.cjs +3 -3
- package/rules/newline-before-return.cjs +2 -2
- package/rules/newline-per-chained-call.cjs +3 -3
- package/rules/no-alert.cjs +3 -3
- package/rules/no-array-constructor.cjs +3 -3
- package/rules/no-async-promise-executor.cjs +2 -2
- package/rules/no-await-in-loop.cjs +2 -2
- package/rules/no-bitwise.cjs +2 -2
- package/rules/no-buffer-constructor.cjs +2 -2
- package/rules/no-caller.cjs +2 -2
- package/rules/no-case-declarations.cjs +2 -2
- package/rules/no-catch-shadow.cjs +3 -3
- package/rules/no-class-assign.cjs +3 -3
- package/rules/no-compare-neg-zero.cjs +2 -2
- package/rules/no-cond-assign.cjs +3 -3
- package/rules/no-confusing-arrow.cjs +3 -3
- package/rules/no-console.cjs +3 -3
- package/rules/no-const-assign.cjs +3 -3
- package/rules/no-constant-binary-expression.cjs +3 -3
- package/rules/no-constant-condition.cjs +3 -3
- package/rules/no-constructor-return.cjs +2 -2
- package/rules/no-continue.cjs +2 -2
- package/rules/no-control-regex.cjs +3 -3
- package/rules/no-debugger.cjs +2 -2
- package/rules/no-delete-var.cjs +2 -2
- package/rules/no-div-regex.cjs +2 -2
- package/rules/no-dupe-args.cjs +3 -3
- package/rules/no-dupe-class-members.cjs +3 -3
- package/rules/no-dupe-else-if.cjs +3 -3
- package/rules/no-dupe-keys.cjs +3 -3
- package/rules/no-duplicate-case.cjs +3 -3
- package/rules/no-duplicate-imports.cjs +2 -2
- package/rules/no-else-return.cjs +3 -3
- package/rules/no-empty-character-class.cjs +3 -3
- package/rules/no-empty-function.cjs +3 -3
- package/rules/no-empty-pattern.cjs +3 -3
- package/rules/no-empty-static-block.cjs +2 -2
- package/rules/no-empty.cjs +3 -3
- package/rules/no-eq-null.cjs +2 -2
- package/rules/no-eval.cjs +3 -3
- package/rules/no-ex-assign.cjs +3 -3
- package/rules/no-extend-native.cjs +3 -3
- package/rules/no-extra-bind.cjs +3 -3
- package/rules/no-extra-boolean-cast.cjs +3 -3
- package/rules/no-extra-label.cjs +3 -3
- package/rules/no-extra-parens.cjs +3 -3
- package/rules/no-extra-semi.cjs +3 -3
- package/rules/no-fallthrough.cjs +4 -4
- package/rules/no-floating-decimal.cjs +3 -3
- package/rules/no-func-assign.cjs +3 -3
- package/rules/no-global-assign.cjs +2 -2
- package/rules/no-implicit-coercion.cjs +3 -3
- package/rules/no-implicit-globals.cjs +2 -2
- package/rules/no-implied-eval.cjs +3 -3
- package/rules/no-import-assign.cjs +3 -3
- package/rules/no-inline-comments.cjs +3 -3
- package/rules/no-inner-declarations.cjs +3 -3
- package/rules/no-invalid-regexp.cjs +3 -3
- package/rules/no-invalid-this.cjs +3 -3
- package/rules/no-irregular-whitespace.cjs +3 -3
- package/rules/no-iterator.cjs +3 -3
- package/rules/no-label-var.cjs +3 -3
- package/rules/no-labels.cjs +3 -3
- package/rules/no-lone-blocks.cjs +2 -2
- package/rules/no-lonely-if.cjs +3 -3
- package/rules/no-loop-func.cjs +2 -2
- package/rules/no-loss-of-precision.cjs +2 -2
- package/rules/no-magic-numbers.cjs +3 -3
- package/rules/no-misleading-character-class.cjs +9 -9
- package/rules/no-mixed-operators.cjs +3 -3
- package/rules/no-mixed-requires.cjs +2 -2
- package/rules/no-mixed-spaces-and-tabs.cjs +2 -2
- package/rules/no-multi-assign.cjs +2 -2
- package/rules/no-multi-spaces.cjs +3 -3
- package/rules/no-multi-str.cjs +3 -3
- package/rules/no-multiple-empty-lines.cjs +2 -2
- package/rules/no-native-reassign.cjs +2 -2
- package/rules/no-negated-condition.cjs +2 -2
- package/rules/no-negated-in-lhs.cjs +2 -2
- package/rules/no-nested-ternary.cjs +2 -2
- package/rules/no-new-func.cjs +3 -3
- package/rules/no-new-native-nonconstructor.cjs +2 -2
- package/rules/no-new-object.cjs +3 -3
- package/rules/no-new-require.cjs +2 -2
- package/rules/no-new-symbol.cjs +2 -2
- package/rules/no-new-wrappers.cjs +3 -3
- package/rules/no-new.cjs +2 -2
- package/rules/no-nonoctal-decimal-escape.cjs +2 -2
- package/rules/no-obj-calls.cjs +3 -3
- package/rules/no-object-constructor.cjs +3 -3
- package/rules/no-octal-escape.cjs +2 -2
- package/rules/no-octal.cjs +2 -2
- package/rules/no-param-reassign.cjs +2 -2
- package/rules/no-path-concat.cjs +2 -2
- package/rules/no-plusplus.cjs +2 -2
- package/rules/no-process-env.cjs +2 -2
- package/rules/no-process-exit.cjs +2 -2
- package/rules/no-promise-executor-return.cjs +3 -3
- package/rules/no-proto.cjs +3 -3
- package/rules/no-prototype-builtins.cjs +3 -3
- package/rules/no-redeclare.cjs +3 -3
- package/rules/no-regex-spaces.cjs +3 -3
- package/rules/no-restricted-exports.cjs +3 -3
- package/rules/no-restricted-globals.cjs +3 -3
- package/rules/no-restricted-imports.cjs +3 -3
- package/rules/no-restricted-modules.cjs +3 -3
- package/rules/no-restricted-properties.cjs +3 -3
- package/rules/no-restricted-syntax.cjs +2 -2
- package/rules/no-return-assign.cjs +3 -3
- package/rules/no-return-await.cjs +3 -3
- package/rules/no-script-url.cjs +3 -3
- package/rules/no-self-assign.cjs +3 -3
- package/rules/no-self-compare.cjs +2 -2
- package/rules/no-sequences.cjs +3 -3
- package/rules/no-setter-return.cjs +3 -3
- package/rules/no-shadow-restricted-names.cjs +2 -2
- package/rules/no-shadow.cjs +3 -3
- package/rules/no-spaced-func.cjs +2 -2
- package/rules/no-sparse-arrays.cjs +3 -3
- package/rules/no-sync.cjs +2 -2
- package/rules/no-tabs.cjs +2 -2
- package/rules/no-template-curly-in-string.cjs +2 -2
- package/rules/no-ternary.cjs +2 -2
- package/rules/no-this-before-super.cjs +3 -3
- package/rules/no-throw-literal.cjs +3 -3
- package/rules/no-trailing-spaces.cjs +3 -3
- package/rules/no-unassigned-vars.cjs +2 -2
- package/rules/no-undef-init.cjs +3 -3
- package/rules/no-undef.cjs +2 -2
- package/rules/no-undefined.cjs +2 -2
- package/rules/no-underscore-dangle.cjs +2 -2
- package/rules/no-unexpected-multiline.cjs +3 -3
- package/rules/no-unmodified-loop-condition.cjs +8 -8
- package/rules/no-unneeded-ternary.cjs +3 -3
- package/rules/no-unreachable-loop.cjs +2 -2
- package/rules/no-unreachable.cjs +2 -2
- package/rules/no-unsafe-finally.cjs +2 -2
- package/rules/no-unsafe-negation.cjs +3 -3
- package/rules/no-unsafe-optional-chaining.cjs +2 -2
- package/rules/no-unused-expressions.cjs +3 -3
- package/rules/no-unused-labels.cjs +3 -3
- package/rules/no-unused-private-class-members.cjs +3 -3
- package/rules/no-unused-vars.cjs +3 -3
- package/rules/no-use-before-define.cjs +2 -2
- package/rules/no-useless-assignment.cjs +3 -3
- package/rules/no-useless-backreference.cjs +3 -3
- package/rules/no-useless-call.cjs +3 -3
- package/rules/no-useless-catch.cjs +2 -2
- package/rules/no-useless-computed-key.cjs +3 -3
- package/rules/no-useless-concat.cjs +3 -3
- package/rules/no-useless-constructor.cjs +3 -3
- package/rules/no-useless-escape.cjs +3 -3
- package/rules/no-useless-rename.cjs +3 -3
- package/rules/no-useless-return.cjs +3 -3
- package/rules/no-var.cjs +3 -3
- package/rules/no-void.cjs +2 -2
- package/rules/no-warning-comments.cjs +3 -3
- package/rules/no-whitespace-before-property.cjs +3 -3
- package/rules/no-with.cjs +2 -2
- package/rules/nonblock-statement-body-position.cjs +2 -2
- package/rules/object-curly-newline.cjs +3 -3
- package/rules/object-curly-spacing.cjs +3 -3
- package/rules/object-property-newline.cjs +2 -2
- package/rules/object-shorthand.cjs +3 -3
- package/rules/one-var-declaration-per-line.cjs +2 -2
- package/rules/one-var.cjs +3 -3
- package/rules/operator-assignment.cjs +3 -3
- package/rules/operator-linebreak.cjs +3 -3
- package/rules/padded-blocks.cjs +3 -3
- package/rules/padding-line-between-statements.cjs +3 -3
- package/rules/prefer-arrow-callback.cjs +6 -4
- package/rules/prefer-const.cjs +3 -3
- package/rules/prefer-destructuring.cjs +3 -3
- package/rules/prefer-exponentiation-operator.cjs +3 -3
- package/rules/prefer-named-capture-group.cjs +3 -3
- package/rules/prefer-numeric-literals.cjs +3 -3
- package/rules/prefer-object-has-own.cjs +3 -3
- package/rules/prefer-object-spread.cjs +3 -3
- package/rules/prefer-promise-reject-errors.cjs +3 -3
- package/rules/prefer-reflect.cjs +2 -2
- package/rules/prefer-regex-literals.cjs +3 -3
- package/rules/prefer-rest-params.cjs +2 -2
- package/rules/prefer-spread.cjs +3 -3
- package/rules/prefer-template.cjs +3 -3
- package/rules/preserve-caught-error.cjs +3 -3
- package/rules/quote-props.cjs +3 -3
- package/rules/quotes.cjs +3 -3
- package/rules/radix.cjs +3 -3
- package/rules/require-atomic-updates.cjs +2 -2
- package/rules/require-await.cjs +3 -3
- package/rules/require-unicode-regexp.cjs +3 -3
- package/rules/require-yield.cjs +3 -3
- package/rules/rest-spread-spacing.cjs +2 -2
- package/rules/semi-spacing.cjs +3 -3
- package/rules/semi-style.cjs +3 -3
- package/rules/semi.cjs +3 -3
- package/rules/sort-imports.cjs +2 -2
- package/rules/sort-keys.cjs +3 -3
- package/rules/sort-vars.cjs +2 -2
- package/rules/space-before-blocks.cjs +3 -3
- package/rules/space-before-function-paren.cjs +3 -3
- package/rules/space-in-parens.cjs +3 -3
- package/rules/space-infix-ops.cjs +3 -3
- package/rules/space-unary-ops.cjs +3 -3
- package/rules/spaced-comment.cjs +3 -3
- package/rules/strict.cjs +3 -3
- package/rules/switch-colon-spacing.cjs +3 -3
- package/rules/symbol-description.cjs +3 -3
- package/rules/template-curly-spacing.cjs +3 -3
- package/rules/template-tag-spacing.cjs +2 -2
- package/rules/unicode-bom.cjs +2 -2
- package/rules/use-isnan.cjs +3 -3
- package/rules/valid-typeof.cjs +3 -3
- package/rules/vars-on-top.cjs +2 -2
- package/rules/wrap-iife.cjs +3 -3
- package/rules/wrap-regex.cjs +2 -2
- package/rules/yield-star-spacing.cjs +2 -2
- package/rules/yoda.cjs +3 -3
- /package/common/{chunk.cjs → rolldown-runtime.cjs} +0 -0
package/common/ast-utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime.cjs");
|
|
2
2
|
//#region ../../node_modules/.pnpm/eslint-visitor-keys@5.0.1/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs
|
|
3
|
-
var require_eslint_visitor_keys = /* @__PURE__ */
|
|
3
|
+
var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((exports) => {
|
|
4
4
|
/**
|
|
5
5
|
* @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
|
|
6
6
|
*/
|
|
@@ -205,7 +205,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
205
205
|
return Object.freeze(retv);
|
|
206
206
|
}
|
|
207
207
|
exports.KEYS = KEYS, exports.getKeys = getKeys, exports.unionWith = unionWith;
|
|
208
|
-
})), require_ast = /* @__PURE__ */
|
|
208
|
+
})), require_ast = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
209
209
|
(function() {
|
|
210
210
|
"use strict";
|
|
211
211
|
function isExpression(node) {
|
|
@@ -297,7 +297,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
297
297
|
trailingStatement
|
|
298
298
|
};
|
|
299
299
|
})();
|
|
300
|
-
})), require_code = /* @__PURE__ */
|
|
300
|
+
})), require_code = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
301
301
|
(function() {
|
|
302
302
|
"use strict";
|
|
303
303
|
var ES6Regex, ES5Regex = {
|
|
@@ -370,7 +370,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
370
370
|
isIdentifierPartES6
|
|
371
371
|
};
|
|
372
372
|
})();
|
|
373
|
-
})), require_keyword = /* @__PURE__ */
|
|
373
|
+
})), require_keyword = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
374
374
|
(function() {
|
|
375
375
|
"use strict";
|
|
376
376
|
var code = require_code();
|
|
@@ -453,15 +453,15 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
453
453
|
isIdentifierES6
|
|
454
454
|
};
|
|
455
455
|
})();
|
|
456
|
-
})), require_utils = /* @__PURE__ */
|
|
456
|
+
})), require_utils = /* @__PURE__ */ require_rolldown_runtime.t(((exports) => {
|
|
457
457
|
(function() {
|
|
458
458
|
"use strict";
|
|
459
459
|
exports.ast = require_ast(), exports.code = require_code(), exports.keyword = require_keyword();
|
|
460
460
|
})();
|
|
461
|
-
})), require_acorn = /* @__PURE__ */
|
|
461
|
+
})), require_acorn = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
462
462
|
(function(global, factory) {
|
|
463
463
|
typeof exports == "object" && module !== void 0 ? factory(exports) : typeof define == "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis < "u" ? globalThis : global || self, factory(global.acorn = {}));
|
|
464
|
-
})(exports, (function(exports$
|
|
464
|
+
})(exports, (function(exports$2) {
|
|
465
465
|
"use strict";
|
|
466
466
|
var astralIdentifierCodes = [
|
|
467
467
|
509,
|
|
@@ -1625,6 +1625,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
1625
1625
|
var defaultOptions = {
|
|
1626
1626
|
ecmaVersion: null,
|
|
1627
1627
|
sourceType: "script",
|
|
1628
|
+
strict: !1,
|
|
1628
1629
|
onInsertedSemicolon: null,
|
|
1629
1630
|
onTrailingComma: null,
|
|
1630
1631
|
allowReserved: null,
|
|
@@ -1675,7 +1676,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
1675
1676
|
var reserved = "";
|
|
1676
1677
|
options.allowReserved !== !0 && (reserved = reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3], options.sourceType === "module" && (reserved += " await")), this.reservedWords = wordsRegexp(reserved);
|
|
1677
1678
|
var reservedStrict = (reserved ? reserved + " " : "") + reservedWords.strict;
|
|
1678
|
-
this.reservedWordsStrict = wordsRegexp(reservedStrict), this.reservedWordsStrictBind = wordsRegexp(reservedStrict + " " + reservedWords.strictBind), this.input = String(input), this.containsEsc = !1, startPos ? (this.pos = startPos, this.lineStart = this.input.lastIndexOf("\n", startPos - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = types$1.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = options.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(this.options.sourceType === "commonjs" ? SCOPE_FUNCTION : SCOPE_TOP), this.regexpState = null, this.privateNameStack = [];
|
|
1679
|
+
this.reservedWordsStrict = wordsRegexp(reservedStrict), this.reservedWordsStrictBind = wordsRegexp(reservedStrict + " " + reservedWords.strictBind), this.input = String(input), this.containsEsc = !1, startPos ? (this.pos = startPos, this.lineStart = this.input.lastIndexOf("\n", startPos - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = types$1.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = options.sourceType === "module", this.strict = this.inModule || options.strict === !0 || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(this.options.sourceType === "commonjs" ? SCOPE_FUNCTION : SCOPE_TOP), this.regexpState = null, this.privateNameStack = [];
|
|
1679
1680
|
}, prototypeAccessors = {
|
|
1680
1681
|
inFunction: { configurable: !0 },
|
|
1681
1682
|
inGenerator: { configurable: !0 },
|
|
@@ -1690,8 +1691,10 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
1690
1691
|
inClassStaticBlock: { configurable: !0 }
|
|
1691
1692
|
};
|
|
1692
1693
|
Parser.prototype.parse = function parse() {
|
|
1693
|
-
var node = this.options.program || this.startNode();
|
|
1694
|
-
return this.nextToken(), this.
|
|
1694
|
+
var this$1$1 = this, node = this.options.program || this.startNode();
|
|
1695
|
+
return this.nextToken(), this.catchStackOverflow(function() {
|
|
1696
|
+
return this$1$1.parseTopLevel(node);
|
|
1697
|
+
});
|
|
1695
1698
|
}, prototypeAccessors.inFunction.get = function() {
|
|
1696
1699
|
return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0;
|
|
1697
1700
|
}, prototypeAccessors.inGenerator.get = function() {
|
|
@@ -1756,6 +1759,13 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
1756
1759
|
return this.type === types$1.name && this.value === name && !this.containsEsc;
|
|
1757
1760
|
}, pp$9.eatContextual = function(name) {
|
|
1758
1761
|
return this.isContextual(name) ? (this.next(), !0) : !1;
|
|
1762
|
+
}, pp$9.catchStackOverflow = function(f) {
|
|
1763
|
+
try {
|
|
1764
|
+
return f();
|
|
1765
|
+
} catch (e) {
|
|
1766
|
+
if (e instanceof Error && (/\bstack\b.*\b(exceeded|overflow)\b/i.test(e.message) || /\btoo much recursion\b/i.test(e.message))) this.raise(this.start, "Not enough stack space to parse input");
|
|
1767
|
+
else throw e;
|
|
1768
|
+
}
|
|
1759
1769
|
}, pp$9.expectContextual = function(name) {
|
|
1760
1770
|
this.eatContextual(name) || this.unexpected();
|
|
1761
1771
|
}, pp$9.canInsertSemicolon = function() {
|
|
@@ -1792,9 +1802,9 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
1792
1802
|
};
|
|
1793
1803
|
var pp$8 = Parser.prototype;
|
|
1794
1804
|
pp$8.parseTopLevel = function(node) {
|
|
1795
|
-
var exports$
|
|
1805
|
+
var exports$1 = Object.create(null);
|
|
1796
1806
|
for (node.body ||= []; this.type !== types$1.eof;) {
|
|
1797
|
-
var stmt = this.parseStatement(null, !0, exports$
|
|
1807
|
+
var stmt = this.parseStatement(null, !0, exports$1);
|
|
1798
1808
|
node.body.push(stmt);
|
|
1799
1809
|
}
|
|
1800
1810
|
if (this.inModule) for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1) {
|
|
@@ -1846,12 +1856,18 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
1846
1856
|
while (isIdentifierChar(ch = this.fullCharCodeAt(next)));
|
|
1847
1857
|
if (ch === 92) return !0;
|
|
1848
1858
|
var id = this.input.slice(idStart, next);
|
|
1849
|
-
|
|
1859
|
+
if (keywordRelationalOperator.test(id)) return !1;
|
|
1860
|
+
if (isFor && !isAwaitUsing && id === "of") {
|
|
1861
|
+
skipWhiteSpace.lastIndex = next;
|
|
1862
|
+
var skipAfterOf = skipWhiteSpace.exec(this.input);
|
|
1863
|
+
if (next += skipAfterOf[0].length, this.input.charCodeAt(next) !== 61 || (ch = this.input.charCodeAt(next + 1)) === 61 || ch === 62) return !1;
|
|
1864
|
+
}
|
|
1865
|
+
return !0;
|
|
1850
1866
|
}, pp$8.isAwaitUsing = function(isFor) {
|
|
1851
1867
|
return this.isUsingKeyword(!0, isFor);
|
|
1852
1868
|
}, pp$8.isUsing = function(isFor) {
|
|
1853
1869
|
return this.isUsingKeyword(!1, isFor);
|
|
1854
|
-
}, pp$8.parseStatement = function(context, topLevel, exports$
|
|
1870
|
+
}, pp$8.parseStatement = function(context, topLevel, exports$1) {
|
|
1855
1871
|
var starttype = this.type, node = this.startNode(), kind;
|
|
1856
1872
|
switch (this.isLet(context) && (starttype = types$1._var, kind = "let"), starttype) {
|
|
1857
1873
|
case types$1._break:
|
|
@@ -1879,11 +1895,11 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
1879
1895
|
var skip = skipWhiteSpace.exec(this.input), next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
|
|
1880
1896
|
if (nextCh === 40 || nextCh === 46) return this.parseExpressionStatement(node, this.parseExpression());
|
|
1881
1897
|
}
|
|
1882
|
-
return this.options.allowImportExportEverywhere || (topLevel || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports$
|
|
1898
|
+
return this.options.allowImportExportEverywhere || (topLevel || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports$1);
|
|
1883
1899
|
default:
|
|
1884
1900
|
if (this.isAsyncFunction()) return context && this.unexpected(), this.next(), this.parseFunctionStatement(node, !0, !context);
|
|
1885
1901
|
var usingKind = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
|
|
1886
|
-
if (usingKind) return this.allowUsing || this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"), usingKind === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(node, !1, usingKind), this.semicolon(), this.finishNode(node, "VariableDeclaration");
|
|
1902
|
+
if (usingKind) return this.allowUsing || this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"), context && this.raise(this.start, "Using declaration is not allowed in single-statement positions"), usingKind === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(node, !1, usingKind), this.semicolon(), this.finishNode(node, "VariableDeclaration");
|
|
1887
1903
|
var maybeName = this.value, expr = this.parseExpression();
|
|
1888
1904
|
return starttype === types$1.name && expr.type === "Identifier" && this.eat(types$1.colon) ? this.parseLabeledStatement(node, maybeName, expr, context) : this.parseExpressionStatement(node, expr);
|
|
1889
1905
|
}
|
|
@@ -1916,7 +1932,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
1916
1932
|
var containsEsc = this.containsEsc, refDestructuringErrors = new DestructuringErrors(), initPos = this.start, init = awaitAt > -1 ? this.parseExprSubscripts(refDestructuringErrors, "await") : this.parseExpression(!0, refDestructuringErrors);
|
|
1917
1933
|
return this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (awaitAt > -1 ? (this.type === types$1._in && this.unexpected(awaitAt), node.await = !0) : isForOf && this.options.ecmaVersion >= 8 && (init.start === initPos && !containsEsc && init.type === "Identifier" && init.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (node.await = !1)), startsWithLet && isForOf && this.raise(init.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(init, !1, refDestructuringErrors), this.checkLValPattern(init), this.parseForIn(node, init)) : (this.checkExpressionErrors(refDestructuringErrors, !0), awaitAt > -1 && this.unexpected(awaitAt), this.parseFor(node, init));
|
|
1918
1934
|
}, pp$8.parseForAfterInit = function(node, init, awaitAt) {
|
|
1919
|
-
return (this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && init.declarations.length === 1 ? (this.
|
|
1935
|
+
return (this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && init.declarations.length === 1 ? (this.type === types$1._in ? ((init.kind === "using" || init.kind === "await using") && !init.declarations[0].init && this.raise(this.start, "Using declaration is not allowed in for-in loops"), this.options.ecmaVersion >= 9 && awaitAt > -1 && this.unexpected(awaitAt)) : this.options.ecmaVersion >= 9 && (node.await = awaitAt > -1), this.parseForIn(node, init)) : (awaitAt > -1 && this.unexpected(awaitAt), this.parseFor(node, init));
|
|
1920
1936
|
}, pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {
|
|
1921
1937
|
return this.next(), this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), !1, isAsync);
|
|
1922
1938
|
}, pp$8.parseIfStatement = function(node) {
|
|
@@ -2062,14 +2078,14 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
2062
2078
|
var computed = node.computed, key = node.key;
|
|
2063
2079
|
return !computed && (key.type === "Identifier" && key.name === name || key.type === "Literal" && key.value === name);
|
|
2064
2080
|
}
|
|
2065
|
-
pp$8.parseExportAllDeclaration = function(node, exports$
|
|
2066
|
-
return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (node.exported = this.parseModuleExportName(), this.checkExport(exports$
|
|
2067
|
-
}, pp$8.parseExport = function(node, exports$
|
|
2068
|
-
if (this.next(), this.eat(types$1.star)) return this.parseExportAllDeclaration(node, exports$
|
|
2069
|
-
if (this.eat(types$1._default)) return this.checkExport(exports$
|
|
2070
|
-
if (this.shouldParseExportStatement()) node.declaration = this.parseExportDeclaration(node), node.declaration.type === "VariableDeclaration" ? this.checkVariableExport(exports$
|
|
2081
|
+
pp$8.parseExportAllDeclaration = function(node, exports$1) {
|
|
2082
|
+
return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (node.exported = this.parseModuleExportName(), this.checkExport(exports$1, node.exported, this.lastTokStart)) : node.exported = null), this.expectContextual("from"), this.type !== types$1.string && this.unexpected(), node.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (node.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(node, "ExportAllDeclaration");
|
|
2083
|
+
}, pp$8.parseExport = function(node, exports$1) {
|
|
2084
|
+
if (this.next(), this.eat(types$1.star)) return this.parseExportAllDeclaration(node, exports$1);
|
|
2085
|
+
if (this.eat(types$1._default)) return this.checkExport(exports$1, "default", this.lastTokStart), node.declaration = this.parseExportDefaultDeclaration(), this.finishNode(node, "ExportDefaultDeclaration");
|
|
2086
|
+
if (this.shouldParseExportStatement()) node.declaration = this.parseExportDeclaration(node), node.declaration.type === "VariableDeclaration" ? this.checkVariableExport(exports$1, node.declaration.declarations) : this.checkExport(exports$1, node.declaration.id, node.declaration.id.start), node.specifiers = [], node.source = null, this.options.ecmaVersion >= 16 && (node.attributes = []);
|
|
2071
2087
|
else {
|
|
2072
|
-
if (node.declaration = null, node.specifiers = this.parseExportSpecifiers(exports$
|
|
2088
|
+
if (node.declaration = null, node.specifiers = this.parseExportSpecifiers(exports$1), this.eatContextual("from")) this.type !== types$1.string && this.unexpected(), node.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (node.attributes = this.parseWithClause());
|
|
2073
2089
|
else {
|
|
2074
2090
|
for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
|
|
2075
2091
|
var spec = list[i];
|
|
@@ -2094,36 +2110,36 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
2094
2110
|
var declaration = this.parseMaybeAssign();
|
|
2095
2111
|
return this.semicolon(), declaration;
|
|
2096
2112
|
}
|
|
2097
|
-
}, pp$8.checkExport = function(exports$
|
|
2098
|
-
exports$
|
|
2099
|
-
}, pp$8.checkPatternExport = function(exports$
|
|
2113
|
+
}, pp$8.checkExport = function(exports$1, name, pos) {
|
|
2114
|
+
exports$1 && (typeof name != "string" && (name = name.type === "Identifier" ? name.name : name.value), hasOwn(exports$1, name) && this.raiseRecoverable(pos, "Duplicate export '" + name + "'"), exports$1[name] = !0);
|
|
2115
|
+
}, pp$8.checkPatternExport = function(exports$1, pat) {
|
|
2100
2116
|
var type = pat.type;
|
|
2101
|
-
if (type === "Identifier") this.checkExport(exports$
|
|
2117
|
+
if (type === "Identifier") this.checkExport(exports$1, pat, pat.start);
|
|
2102
2118
|
else if (type === "ObjectPattern") for (var i = 0, list = pat.properties; i < list.length; i += 1) {
|
|
2103
2119
|
var prop = list[i];
|
|
2104
|
-
this.checkPatternExport(exports$
|
|
2120
|
+
this.checkPatternExport(exports$1, prop);
|
|
2105
2121
|
}
|
|
2106
2122
|
else if (type === "ArrayPattern") for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {
|
|
2107
2123
|
var elt = list$1[i$1];
|
|
2108
|
-
elt && this.checkPatternExport(exports$
|
|
2124
|
+
elt && this.checkPatternExport(exports$1, elt);
|
|
2109
2125
|
}
|
|
2110
|
-
else type === "Property" ? this.checkPatternExport(exports$
|
|
2111
|
-
}, pp$8.checkVariableExport = function(exports$
|
|
2112
|
-
if (exports$
|
|
2126
|
+
else type === "Property" ? this.checkPatternExport(exports$1, pat.value) : type === "AssignmentPattern" ? this.checkPatternExport(exports$1, pat.left) : type === "RestElement" && this.checkPatternExport(exports$1, pat.argument);
|
|
2127
|
+
}, pp$8.checkVariableExport = function(exports$1, decls) {
|
|
2128
|
+
if (exports$1) for (var i = 0, list = decls; i < list.length; i += 1) {
|
|
2113
2129
|
var decl = list[i];
|
|
2114
|
-
this.checkPatternExport(exports$
|
|
2130
|
+
this.checkPatternExport(exports$1, decl.id);
|
|
2115
2131
|
}
|
|
2116
2132
|
}, pp$8.shouldParseExportStatement = function() {
|
|
2117
2133
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
2118
|
-
}, pp$8.parseExportSpecifier = function(exports$
|
|
2134
|
+
}, pp$8.parseExportSpecifier = function(exports$1) {
|
|
2119
2135
|
var node = this.startNode();
|
|
2120
|
-
return node.local = this.parseModuleExportName(), node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local, this.checkExport(exports$
|
|
2121
|
-
}, pp$8.parseExportSpecifiers = function(exports$
|
|
2136
|
+
return node.local = this.parseModuleExportName(), node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local, this.checkExport(exports$1, node.exported, node.exported.start), this.finishNode(node, "ExportSpecifier");
|
|
2137
|
+
}, pp$8.parseExportSpecifiers = function(exports$1) {
|
|
2122
2138
|
var nodes = [], first = !0;
|
|
2123
2139
|
for (this.expect(types$1.braceL); !this.eat(types$1.braceR);) {
|
|
2124
2140
|
if (first) first = !1;
|
|
2125
2141
|
else if (this.expect(types$1.comma), this.afterTrailingComma(types$1.braceR)) break;
|
|
2126
|
-
nodes.push(this.parseExportSpecifier(exports$
|
|
2142
|
+
nodes.push(this.parseExportSpecifier(exports$1));
|
|
2127
2143
|
}
|
|
2128
2144
|
return nodes;
|
|
2129
2145
|
}, pp$8.parseImport = function(node) {
|
|
@@ -2391,13 +2407,16 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
2391
2407
|
}, other[kind] = !0;
|
|
2392
2408
|
}
|
|
2393
2409
|
}, pp$5.parseExpression = function(forInit, refDestructuringErrors) {
|
|
2394
|
-
var
|
|
2395
|
-
|
|
2396
|
-
var
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2410
|
+
var this$1$1 = this;
|
|
2411
|
+
return this.catchStackOverflow(function() {
|
|
2412
|
+
var startPos = this$1$1.start, startLoc = this$1$1.startLoc, expr = this$1$1.parseMaybeAssign(forInit, refDestructuringErrors);
|
|
2413
|
+
if (this$1$1.type === types$1.comma) {
|
|
2414
|
+
var node = this$1$1.startNodeAt(startPos, startLoc);
|
|
2415
|
+
for (node.expressions = [expr]; this$1$1.eat(types$1.comma);) node.expressions.push(this$1$1.parseMaybeAssign(forInit, refDestructuringErrors));
|
|
2416
|
+
return this$1$1.finishNode(node, "SequenceExpression");
|
|
2417
|
+
}
|
|
2418
|
+
return expr;
|
|
2419
|
+
});
|
|
2401
2420
|
}, pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {
|
|
2402
2421
|
if (this.isContextual("yield")) {
|
|
2403
2422
|
if (this.inGenerator) return this.parseYield(forInit);
|
|
@@ -2416,7 +2435,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
2416
2435
|
}, pp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) {
|
|
2417
2436
|
var startPos = this.start, startLoc = this.startLoc, expr = this.parseExprOps(forInit, refDestructuringErrors);
|
|
2418
2437
|
if (this.checkExpressionErrors(refDestructuringErrors)) return expr;
|
|
2419
|
-
if (this.eat(types$1.question)) {
|
|
2438
|
+
if (!(expr.type === "ArrowFunctionExpression" && expr.start === startPos) && this.eat(types$1.question)) {
|
|
2420
2439
|
var node = this.startNodeAt(startPos, startLoc);
|
|
2421
2440
|
return node.test = expr, node.consequent = this.parseMaybeAssign(), this.expect(types$1.colon), node.alternate = this.parseMaybeAssign(forInit), this.finishNode(node, "ConditionalExpression");
|
|
2422
2441
|
}
|
|
@@ -2607,7 +2626,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
2607
2626
|
return node.property = this.parseIdent(!0), node.property.name !== "target" && this.raiseRecoverable(node.property.start, "The only valid meta property for new is 'new.target'"), containsEsc && this.raiseRecoverable(node.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(node.start, "'new.target' can only be used in functions and class static block"), this.finishNode(node, "MetaProperty");
|
|
2608
2627
|
}
|
|
2609
2628
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2610
|
-
return node.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), startPos, startLoc, !0, !1), this.eat(types$1.parenL) ? node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, !1) : node.arguments = empty, this.finishNode(node, "NewExpression");
|
|
2629
|
+
return node.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), startPos, startLoc, !0, !1), node.callee.type === "Super" && this.raiseRecoverable(startPos, "Invalid use of 'super'"), this.eat(types$1.parenL) ? node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, !1) : node.arguments = empty, this.finishNode(node, "NewExpression");
|
|
2611
2630
|
}, pp$5.parseTemplateElement = function(ref) {
|
|
2612
2631
|
var isTagged = ref.isTagged, elem = this.startNode();
|
|
2613
2632
|
return this.type === types$1.invalidTemplate ? (isTagged || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), elem.value = {
|
|
@@ -3677,7 +3696,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
3677
3696
|
var word = this.readWord1(), type = types$1.name;
|
|
3678
3697
|
return this.keywords.test(word) && (type = keywords[word]), this.finishToken(type, word);
|
|
3679
3698
|
};
|
|
3680
|
-
var version = "8.
|
|
3699
|
+
var version = "8.17.0";
|
|
3681
3700
|
Parser.acorn = {
|
|
3682
3701
|
Parser,
|
|
3683
3702
|
version,
|
|
@@ -3708,9 +3727,9 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
3708
3727
|
function tokenizer(input, options) {
|
|
3709
3728
|
return Parser.tokenizer(input, options);
|
|
3710
3729
|
}
|
|
3711
|
-
exports$
|
|
3730
|
+
exports$2.Node = Node, exports$2.Parser = Parser, exports$2.Position = Position, exports$2.SourceLocation = SourceLocation, exports$2.TokContext = TokContext, exports$2.Token = Token, exports$2.TokenType = TokenType, exports$2.defaultOptions = defaultOptions, exports$2.getLineInfo = getLineInfo, exports$2.isIdentifierChar = isIdentifierChar, exports$2.isIdentifierStart = isIdentifierStart, exports$2.isNewLine = isNewLine, exports$2.keywordTypes = keywords, exports$2.lineBreak = lineBreak, exports$2.lineBreakG = lineBreakG, exports$2.nonASCIIwhitespace = nonASCIIwhitespace, exports$2.parse = parse, exports$2.parseExpressionAt = parseExpressionAt, exports$2.tokContexts = types, exports$2.tokTypes = types$1, exports$2.tokenizer = tokenizer, exports$2.version = version;
|
|
3712
3731
|
}));
|
|
3713
|
-
})), require_xhtml = /* @__PURE__ */
|
|
3732
|
+
})), require_xhtml = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
3714
3733
|
module.exports = {
|
|
3715
3734
|
quot: "\"",
|
|
3716
3735
|
amp: "&",
|
|
@@ -3966,7 +3985,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
3966
3985
|
hearts: "♥",
|
|
3967
3986
|
diams: "♦"
|
|
3968
3987
|
};
|
|
3969
|
-
})), require_acorn_jsx = /* @__PURE__ */
|
|
3988
|
+
})), require_acorn_jsx = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
3970
3989
|
let XHTMLEntities = require_xhtml(), hexNumber = /^[\da-fA-F]+$/, decimalNumber = /^\d+$/, acornJsxMap = /* @__PURE__ */ new WeakMap();
|
|
3971
3990
|
function getJsxTokens(acorn) {
|
|
3972
3991
|
acorn = acorn.Parser.acorn || acorn;
|
|
@@ -4177,7 +4196,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
4177
4196
|
}
|
|
4178
4197
|
};
|
|
4179
4198
|
}
|
|
4180
|
-
})), require_espree = /* @__PURE__ */
|
|
4199
|
+
})), require_espree = /* @__PURE__ */ require_rolldown_runtime.t(((exports) => {
|
|
4181
4200
|
var acorn = require_acorn(), jsx = require_acorn_jsx(), eslintVisitorKeys = require_eslint_visitor_keys();
|
|
4182
4201
|
function _interopNamespaceDefault(e) {
|
|
4183
4202
|
var n = Object.create(null);
|
|
@@ -4855,12 +4874,12 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
4855
4874
|
return eslintVisitorKeys.KEYS;
|
|
4856
4875
|
}
|
|
4857
4876
|
}), exports.Syntax = Syntax, exports.latestEcmaVersion = latestEcmaVersion, exports.name = "espree", exports.parse = parse, exports.supportedEcmaVersions = supportedEcmaVersions, exports.tokenize = tokenize, exports.version = "11.2.0";
|
|
4858
|
-
})), require_escape_string_regexp = /* @__PURE__ */
|
|
4877
|
+
})), require_escape_string_regexp = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
4859
4878
|
module.exports = (string) => {
|
|
4860
4879
|
if (typeof string != "string") throw TypeError("Expected a string");
|
|
4861
4880
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
4862
4881
|
};
|
|
4863
|
-
})), require_ast_utils$1 = /* @__PURE__ */
|
|
4882
|
+
})), require_ast_utils$1 = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
4864
4883
|
let breakableTypePattern = /^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u, lineBreakPattern = /\r\n|[\r\n\u2028\u2029]/u, shebangPattern = /^#!([^\r\n]+)/u;
|
|
4865
4884
|
/**
|
|
4866
4885
|
* Creates a version of the `lineBreakPattern` regex with the global flag.
|
|
@@ -4876,7 +4895,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
4876
4895
|
createGlobalLinebreakMatcher,
|
|
4877
4896
|
shebangPattern
|
|
4878
4897
|
};
|
|
4879
|
-
})), require_globals = /* @__PURE__ */
|
|
4898
|
+
})), require_globals = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
4880
4899
|
let commonjs = {
|
|
4881
4900
|
exports: !0,
|
|
4882
4901
|
global: !1,
|
|
@@ -4988,9 +5007,9 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
4988
5007
|
Temporal: !1
|
|
4989
5008
|
}
|
|
4990
5009
|
};
|
|
4991
|
-
})), require_ecma_version = /* @__PURE__ */
|
|
5010
|
+
})), require_ecma_version = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
4992
5011
|
module.exports = { LATEST_ECMA_VERSION: 2026 };
|
|
4993
|
-
})), require_ast_utils = /* @__PURE__ */
|
|
5012
|
+
})), require_ast_utils = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
4994
5013
|
let { KEYS: eslintVisitorKeys } = require_eslint_visitor_keys(), esutils = require_utils(), espree = require_espree(), escapeRegExp = require_escape_string_regexp(), { breakableTypePattern, createGlobalLinebreakMatcher, lineBreakPattern, shebangPattern } = require_ast_utils$1(), globals = require_globals(), { LATEST_ECMA_VERSION } = require_ecma_version(), anyFunctionPattern = /^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u, anyLoopPattern = /^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u, arrayMethodWithThisArgPattern = /^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u, arrayOrTypedArrayPattern = /Array$/u, bindOrCallOrApplyPattern = /^(?:bind|call|apply)$/u, thisTagPattern = /^[\s*]*@this/mu, COMMENTS_IGNORE_PATTERN = /^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u, ESLINT_DIRECTIVE_PATTERN = /^(?:eslint[- ]|(?:globals?|exported) )/u, LINEBREAKS = new Set([
|
|
4995
5014
|
"\r\n",
|
|
4996
5015
|
"\r",
|
package/common/eslint-utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime.cjs");
|
|
2
2
|
//#region ../../node_modules/.pnpm/eslint-visitor-keys@3.4.3/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs
|
|
3
|
-
var require_eslint_visitor_keys = /* @__PURE__ */
|
|
3
|
+
var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((exports) => {
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
5
5
|
/**
|
|
6
6
|
* @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
|
|
@@ -196,7 +196,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_chunk.t(((exports) =>
|
|
|
196
196
|
return Object.freeze(retv);
|
|
197
197
|
}
|
|
198
198
|
exports.KEYS = KEYS, exports.getKeys = getKeys, exports.unionWith = unionWith;
|
|
199
|
-
})), require_eslint_utils = /* @__PURE__ */
|
|
199
|
+
})), require_eslint_utils = /* @__PURE__ */ require_rolldown_runtime.t(((exports) => {
|
|
200
200
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
201
201
|
var eslintVisitorKeys = require_eslint_visitor_keys();
|
|
202
202
|
/** @typedef {import("eslint").Scope.Scope} Scope */
|
package/common/fix-tracker.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime.cjs"), require_ast_utils$1 = require("./ast-utils.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/utils/fix-tracker.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Helper class to aid in constructing fix commands.
|
|
5
5
|
* @author Alan Pierce
|
|
6
6
|
*/
|
|
7
|
-
var require_fix_tracker = /* @__PURE__ */
|
|
7
|
+
var require_fix_tracker = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
8
8
|
/**
|
|
9
9
|
* @import { SourceRange } from "@eslint/core";
|
|
10
10
|
*/
|
package/common/ignore.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js
|
|
2
|
-
var require_ignore = /* @__PURE__ */ require("./
|
|
2
|
+
var require_ignore = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((exports, module) => {
|
|
3
3
|
function makeArray(subject) {
|
|
4
4
|
return Array.isArray(subject) ? subject : [subject];
|
|
5
5
|
}
|
package/common/keywords.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/utils/keywords.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview A shared list of ES3 keywords.
|
|
4
4
|
* @author Josh Perez
|
|
5
5
|
*/
|
|
6
|
-
var require_keywords = /* @__PURE__ */ require("./
|
|
6
|
+
var require_keywords = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((exports, module) => {
|
|
7
7
|
module.exports = /* @__PURE__ */ "abstract.boolean.break.byte.case.catch.char.class.const.continue.debugger.default.delete.do.double.else.enum.export.extends.false.final.finally.float.for.function.goto.if.implements.import.in.instanceof.int.interface.long.native.new.null.package.private.protected.public.return.short.static.super.switch.synchronized.this.throw.throws.transient.true.try.typeof.var.void.volatile.while.with".split(".");
|
|
8
8
|
}));
|
|
9
9
|
//#endregion
|
package/common/regexpp.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../node_modules/.pnpm/@eslint-community+regexpp@4.12.2/node_modules/@eslint-community/regexpp/index.js
|
|
2
|
-
var require_regexpp = /* @__PURE__ */ require("./
|
|
2
|
+
var require_regexpp = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((exports) => {
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
4
4
|
var ast = /*#__PURE__*/ Object.freeze({ __proto__: null });
|
|
5
5
|
let latestEcmaVersion = 2025, largeIdStartRanges, largeIdContinueRanges;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime.cjs"), require_regexpp$1 = require("./regexpp.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/utils/regular-expressions.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Common utils for regular expressions.
|
|
5
5
|
* @author Josh Goldberg
|
|
6
6
|
* @author Toru Nagashima
|
|
7
7
|
*/
|
|
8
|
-
var require_regular_expressions = /* @__PURE__ */
|
|
8
|
+
var require_regular_expressions = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
9
9
|
let { RegExpValidator } = require_regexpp$1.t(), REGEXPP_LATEST_ECMA_VERSION = 2025;
|
|
10
10
|
/**
|
|
11
11
|
* Checks if the given regular expression pattern would be valid with the `u` flag.
|
package/common/string-utils.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/shared/string-utils.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Utilities to operate on strings.
|
|
4
4
|
* @author Stephen Wade
|
|
5
5
|
*/
|
|
6
|
-
var require_string_utils = /* @__PURE__ */ require("./
|
|
6
|
+
var require_string_utils = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((exports, module) => {
|
|
7
7
|
let ASCII_REGEX = /^[\u0000-\u007f]*$/u, segmenter;
|
|
8
8
|
/**
|
|
9
9
|
* Converts the first letter of a string to uppercase.
|
package/package.json
CHANGED
package/rules/accessor-pairs.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/accessor-pairs.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to enforce getter and setter pairs in objects and classes.
|
|
5
5
|
* @author Gyandeep Singh
|
|
6
6
|
*/
|
|
7
|
-
var require_accessor_pairs = /* @__PURE__ */
|
|
7
|
+
var require_accessor_pairs = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
8
8
|
let astUtils = require_ast_utils$1.t();
|
|
9
9
|
/**
|
|
10
10
|
* Property name if it can be computed statically, otherwise the list of the tokens of the key node.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/array-bracket-newline.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to enforce linebreaks after open and before close array brackets
|
|
5
5
|
* @author Jan Peer Stöcklmair <https://github.com/JPeer264>
|
|
6
6
|
* @deprecated in ESLint v8.53.0
|
|
7
7
|
*/
|
|
8
|
-
var require_array_bracket_newline = /* @__PURE__ */
|
|
8
|
+
var require_array_bracket_newline = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
9
9
|
let astUtils = require_ast_utils$1.t();
|
|
10
10
|
/** @type {import('../types').Rule.RuleModule} */
|
|
11
11
|
module.exports = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/array-bracket-spacing.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Disallows or enforces spaces inside of array brackets.
|
|
5
5
|
* @author Jamund Ferguson
|
|
6
6
|
* @deprecated in ESLint v8.53.0
|
|
7
7
|
*/
|
|
8
|
-
var require_array_bracket_spacing = /* @__PURE__ */
|
|
8
|
+
var require_array_bracket_spacing = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
9
9
|
let astUtils = require_ast_utils$1.t();
|
|
10
10
|
/** @type {import('../types').Rule.RuleModule} */
|
|
11
11
|
module.exports = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/array-callback-return.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to enforce return statements in callbacks of array's methods
|
|
5
5
|
* @author Toru Nagashima
|
|
6
6
|
*/
|
|
7
|
-
var require_array_callback_return = /* @__PURE__ */
|
|
7
|
+
var require_array_callback_return = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
8
8
|
let astUtils = require_ast_utils$1.t(), TARGET_NODE_TYPE = /^(?:Arrow)?FunctionExpression$/u, TARGET_METHODS = /^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;
|
|
9
9
|
/**
|
|
10
10
|
* Checks a given node is a member access which has the specified name's
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/array-element-newline.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to enforce line breaks after each array element
|
|
5
5
|
* @author Jan Peer Stöcklmair <https://github.com/JPeer264>
|
|
6
6
|
* @deprecated in ESLint v8.53.0
|
|
7
7
|
*/
|
|
8
|
-
var require_array_element_newline = /* @__PURE__ */
|
|
8
|
+
var require_array_element_newline = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
9
9
|
let astUtils = require_ast_utils$1.t();
|
|
10
10
|
/** @type {import('../types').Rule.RuleModule} */
|
|
11
11
|
module.exports = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/arrow-body-style.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to require braces in arrow function body.
|
|
5
5
|
* @author Alberto Rodríguez
|
|
6
6
|
*/
|
|
7
|
-
var require_arrow_body_style = /* @__PURE__ */
|
|
7
|
+
var require_arrow_body_style = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
8
8
|
let astUtils = require_ast_utils$1.t();
|
|
9
9
|
/** @type {import('../types').Rule.RuleModule} */
|
|
10
10
|
module.exports = {
|
package/rules/arrow-parens.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/arrow-parens.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to require parens in arrow function arguments.
|
|
5
5
|
* @author Jxck
|
|
6
6
|
* @deprecated in ESLint v8.53.0
|
|
7
7
|
*/
|
|
8
|
-
var require_arrow_parens = /* @__PURE__ */
|
|
8
|
+
var require_arrow_parens = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
9
9
|
let astUtils = require_ast_utils$1.t();
|
|
10
10
|
/**
|
|
11
11
|
* Determines if the given arrow function has block body.
|
package/rules/arrow-spacing.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/arrow-spacing.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to define spacing before/after arrow function's arrow.
|
|
5
5
|
* @author Jxck
|
|
6
6
|
* @deprecated in ESLint v8.53.0
|
|
7
7
|
*/
|
|
8
|
-
var require_arrow_spacing = /* @__PURE__ */
|
|
8
|
+
var require_arrow_spacing = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
|
|
9
9
|
let astUtils = require_ast_utils$1.t();
|
|
10
10
|
/** @type {import('../types').Rule.RuleModule} */
|
|
11
11
|
module.exports = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.4.1/node_modules/eslint/lib/rules/block-scoped-var.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Rule to check for "block scoped" variables by binding context
|
|
4
4
|
* @author Matt DuVall <http://www.mattduvall.com>
|
|
5
5
|
*/
|
|
6
|
-
var require_block_scoped_var = /* @__PURE__ */ require("../common/
|
|
6
|
+
var require_block_scoped_var = /* @__PURE__ */ require("../common/rolldown-runtime.cjs").t(((exports, module) => {
|
|
7
7
|
/** @typedef {import("eslint-scope").Definition} Definition */
|
|
8
8
|
/** @typedef {import("eslint-scope").Reference} Reference */
|
|
9
9
|
/** @type {import('../types').Rule.RuleModule} */
|