oxlint-plugin-eslint 1.73.0 → 1.74.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 +6 -6
- package/common/code-path-utils.cjs +1 -1
- package/common/fix-tracker.cjs +1 -1
- package/common/ignore.cjs +1 -1
- package/common/keywords.cjs +1 -1
- package/common/regexpp.cjs +2 -2
- package/common/regular-expressions.cjs +1 -1
- package/common/string-utils.cjs +1 -1
- package/index.js +8 -3
- package/package.json +1 -1
- package/rules/accessor-pairs.cjs +1 -1
- package/rules/array-bracket-newline.cjs +1 -1
- package/rules/array-bracket-spacing.cjs +1 -1
- package/rules/array-callback-return.cjs +1 -1
- package/rules/array-element-newline.cjs +1 -1
- package/rules/arrow-body-style.cjs +2 -2
- package/rules/arrow-parens.cjs +1 -1
- package/rules/arrow-spacing.cjs +1 -1
- package/rules/block-scoped-var.cjs +1 -1
- package/rules/block-spacing.cjs +1 -1
- package/rules/brace-style.cjs +1 -1
- package/rules/callback-return.cjs +1 -1
- package/rules/camelcase.cjs +1 -1
- package/rules/capitalized-comments.cjs +1 -1
- package/rules/class-methods-use-this.cjs +1 -1
- package/rules/comma-dangle.cjs +1 -1
- package/rules/comma-spacing.cjs +2 -2
- package/rules/comma-style.cjs +1 -1
- package/rules/complexity.cjs +1 -1
- package/rules/computed-property-spacing.cjs +1 -1
- package/rules/consistent-return.cjs +1 -1
- package/rules/consistent-this.cjs +1 -1
- package/rules/constructor-super.cjs +1 -1
- package/rules/curly.cjs +1 -1
- package/rules/default-case-last.cjs +1 -1
- package/rules/default-case.cjs +1 -1
- package/rules/default-param-last.cjs +1 -1
- package/rules/dot-location.cjs +1 -1
- package/rules/dot-notation.cjs +1 -1
- package/rules/eol-last.cjs +1 -1
- package/rules/eqeqeq.cjs +1 -1
- package/rules/for-direction.cjs +1 -1
- package/rules/func-call-spacing.cjs +1 -1
- package/rules/func-name-matching.cjs +1 -1
- package/rules/func-names.cjs +1 -1
- package/rules/func-style.cjs +1 -1
- package/rules/function-call-argument-newline.cjs +1 -1
- package/rules/function-paren-newline.cjs +1 -1
- package/rules/generator-star-spacing.cjs +1 -1
- package/rules/getter-return.cjs +1 -1
- package/rules/global-require.cjs +1 -1
- package/rules/grouped-accessor-pairs.cjs +1 -1
- package/rules/guard-for-in.cjs +1 -1
- package/rules/handle-callback-err.cjs +1 -1
- package/rules/id-blacklist.cjs +1 -1
- package/rules/id-denylist.cjs +1 -1
- package/rules/id-length.cjs +1 -1
- package/rules/id-match.cjs +1 -1
- package/rules/implicit-arrow-linebreak.cjs +1 -1
- package/rules/indent-legacy.cjs +2 -2
- package/rules/indent.cjs +1 -1
- package/rules/init-declarations.cjs +1 -1
- package/rules/jsx-quotes.cjs +1 -1
- package/rules/key-spacing.cjs +1 -1
- package/rules/keyword-spacing.cjs +1 -1
- package/rules/line-comment-position.cjs +1 -1
- package/rules/linebreak-style.cjs +1 -1
- package/rules/lines-around-comment.cjs +2 -2
- package/rules/lines-around-directive.cjs +1 -1
- package/rules/lines-between-class-members.cjs +1 -1
- package/rules/logical-assignment-operators.cjs +2 -2
- package/rules/max-classes-per-file.cjs +5 -1
- package/rules/max-depth.cjs +1 -1
- package/rules/max-len.cjs +1 -1
- package/rules/max-lines-per-function.cjs +1 -1
- package/rules/max-lines.cjs +1 -1
- package/rules/max-nested-callbacks.cjs +3 -2
- package/rules/max-params.cjs +1 -1
- package/rules/max-statements-per-line.cjs +1 -1
- package/rules/max-statements.cjs +1 -1
- package/rules/multiline-comment-style.cjs +1 -1
- package/rules/multiline-ternary.cjs +1 -1
- package/rules/new-cap.cjs +1 -1
- package/rules/new-parens.cjs +1 -1
- package/rules/newline-after-var.cjs +1 -1
- package/rules/newline-before-return.cjs +1 -1
- package/rules/newline-per-chained-call.cjs +1 -1
- package/rules/no-alert.cjs +1 -1
- package/rules/no-array-constructor.cjs +1 -1
- package/rules/no-async-promise-executor.cjs +1 -1
- package/rules/no-await-in-loop.cjs +1 -1
- package/rules/no-bitwise.cjs +1 -1
- package/rules/no-buffer-constructor.cjs +1 -1
- package/rules/no-caller.cjs +1 -1
- package/rules/no-case-declarations.cjs +1 -1
- package/rules/no-catch-shadow.cjs +1 -1
- package/rules/no-class-assign.cjs +1 -1
- package/rules/no-compare-neg-zero.cjs +1 -1
- package/rules/no-cond-assign.cjs +1 -1
- package/rules/no-confusing-arrow.cjs +1 -1
- package/rules/no-console.cjs +1 -1
- package/rules/no-const-assign.cjs +1 -1
- package/rules/no-constant-binary-expression.cjs +46 -12
- package/rules/no-constant-condition.cjs +1 -1
- package/rules/no-constructor-return.cjs +1 -1
- package/rules/no-continue.cjs +1 -1
- package/rules/no-control-regex.cjs +1 -1
- package/rules/no-debugger.cjs +1 -1
- package/rules/no-delete-var.cjs +1 -1
- package/rules/no-div-regex.cjs +1 -1
- package/rules/no-dupe-args.cjs +1 -1
- package/rules/no-dupe-class-members.cjs +1 -1
- package/rules/no-dupe-else-if.cjs +1 -1
- package/rules/no-dupe-keys.cjs +1 -1
- package/rules/no-duplicate-case.cjs +2 -2
- package/rules/no-duplicate-imports.cjs +1 -1
- package/rules/no-else-return.cjs +2 -2
- package/rules/no-empty-character-class.cjs +1 -1
- package/rules/no-empty-function.cjs +1 -1
- package/rules/no-empty-pattern.cjs +1 -1
- package/rules/no-empty-static-block.cjs +1 -1
- package/rules/no-empty.cjs +1 -1
- package/rules/no-eq-null.cjs +1 -1
- package/rules/no-eval.cjs +1 -1
- package/rules/no-ex-assign.cjs +1 -1
- package/rules/no-extend-native.cjs +1 -1
- package/rules/no-extra-bind.cjs +1 -1
- package/rules/no-extra-boolean-cast.cjs +3 -3
- package/rules/no-extra-label.cjs +1 -1
- package/rules/no-extra-parens.cjs +2 -2
- package/rules/no-extra-semi.cjs +1 -1
- package/rules/no-fallthrough.cjs +1 -1
- package/rules/no-floating-decimal.cjs +1 -1
- package/rules/no-func-assign.cjs +1 -1
- package/rules/no-global-assign.cjs +1 -1
- package/rules/no-implicit-coercion.cjs +1 -1
- package/rules/no-implicit-globals.cjs +1 -1
- package/rules/no-implied-eval.cjs +1 -1
- package/rules/no-import-assign.cjs +1 -1
- package/rules/no-inline-comments.cjs +1 -1
- package/rules/no-inner-declarations.cjs +1 -1
- package/rules/no-invalid-regexp.cjs +1 -1
- package/rules/no-invalid-this.cjs +1 -1
- package/rules/no-irregular-whitespace.cjs +1 -1
- package/rules/no-iterator.cjs +1 -1
- package/rules/no-label-var.cjs +1 -1
- package/rules/no-labels.cjs +1 -1
- package/rules/no-lone-blocks.cjs +1 -1
- package/rules/no-lonely-if.cjs +1 -1
- package/rules/no-loop-func.cjs +1 -1
- package/rules/no-loss-of-precision.cjs +1 -1
- package/rules/no-magic-numbers.cjs +1 -1
- package/rules/no-misleading-character-class.cjs +1 -1
- package/rules/no-mixed-operators.cjs +1 -1
- package/rules/no-mixed-requires.cjs +1 -1
- package/rules/no-mixed-spaces-and-tabs.cjs +1 -1
- package/rules/no-multi-assign.cjs +1 -1
- package/rules/no-multi-spaces.cjs +1 -1
- package/rules/no-multi-str.cjs +1 -1
- package/rules/no-multiple-empty-lines.cjs +1 -1
- package/rules/no-native-reassign.cjs +1 -1
- package/rules/no-negated-condition.cjs +1 -1
- package/rules/no-negated-in-lhs.cjs +1 -1
- package/rules/no-nested-ternary.cjs +1 -1
- package/rules/no-new-func.cjs +1 -1
- package/rules/no-new-native-nonconstructor.cjs +1 -1
- package/rules/no-new-object.cjs +1 -1
- package/rules/no-new-require.cjs +1 -1
- package/rules/no-new-symbol.cjs +1 -1
- package/rules/no-new-wrappers.cjs +1 -1
- package/rules/no-new.cjs +1 -1
- package/rules/no-nonoctal-decimal-escape.cjs +1 -1
- package/rules/no-obj-calls.cjs +1 -1
- package/rules/no-object-constructor.cjs +1 -1
- package/rules/no-octal-escape.cjs +1 -1
- package/rules/no-octal.cjs +1 -1
- package/rules/no-param-reassign.cjs +1 -1
- package/rules/no-path-concat.cjs +1 -1
- package/rules/no-plusplus.cjs +1 -1
- package/rules/no-process-env.cjs +1 -1
- package/rules/no-process-exit.cjs +1 -1
- package/rules/no-promise-executor-return.cjs +2 -2
- package/rules/no-proto.cjs +1 -1
- package/rules/no-prototype-builtins.cjs +1 -1
- package/rules/no-redeclare.cjs +1 -1
- package/rules/no-regex-spaces.cjs +1 -1
- package/rules/no-restricted-exports.cjs +1 -1
- package/rules/no-restricted-globals.cjs +1 -1
- package/rules/no-restricted-imports.cjs +1 -1
- package/rules/no-restricted-modules.cjs +1 -1
- package/rules/no-restricted-properties.cjs +1 -1
- package/rules/no-restricted-syntax.cjs +1 -1
- package/rules/no-return-assign.cjs +1 -1
- package/rules/no-return-await.cjs +1 -1
- package/rules/no-script-url.cjs +1 -1
- package/rules/no-self-assign.cjs +1 -1
- package/rules/no-self-compare.cjs +1 -1
- package/rules/no-sequences.cjs +1 -1
- package/rules/no-setter-return.cjs +1 -1
- package/rules/no-shadow-restricted-names.cjs +1 -1
- package/rules/no-shadow.cjs +5 -5
- package/rules/no-spaced-func.cjs +1 -1
- package/rules/no-sparse-arrays.cjs +1 -1
- package/rules/no-sync.cjs +1 -1
- package/rules/no-tabs.cjs +1 -1
- package/rules/no-template-curly-in-string.cjs +1 -1
- package/rules/no-ternary.cjs +1 -1
- package/rules/no-this-before-super.cjs +1 -1
- package/rules/no-throw-literal.cjs +3 -2
- package/rules/no-trailing-spaces.cjs +1 -1
- package/rules/no-unassigned-vars.cjs +1 -1
- package/rules/no-undef-init.cjs +1 -1
- package/rules/no-undef.cjs +1 -1
- package/rules/no-undefined.cjs +1 -1
- package/rules/no-underscore-dangle.cjs +1 -1
- package/rules/no-unexpected-multiline.cjs +1 -1
- package/rules/no-unneeded-ternary.cjs +1 -1
- package/rules/no-unreachable-loop.cjs +1 -1
- package/rules/no-unreachable.cjs +1 -1
- package/rules/no-unsafe-finally.cjs +1 -1
- package/rules/no-unsafe-negation.cjs +1 -1
- package/rules/no-unsafe-optional-chaining.cjs +1 -1
- package/rules/no-unused-expressions.cjs +3 -3
- package/rules/no-unused-labels.cjs +1 -1
- package/rules/no-unused-private-class-members.cjs +1 -1
- package/rules/no-unused-vars.cjs +2 -2
- package/rules/no-use-before-define.cjs +3 -3
- package/rules/no-useless-assignment.cjs +1 -1
- package/rules/no-useless-backreference.cjs +1 -1
- package/rules/no-useless-call.cjs +1 -1
- package/rules/no-useless-catch.cjs +1 -1
- package/rules/no-useless-computed-key.cjs +2 -2
- package/rules/no-useless-concat.cjs +1 -1
- package/rules/no-useless-constructor.cjs +1 -1
- package/rules/no-useless-escape.cjs +1 -1
- package/rules/no-useless-rename.cjs +1 -1
- package/rules/no-useless-return.cjs +1 -1
- package/rules/no-var.cjs +1 -1
- package/rules/no-void.cjs +1 -1
- package/rules/no-warning-comments.cjs +1 -1
- package/rules/no-whitespace-before-property.cjs +1 -1
- package/rules/no-with.cjs +1 -1
- package/rules/nonblock-statement-body-position.cjs +1 -1
- package/rules/object-curly-newline.cjs +1 -1
- package/rules/object-curly-spacing.cjs +1 -1
- package/rules/object-property-newline.cjs +1 -1
- package/rules/object-shorthand.cjs +2 -2
- package/rules/one-var-declaration-per-line.cjs +1 -1
- package/rules/one-var.cjs +1 -1
- package/rules/operator-assignment.cjs +1 -1
- package/rules/operator-linebreak.cjs +1 -1
- package/rules/padded-blocks.cjs +1 -1
- package/rules/padding-line-between-statements.cjs +1 -1
- package/rules/prefer-arrow-callback.cjs +1 -1
- package/rules/prefer-const.cjs +2 -2
- package/rules/prefer-destructuring.cjs +1 -1
- package/rules/prefer-exponentiation-operator.cjs +14 -4
- package/rules/prefer-named-capture-group.cjs +1 -1
- package/rules/prefer-numeric-literals.cjs +1 -1
- package/rules/prefer-object-has-own.cjs +1 -1
- package/rules/prefer-object-spread.cjs +1 -1
- package/rules/prefer-promise-reject-errors.cjs +6 -4
- package/rules/prefer-reflect.cjs +1 -1
- package/rules/prefer-regex-literals.cjs +1 -1
- package/rules/prefer-rest-params.cjs +1 -1
- package/rules/prefer-spread.cjs +1 -1
- package/rules/prefer-template.cjs +2 -2
- package/rules/preserve-caught-error.cjs +1 -1
- package/rules/quote-props.cjs +1 -1
- package/rules/quotes.cjs +1 -1
- package/rules/radix.cjs +5 -4
- package/rules/require-atomic-updates.cjs +1 -1
- package/rules/require-await.cjs +1 -1
- package/rules/require-unicode-regexp.cjs +1 -1
- package/rules/require-yield.cjs +1 -1
- package/rules/rest-spread-spacing.cjs +1 -1
- package/rules/semi-spacing.cjs +1 -1
- package/rules/semi-style.cjs +1 -1
- package/rules/semi.cjs +3 -3
- package/rules/sort-imports.cjs +1 -1
- package/rules/sort-vars.cjs +1 -1
- package/rules/space-before-blocks.cjs +1 -1
- package/rules/space-before-function-paren.cjs +1 -1
- package/rules/space-in-parens.cjs +1 -1
- package/rules/space-infix-ops.cjs +1 -1
- package/rules/space-unary-ops.cjs +1 -1
- package/rules/spaced-comment.cjs +1 -1
- package/rules/strict.cjs +1 -1
- package/rules/switch-colon-spacing.cjs +1 -1
- package/rules/symbol-description.cjs +1 -1
- package/rules/template-curly-spacing.cjs +1 -1
- package/rules/template-tag-spacing.cjs +1 -1
- package/rules/unicode-bom.cjs +1 -1
- package/rules/use-isnan.cjs +1 -1
- package/rules/valid-typeof.cjs +1 -1
- package/rules/vars-on-top.cjs +1 -1
- package/rules/wrap-iife.cjs +1 -1
- package/rules/wrap-regex.cjs +1 -1
- package/rules/yield-star-spacing.cjs +1 -1
- package/rules/yoda.cjs +1 -1
package/common/ast-utils.cjs
CHANGED
|
@@ -1432,7 +1432,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
|
|
|
1432
1432
|
return !1;
|
|
1433
1433
|
}
|
|
1434
1434
|
function isIdentifierStart(code, astral) {
|
|
1435
|
-
return code < 65 ? code === 36 : code < 91 ? !0 : code < 97 ? code === 95 : code < 123 ? !0 : code <= 65535 ? code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code)) : astral
|
|
1435
|
+
return code < 65 ? code === 36 : code < 91 ? !0 : code < 97 ? code === 95 : code < 123 ? !0 : code <= 65535 ? code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code)) : astral !== !1 && isInAstralSet(code, astralIdentifierStartCodes);
|
|
1436
1436
|
}
|
|
1437
1437
|
function isIdentifierChar(code, astral) {
|
|
1438
1438
|
return code < 48 ? code === 36 : code < 58 ? !0 : code < 65 ? !1 : code < 91 ? !0 : code < 97 ? code === 95 : code < 123 ? !0 : code <= 65535 ? code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code)) : astral === !1 ? !1 : isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
@@ -5266,7 +5266,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
|
|
|
5266
5266
|
* @returns {boolean} `true` if both sides match and reference the same value.
|
|
5267
5267
|
*/
|
|
5268
5268
|
function isSameReference(left, right, disableStaticComputedKey = !1) {
|
|
5269
|
-
if (left.type !== right.type) return left.type === "ChainExpression" ? isSameReference(left.expression, right, disableStaticComputedKey) : right.type === "ChainExpression"
|
|
5269
|
+
if (left.type !== right.type) return left.type === "ChainExpression" ? isSameReference(left.expression, right, disableStaticComputedKey) : right.type === "ChainExpression" && isSameReference(left, right.expression, disableStaticComputedKey);
|
|
5270
5270
|
switch (left.type) {
|
|
5271
5271
|
case "Super":
|
|
5272
5272
|
case "ThisExpression": return !0;
|
|
@@ -5608,7 +5608,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
|
|
|
5608
5608
|
* `null` when it cannot be determined.
|
|
5609
5609
|
*/
|
|
5610
5610
|
function getBooleanValue(node) {
|
|
5611
|
-
return node.value === null ? node.raw === "null" ? !1 : typeof node.regex == "object"
|
|
5611
|
+
return node.value === null ? node.raw === "null" ? !1 : typeof node.regex == "object" || null : !!node.value;
|
|
5612
5612
|
}
|
|
5613
5613
|
/**
|
|
5614
5614
|
* Checks if a branch node of LogicalExpression short circuits the whole condition
|
|
@@ -5801,7 +5801,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
|
|
|
5801
5801
|
let keyword = prevToken.value, nodeType = NODE_TYPES_BY_KEYWORD[keyword];
|
|
5802
5802
|
return prevNode.type !== nodeType;
|
|
5803
5803
|
}
|
|
5804
|
-
return prevToken.type
|
|
5804
|
+
return prevToken.type !== "String" || !DECLARATIONS.has(prevNode.parent.type);
|
|
5805
5805
|
};
|
|
5806
5806
|
}
|
|
5807
5807
|
/**
|
|
@@ -6013,7 +6013,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
|
|
|
6013
6013
|
return !(isCallee(maybeCalleeNode) && maybeCalleeNode.parent.arguments.length >= 1 && !isNullOrUndefined(maybeCalleeNode.parent.arguments[0]));
|
|
6014
6014
|
}
|
|
6015
6015
|
return !0;
|
|
6016
|
-
case "CallExpression": return isReflectApply(parent.callee) ? parent.arguments.length !== 3 || parent.arguments[0] !== currentNode || isNullOrUndefined(parent.arguments[1]) : isArrayFromMethod(parent.callee) || isArrayFromAsyncMethod(parent.callee) ? parent.arguments.length !== 3 || parent.arguments[1] !== currentNode || isNullOrUndefined(parent.arguments[2]) : isMethodWhichHasThisArg(parent.callee)
|
|
6016
|
+
case "CallExpression": return isReflectApply(parent.callee) ? parent.arguments.length !== 3 || parent.arguments[0] !== currentNode || isNullOrUndefined(parent.arguments[1]) : isArrayFromMethod(parent.callee) || isArrayFromAsyncMethod(parent.callee) ? parent.arguments.length !== 3 || parent.arguments[1] !== currentNode || isNullOrUndefined(parent.arguments[2]) : !isMethodWhichHasThisArg(parent.callee) || parent.arguments.length !== 2 || parent.arguments[0] !== currentNode || isNullOrUndefined(parent.arguments[1]);
|
|
6017
6017
|
default: return !0;
|
|
6018
6018
|
}
|
|
6019
6019
|
}
|
|
@@ -6633,7 +6633,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
|
|
|
6633
6633
|
*/
|
|
6634
6634
|
function hasUnsafeIf(nodeToCheck) {
|
|
6635
6635
|
switch (nodeToCheck.type) {
|
|
6636
|
-
case "IfStatement": return nodeToCheck.alternate
|
|
6636
|
+
case "IfStatement": return !nodeToCheck.alternate || hasUnsafeIf(nodeToCheck.alternate);
|
|
6637
6637
|
case "ForStatement":
|
|
6638
6638
|
case "ForInStatement":
|
|
6639
6639
|
case "ForOfStatement":
|
package/common/fix-tracker.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime.cjs"), require_ast_utils$1 = require("./ast-utils.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/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
|
package/common/ignore.cjs
CHANGED
|
@@ -47,7 +47,7 @@ var require_ignore = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((expor
|
|
|
47
47
|
return new IgnoreRule(origin, pattern, negative, regex);
|
|
48
48
|
}, throwError = (message, Ctor) => {
|
|
49
49
|
throw new Ctor(message);
|
|
50
|
-
}, checkPath = (path, originalPath, doThrow) => isString(path) ? path ? checkPath.isNotRelative(path)
|
|
50
|
+
}, checkPath = (path, originalPath, doThrow) => isString(path) ? path ? !checkPath.isNotRelative(path) || doThrow(`path should be a \`path.relative()\`d string, but got "${originalPath}"`, RangeError) : doThrow("path must not be empty", TypeError) : doThrow(`path must be a string, but got \`${originalPath}\``, TypeError), isNotRelative = (path) => REGEX_TEST_INVALID_PATH.test(path);
|
|
51
51
|
checkPath.isNotRelative = isNotRelative, checkPath.convert = (p) => p;
|
|
52
52
|
var Ignore = class {
|
|
53
53
|
constructor({ ignorecase = !0, ignoreCase = ignorecase, allowRelativePaths = !1 } = {}) {
|
package/common/keywords.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/utils/keywords.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview A shared list of ES3 keywords.
|
|
4
4
|
* @author Josh Perez
|
package/common/regexpp.cjs
CHANGED
|
@@ -4,10 +4,10 @@ var require_regexpp = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((expo
|
|
|
4
4
|
var ast = /*#__PURE__*/ Object.freeze({ __proto__: null });
|
|
5
5
|
let latestEcmaVersion = 2025, largeIdStartRanges, largeIdContinueRanges;
|
|
6
6
|
function isIdStart(cp) {
|
|
7
|
-
return cp < 65 ? !1 : cp < 91 ? !0 : cp < 97 ? !1 : cp < 123
|
|
7
|
+
return cp < 65 ? !1 : cp < 91 ? !0 : cp < 97 ? !1 : cp < 123 || isLargeIdStart(cp);
|
|
8
8
|
}
|
|
9
9
|
function isIdContinue(cp) {
|
|
10
|
-
return cp < 48 ? !1 : cp < 58 ? !0 : cp < 65 ? !1 : cp < 91 || cp === 95 ? !0 : cp < 97 ? !1 : cp < 123
|
|
10
|
+
return cp < 48 ? !1 : cp < 58 ? !0 : cp < 65 ? !1 : cp < 91 || cp === 95 ? !0 : cp < 97 ? !1 : cp < 123 || isLargeIdStart(cp) || isLargeIdContinue(cp);
|
|
11
11
|
}
|
|
12
12
|
function isLargeIdStart(cp) {
|
|
13
13
|
return isInRange(cp, largeIdStartRanges ??= initLargeIdStartRanges());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime.cjs"), require_regexpp$1 = require("./regexpp.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/utils/regular-expressions.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Common utils for regular expressions.
|
|
5
5
|
* @author Josh Goldberg
|
package/common/string-utils.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/shared/string-utils.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Utilities to operate on strings.
|
|
4
4
|
* @author Stephen Wade
|
package/index.js
CHANGED
|
@@ -3164,12 +3164,17 @@ var require = createRequire(import.meta.url), create0 = null, create1 = null, cr
|
|
|
3164
3164
|
constantBinaryOperand: "Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",
|
|
3165
3165
|
constantShortCircuit: "Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",
|
|
3166
3166
|
alwaysNew: "Unexpected comparison to newly constructed object. These two values can never be equal.",
|
|
3167
|
-
bothAlwaysNew: "Unexpected comparison of two newly constructed objects. These two values can never be equal."
|
|
3167
|
+
bothAlwaysNew: "Unexpected comparison of two newly constructed objects. These two values can never be equal.",
|
|
3168
|
+
constantRelationalComparison: "Unexpected constant relational comparison. Both sides of the `{{operator}}` are literal values."
|
|
3168
3169
|
},
|
|
3169
3170
|
fixable: null,
|
|
3170
3171
|
hasSuggestions: !1,
|
|
3171
|
-
schema: [
|
|
3172
|
-
|
|
3172
|
+
schema: [{
|
|
3173
|
+
type: "object",
|
|
3174
|
+
properties: { checkRelationalComparisons: { type: "boolean" } },
|
|
3175
|
+
additionalProperties: !1
|
|
3176
|
+
}],
|
|
3177
|
+
defaultOptions: [{ checkRelationalComparisons: !1 }]
|
|
3173
3178
|
},
|
|
3174
3179
|
create(context) {
|
|
3175
3180
|
return create92 === null && (create92 = require("./rules/no-constant-binary-expression.cjs")), create92(context);
|
package/package.json
CHANGED
package/rules/accessor-pairs.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/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>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs"), require_code_path_utils$1 = require("../common/code-path-utils.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/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>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/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
|
|
@@ -67,7 +67,7 @@ var require_arrow_body_style = /* @__PURE__ */ require_rolldown_runtime.t(((expo
|
|
|
67
67
|
* @returns {boolean} `true` if the node is inside of a for loop, else `false`
|
|
68
68
|
*/
|
|
69
69
|
function isInsideForLoopInitializer(node) {
|
|
70
|
-
return node && node.parent ? node.parent.type === "ForStatement" && node.parent.init === node
|
|
70
|
+
return node && node.parent ? node.parent.type === "ForStatement" && node.parent.init === node || isInsideForLoopInitializer(node.parent) : !1;
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Determines whether a arrow function body needs braces
|
package/rules/arrow-parens.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/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
|
package/rules/arrow-spacing.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/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>
|
package/rules/block-spacing.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/block-spacing.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview A rule to disallow or enforce spaces inside of single line blocks.
|
|
5
5
|
* @author Toru Nagashima
|
package/rules/brace-style.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/brace-style.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to flag block statements that do not use the one true brace style
|
|
5
5
|
* @author Ian Christian Myers
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/callback-return.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Enforce return after a callback.
|
|
4
4
|
* @author Jamund Ferguson
|
package/rules/camelcase.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/camelcase.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to flag non-camelcased identifiers
|
|
5
5
|
* @author Nicholas C. Zakas
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/capitalized-comments.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview enforce or disallow capitalization of the first letter of a comment
|
|
5
5
|
* @author Kevin Partington
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/class-methods-use-this.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to enforce that all class methods use 'this'.
|
|
5
5
|
* @author Patrick Williams
|
package/rules/comma-dangle.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/comma-dangle.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to forbid or enforce dangling commas.
|
|
5
5
|
* @author Ian Christian Myers
|
package/rules/comma-spacing.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/comma-spacing.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Comma spacing - validates spacing before and after comma
|
|
5
5
|
* @author Vignesh Anand aka vegetableman.
|
|
@@ -57,7 +57,7 @@ var require_comma_spacing = /* @__PURE__ */ require_rolldown_runtime.t(((exports
|
|
|
57
57
|
create(context) {
|
|
58
58
|
let sourceCode = context.sourceCode, tokensAndComments = sourceCode.tokensAndComments, options = {
|
|
59
59
|
before: context.options[0] ? context.options[0].before : !1,
|
|
60
|
-
after: context.options[0]
|
|
60
|
+
after: !context.options[0] || context.options[0].after
|
|
61
61
|
}, commaTokensToIgnore = [];
|
|
62
62
|
/**
|
|
63
63
|
* Reports a spacing error with an appropriate message.
|
package/rules/comma-style.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/comma-style.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Comma style - enforces comma styles of two types: last and first
|
|
5
5
|
* @author Vignesh Anand aka vegetableman
|
package/rules/complexity.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs"), require_string_utils$1 = require("../common/string-utils.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/complexity.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Counts the cyclomatic complexity of each function of the script. See http://en.wikipedia.org/wiki/Cyclomatic_complexity.
|
|
5
5
|
* Counts the number of if, conditional, for, while, try, switch/case,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/computed-property-spacing.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Disallows or enforces spaces inside computed properties.
|
|
5
5
|
* @author Jamund Ferguson
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs"), require_code_path_utils$1 = require("../common/code-path-utils.cjs"), require_string_utils$1 = require("../common/string-utils.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/consistent-return.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to flag consistent return values
|
|
5
5
|
* @author Nicholas C. Zakas
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/consistent-this.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Rule to enforce consistent naming of "this" context variables
|
|
4
4
|
* @author Raphael Pigulla
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/constructor-super.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview A rule to verify `super()` callings in constructor.
|
|
4
4
|
* @author Toru Nagashima
|
package/rules/curly.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/curly.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to flag statements without curly braces
|
|
5
5
|
* @author Nicholas C. Zakas
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/default-case-last.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Rule to enforce `default` clauses in `switch` statements to be last
|
|
4
4
|
* @author Milos Djermanovic
|
package/rules/default-case.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/default-case.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview require default case in switch statements
|
|
4
4
|
* @author Aliaksei Shytkin
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/default-param-last.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview enforce default parameters to be last
|
|
4
4
|
* @author Chiawen Chen
|
package/rules/dot-location.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/dot-location.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Validates newlines before and after dots
|
|
5
5
|
* @author Greg Cochard
|
package/rules/dot-notation.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs"), require_keywords$1 = require("../common/keywords.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/dot-notation.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to warn about using dot notation instead of square bracket notation when possible.
|
|
5
5
|
* @author Josh Perez
|
package/rules/eol-last.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/eol-last.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Require or disallow newline at the end of files
|
|
4
4
|
* @author Nodeca Team <https://github.com/nodeca>
|
package/rules/eqeqeq.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/eqeqeq.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to flag statements that use != and == instead of !== and ===
|
|
5
5
|
* @author Nicholas C. Zakas
|
package/rules/for-direction.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_eslint_utils$1 = require("../common/eslint-utils.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/for-direction.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview enforce `for` loop update clause moving the counter in the right direction.(for-direction)
|
|
5
5
|
* @author Aladdin-ADD<hh_2013@foxmail.com>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/func-call-spacing.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to control spacing within function calls
|
|
5
5
|
* @author Matt DuVall <http://www.mattduvall.com>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/func-name-matching.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to require function names to match the name of the variable or property to which they are assigned.
|
|
5
5
|
* @author Annie Zhang, Pavel Strashkin
|
package/rules/func-names.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/func-names.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to warn when a function expression does not have a name.
|
|
5
5
|
* @author Kyle T. Nunery
|
package/rules/func-style.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/func-style.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Rule to enforce a particular function style
|
|
4
4
|
* @author Nicholas C. Zakas
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/function-call-argument-newline.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Rule to enforce line breaks between arguments of a function call
|
|
4
4
|
* @author Alexey Gonchar <https://github.com/finico>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/function-paren-newline.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview enforce consistent line breaks inside function parentheses
|
|
5
5
|
* @author Teddy Katz
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/generator-star-spacing.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Rule to check the spacing around the * in generator functions.
|
|
4
4
|
* @author Jamund Ferguson
|
package/rules/getter-return.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs"), require_code_path_utils$1 = require("../common/code-path-utils.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/getter-return.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Enforces that a return statement is present in property getters.
|
|
5
5
|
* @author Aladdin-ADD(hh_2013@foxmail.com)
|
package/rules/global-require.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/global-require.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Rule for disallowing require() outside of the top-level module context
|
|
4
4
|
* @author Jamund Ferguson
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/grouped-accessor-pairs.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to require grouped accessor pairs in object literals and classes
|
|
5
5
|
* @author Milos Djermanovic
|
package/rules/guard-for-in.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/guard-for-in.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Rule to flag for-in loops without if statements inside
|
|
4
4
|
* @author Nicholas C. Zakas
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/handle-callback-err.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Ensure handling of errors when we know they exist.
|
|
4
4
|
* @author Jamund Ferguson
|
package/rules/id-blacklist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
1
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/id-blacklist.js
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview Rule that warns when identifier names that are
|
|
4
4
|
* specified in the configuration are used.
|
package/rules/id-denylist.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/id-denylist.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule that warns when identifier names that are
|
|
5
5
|
* specified in the configuration are used.
|
package/rules/id-length.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), require_ast_utils$1 = require("../common/ast-utils.cjs"), require_string_utils$1 = require("../common/string-utils.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/id-length.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule that warns when identifier names are shorter or longer
|
|
5
5
|
* than the values provided in configuration.
|
package/rules/id-match.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/id-match.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Rule to flag non-matching identifiers
|
|
5
5
|
* @author Matthieu Larcher
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/implicit-arrow-linebreak.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview enforce the location of arrow function bodies
|
|
5
5
|
* @author Sharmila Jesupaul
|
package/rules/indent-legacy.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
//#region ../../node_modules/.pnpm/eslint@10.6.0/node_modules/eslint/lib/rules/indent-legacy.js
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview This option sets a specific tab width for your code
|
|
5
5
|
*
|
|
@@ -318,7 +318,7 @@ var require_indent_legacy = /* @__PURE__ */ require_rolldown_runtime.t(((exports
|
|
|
318
318
|
*/
|
|
319
319
|
function isArgBeforeCalleeNodeMultiline(node) {
|
|
320
320
|
let parent = node.parent;
|
|
321
|
-
return parent.arguments.length >= 2 && parent.arguments[1] === node
|
|
321
|
+
return parent.arguments.length >= 2 && parent.arguments[1] === node && parent.arguments[0].loc.end.line > parent.arguments[0].loc.start.line;
|
|
322
322
|
}
|
|
323
323
|
/**
|
|
324
324
|
* Check to see if the node is a file level IIFE
|