oxlint-plugin-eslint 1.70.0 → 1.71.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.
Files changed (39) hide show
  1. package/README.md +1 -1
  2. package/common/ast-utils.cjs +11 -11
  3. package/common/eslint-utils.cjs +8 -8
  4. package/common/regexpp.cjs +5 -5
  5. package/package.json +1 -1
  6. package/rules/dot-notation.cjs +1 -1
  7. package/rules/global-require.cjs +1 -1
  8. package/rules/id-match.cjs +1 -1
  9. package/rules/indent.cjs +1 -1
  10. package/rules/init-declarations.cjs +1 -1
  11. package/rules/logical-assignment-operators.cjs +1 -1
  12. package/rules/new-cap.cjs +1 -1
  13. package/rules/no-compare-neg-zero.cjs +1 -1
  14. package/rules/no-cond-assign.cjs +1 -1
  15. package/rules/no-const-assign.cjs +1 -1
  16. package/rules/no-constant-binary-expression.cjs +1 -1
  17. package/rules/no-extra-bind.cjs +1 -1
  18. package/rules/no-extra-boolean-cast.cjs +1 -1
  19. package/rules/no-extra-parens.cjs +1 -1
  20. package/rules/no-implicit-globals.cjs +1 -1
  21. package/rules/no-inner-declarations.cjs +2 -2
  22. package/rules/no-loop-func.cjs +1 -1
  23. package/rules/no-new-func.cjs +1 -1
  24. package/rules/no-promise-executor-return.cjs +1 -1
  25. package/rules/no-prototype-builtins.cjs +1 -1
  26. package/rules/no-restricted-globals.cjs +3 -3
  27. package/rules/no-self-compare.cjs +2 -2
  28. package/rules/no-shadow-restricted-names.cjs +1 -1
  29. package/rules/no-shadow.cjs +1 -1
  30. package/rules/no-undef-init.cjs +1 -1
  31. package/rules/no-unneeded-ternary.cjs +1 -1
  32. package/rules/no-unsafe-optional-chaining.cjs +3 -3
  33. package/rules/no-var.cjs +1 -1
  34. package/rules/prefer-numeric-literals.cjs +1 -1
  35. package/rules/prefer-regex-literals.cjs +2 -2
  36. package/rules/preserve-caught-error.cjs +1 -1
  37. package/rules/semi.cjs +2 -2
  38. package/rules/use-isnan.cjs +2 -2
  39. package/rules/valid-typeof.cjs +2 -2
package/README.md CHANGED
@@ -20,7 +20,7 @@ Add to your Oxlint config:
20
20
 
21
21
  ```json
22
22
  {
23
- "jsPlugins": ["oxlint-plugin-eslint"],
23
+ "jsPlugins": [{ "name": "eslint-js", "specifier": "oxlint-plugin-eslint" }],
24
24
  "rules": {
25
25
  "eslint-js/no-restricted-syntax": [
26
26
  "error",
@@ -169,7 +169,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
169
169
  /**
170
170
  * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys
171
171
  */
172
- let KEY_BLACKLIST = new Set([
172
+ let KEY_BLACKLIST = /* @__PURE__ */ new Set([
173
173
  "parent",
174
174
  "leadingComments",
175
175
  "trailingComments"
@@ -5010,23 +5010,23 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
5010
5010
  })), require_ecma_version = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
5011
5011
  module.exports = { LATEST_ECMA_VERSION: 2026 };
5012
5012
  })), require_ast_utils = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
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([
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 = /* @__PURE__ */ new Set([
5014
5014
  "\r\n",
5015
5015
  "\r",
5016
5016
  "\n",
5017
5017
  "\u2028",
5018
5018
  "\u2029"
5019
- ]), STATEMENT_LIST_PARENTS = new Set([
5019
+ ]), STATEMENT_LIST_PARENTS = /* @__PURE__ */ new Set([
5020
5020
  "Program",
5021
5021
  "BlockStatement",
5022
5022
  "StaticBlock",
5023
5023
  "SwitchCase"
5024
- ]), LEXICAL_DECLARATION_KINDS = new Set([
5024
+ ]), LEXICAL_DECLARATION_KINDS = /* @__PURE__ */ new Set([
5025
5025
  "let",
5026
5026
  "const",
5027
5027
  "using",
5028
5028
  "await using"
5029
- ]), DECIMAL_INTEGER_PATTERN = /^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u, OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN = /^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su, LOGICAL_ASSIGNMENT_OPERATORS = new Set([
5029
+ ]), DECIMAL_INTEGER_PATTERN = /^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u, OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN = /^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su, LOGICAL_ASSIGNMENT_OPERATORS = /* @__PURE__ */ new Set([
5030
5030
  "&&=",
5031
5031
  "||=",
5032
5032
  "??="
@@ -5741,11 +5741,11 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
5741
5741
  */
5742
5742
  let needsPrecedingSemicolon;
5743
5743
  {
5744
- let BREAK_OR_CONTINUE = new Set(["BreakStatement", "ContinueStatement"]), DECLARATIONS = new Set([
5744
+ let BREAK_OR_CONTINUE = /* @__PURE__ */ new Set(["BreakStatement", "ContinueStatement"]), DECLARATIONS = /* @__PURE__ */ new Set([
5745
5745
  "ExportAllDeclaration",
5746
5746
  "ExportNamedDeclaration",
5747
5747
  "ImportDeclaration"
5748
- ]), IDENTIFIER_OR_KEYWORD = new Set(["Identifier", "Keyword"]), NODE_TYPES_BY_KEYWORD = {
5748
+ ]), IDENTIFIER_OR_KEYWORD = /* @__PURE__ */ new Set(["Identifier", "Keyword"]), NODE_TYPES_BY_KEYWORD = {
5749
5749
  __proto__: null,
5750
5750
  break: "BreakStatement",
5751
5751
  continue: "ContinueStatement",
@@ -5754,14 +5754,14 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
5754
5754
  else: "IfStatement",
5755
5755
  return: "ReturnStatement",
5756
5756
  yield: "YieldExpression"
5757
- }, PUNCTUATORS = new Set([
5757
+ }, PUNCTUATORS = /* @__PURE__ */ new Set([
5758
5758
  ":",
5759
5759
  ";",
5760
5760
  "{",
5761
5761
  "=>",
5762
5762
  "++",
5763
5763
  "--"
5764
- ]), STATEMENTS = new Set([
5764
+ ]), STATEMENTS = /* @__PURE__ */ new Set([
5765
5765
  "DoWhileStatement",
5766
5766
  "ForInStatement",
5767
5767
  "ForOfStatement",
@@ -5769,7 +5769,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
5769
5769
  "IfStatement",
5770
5770
  "WhileStatement",
5771
5771
  "WithStatement"
5772
- ]), TS_TYPE_NODE_TYPES = new Set([
5772
+ ]), TS_TYPE_NODE_TYPES = /* @__PURE__ */ new Set([
5773
5773
  "TSAsExpression",
5774
5774
  "TSSatisfiesExpression",
5775
5775
  "TSTypeAliasDeclaration",
@@ -6472,7 +6472,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
6472
6472
  } else rightToken = rightValue;
6473
6473
  if (leftToken.type === "Punctuator" || rightToken.type === "Punctuator") {
6474
6474
  if (leftToken.type === "Punctuator" && rightToken.type === "Punctuator") {
6475
- let PLUS_TOKENS = new Set(["+", "++"]), MINUS_TOKENS = new Set(["-", "--"]);
6475
+ let PLUS_TOKENS = /* @__PURE__ */ new Set(["+", "++"]), MINUS_TOKENS = /* @__PURE__ */ new Set(["-", "--"]);
6476
6476
  return !(PLUS_TOKENS.has(leftToken.value) && PLUS_TOKENS.has(rightToken.value) || MINUS_TOKENS.has(leftToken.value) && MINUS_TOKENS.has(rightToken.value));
6477
6477
  }
6478
6478
  return leftToken.type === "Punctuator" && leftToken.value === "/" ? ![
@@ -160,7 +160,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
160
160
  /**
161
161
  * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys
162
162
  */
163
- let KEY_BLACKLIST = new Set([
163
+ let KEY_BLACKLIST = /* @__PURE__ */ new Set([
164
164
  "parent",
165
165
  "leadingComments",
166
166
  "trailingComments"
@@ -412,7 +412,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
412
412
  /** @typedef {import("@typescript-eslint/types").TSESTree.RegExpLiteral} RegExpLiteral */
413
413
  /** @typedef {import("@typescript-eslint/types").TSESTree.BigIntLiteral} BigIntLiteral */
414
414
  /** @typedef {import("@typescript-eslint/types").TSESTree.Literal} Literal */
415
- let globalObject = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}, builtinNames = Object.freeze(new Set(/* @__PURE__ */ "Array.ArrayBuffer.BigInt.BigInt64Array.BigUint64Array.Boolean.DataView.Date.decodeURI.decodeURIComponent.encodeURI.encodeURIComponent.escape.Float32Array.Float64Array.Function.Infinity.Int16Array.Int32Array.Int8Array.isFinite.isNaN.isPrototypeOf.JSON.Map.Math.NaN.Number.Object.parseFloat.parseInt.Promise.Proxy.Reflect.RegExp.Set.String.Symbol.Uint16Array.Uint32Array.Uint8Array.Uint8ClampedArray.undefined.unescape.WeakMap.WeakSet".split("."))), callAllowed = new Set([
415
+ let globalObject = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}, builtinNames = Object.freeze(/* @__PURE__ */ new Set(/* @__PURE__ */ "Array.ArrayBuffer.BigInt.BigInt64Array.BigUint64Array.Boolean.DataView.Date.decodeURI.decodeURIComponent.encodeURI.encodeURIComponent.escape.Float32Array.Float64Array.Function.Infinity.Int16Array.Int32Array.Int8Array.isFinite.isNaN.isPrototypeOf.JSON.Map.Math.NaN.Number.Object.parseFloat.parseInt.Promise.Proxy.Reflect.RegExp.Set.String.Symbol.Uint16Array.Uint32Array.Uint8Array.Uint8ClampedArray.undefined.unescape.WeakMap.WeakSet".split("."))), callAllowed = new Set([
416
416
  Array.isArray,
417
417
  Array.of,
418
418
  Array.prototype.at,
@@ -507,13 +507,13 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
507
507
  Symbol.for,
508
508
  Symbol.keyFor,
509
509
  unescape
510
- ].filter((f) => typeof f == "function")), callPassThrough = new Set([
510
+ ].filter((f) => typeof f == "function")), callPassThrough = /* @__PURE__ */ new Set([
511
511
  Object.freeze,
512
512
  Object.preventExtensions,
513
513
  Object.seal
514
514
  ]), getterAllowed = [
515
- [Map, new Set(["size"])],
516
- [RegExp, new Set([
515
+ [Map, /* @__PURE__ */ new Set(["size"])],
516
+ [RegExp, /* @__PURE__ */ new Set([
517
517
  "dotAll",
518
518
  "flags",
519
519
  "global",
@@ -524,7 +524,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
524
524
  "sticky",
525
525
  "unicode"
526
526
  ])],
527
- [Set, new Set(["size"])]
527
+ [Set, /* @__PURE__ */ new Set(["size"])]
528
528
  ];
529
529
  /**
530
530
  * Get the property descriptor.
@@ -955,7 +955,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
955
955
  /** @typedef {import("estree").Property} Property */
956
956
  /** @typedef {import("estree").PropertyDefinition} PropertyDefinition */
957
957
  /** @typedef {import("estree").UnaryExpression} UnaryExpression */
958
- let typeConversionBinaryOps = Object.freeze(new Set([
958
+ let typeConversionBinaryOps = Object.freeze(/* @__PURE__ */ new Set([
959
959
  "==",
960
960
  "!=",
961
961
  "<",
@@ -974,7 +974,7 @@ var require_eslint_visitor_keys = /* @__PURE__ */ require_rolldown_runtime.t(((e
974
974
  "^",
975
975
  "&",
976
976
  "in"
977
- ])), typeConversionUnaryOps = Object.freeze(new Set([
977
+ ])), typeConversionUnaryOps = Object.freeze(/* @__PURE__ */ new Set([
978
978
  "-",
979
979
  "+",
980
980
  "!",
@@ -64,7 +64,7 @@ var require_regexpp = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((expo
64
64
  return this._set2026 ??= new Set(this._raw2026.split(" "));
65
65
  }
66
66
  };
67
- let gcNameSet = new Set(["General_Category", "gc"]), scNameSet = new Set([
67
+ let gcNameSet = /* @__PURE__ */ new Set(["General_Category", "gc"]), scNameSet = /* @__PURE__ */ new Set([
68
68
  "Script",
69
69
  "Script_Extensions",
70
70
  "sc",
@@ -253,7 +253,7 @@ var require_regexpp = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((expo
253
253
  } else srcCtx.kind === "pattern" && (source = `: /${srcCtx.source.slice(srcCtx.start, srcCtx.end)}/${`${flags.unicode ? "u" : ""}${flags.unicodeSets ? "v" : ""}`}`);
254
254
  return new RegExpSyntaxError(`Invalid regular expression${source}: ${message}`, index);
255
255
  }
256
- let SYNTAX_CHARACTER = new Set([
256
+ let SYNTAX_CHARACTER = /* @__PURE__ */ new Set([
257
257
  94,
258
258
  36,
259
259
  92,
@@ -268,7 +268,7 @@ var require_regexpp = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((expo
268
268
  123,
269
269
  125,
270
270
  124
271
- ]), CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER = new Set([
271
+ ]), CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER = /* @__PURE__ */ new Set([
272
272
  38,
273
273
  33,
274
274
  35,
@@ -288,7 +288,7 @@ var require_regexpp = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((expo
288
288
  94,
289
289
  96,
290
290
  126
291
- ]), CLASS_SET_SYNTAX_CHARACTER = new Set([
291
+ ]), CLASS_SET_SYNTAX_CHARACTER = /* @__PURE__ */ new Set([
292
292
  40,
293
293
  41,
294
294
  91,
@@ -299,7 +299,7 @@ var require_regexpp = /* @__PURE__ */ require("./rolldown-runtime.cjs").t(((expo
299
299
  45,
300
300
  92,
301
301
  124
302
- ]), CLASS_SET_RESERVED_PUNCTUATOR = new Set([
302
+ ]), CLASS_SET_RESERVED_PUNCTUATOR = /* @__PURE__ */ new Set([
303
303
  38,
304
304
  45,
305
305
  33,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-plugin-eslint",
3
- "version": "1.70.0",
3
+ "version": "1.71.0",
4
4
  "description": "ESLint's built-in rules as an Oxlint plugin",
5
5
  "keywords": [
6
6
  "eslint",
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Josh Perez
6
6
  */
7
7
  var require_dot_notation = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), keywords = require_keywords$1.t(), validIdentifier = /^[a-zA-Z_$][\w$]*$/u, literalTypesToCheck = new Set(["string", "boolean"]);
8
+ let astUtils = require_ast_utils$1.t(), keywords = require_keywords$1.t(), validIdentifier = /^[a-zA-Z_$][\w$]*$/u, literalTypesToCheck = /* @__PURE__ */ new Set(["string", "boolean"]);
9
9
  /** @type {import('../types').Rule.RuleModule} */
10
10
  module.exports = {
11
11
  meta: {
@@ -5,7 +5,7 @@
5
5
  * @deprecated in ESLint v7.0.0
6
6
  */
7
7
  var require_global_require = /* @__PURE__ */ require("../common/rolldown-runtime.cjs").t(((exports, module) => {
8
- let ACCEPTABLE_PARENTS = new Set([
8
+ let ACCEPTABLE_PARENTS = /* @__PURE__ */ new Set([
9
9
  "AssignmentExpression",
10
10
  "VariableDeclarator",
11
11
  "MemberExpression",
@@ -38,7 +38,7 @@ var require_id_match = /* @__PURE__ */ require_rolldown_runtime.t(((exports, mod
38
38
  }
39
39
  },
40
40
  create(context) {
41
- let [pattern, { classFields: checkClassFields, ignoreDestructuring, onlyDeclarations, properties: checkProperties }] = context.options, regexp = new RegExp(pattern, "u"), sourceCode = context.sourceCode, globalScope, reportedNodes = /* @__PURE__ */ new Set(), ALLOWED_PARENT_TYPES = new Set(["CallExpression", "NewExpression"]), DECLARATION_TYPES = new Set(["FunctionDeclaration", "VariableDeclarator"]), IMPORT_TYPES = new Set([
41
+ let [pattern, { classFields: checkClassFields, ignoreDestructuring, onlyDeclarations, properties: checkProperties }] = context.options, regexp = new RegExp(pattern, "u"), sourceCode = context.sourceCode, globalScope, reportedNodes = /* @__PURE__ */ new Set(), ALLOWED_PARENT_TYPES = /* @__PURE__ */ new Set(["CallExpression", "NewExpression"]), DECLARATION_TYPES = /* @__PURE__ */ new Set(["FunctionDeclaration", "VariableDeclarator"]), IMPORT_TYPES = /* @__PURE__ */ new Set([
42
42
  "ImportSpecifier",
43
43
  "ImportNamespaceSpecifier",
44
44
  "ImportDefaultSpecifier"
package/rules/indent.cjs CHANGED
@@ -9,7 +9,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
9
9
  * @deprecated in ESLint v8.53.0
10
10
  */
11
11
  var require_indent = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
12
- let astUtils = require_ast_utils$1.t(), KNOWN_NODES = new Set(/* @__PURE__ */ "AssignmentExpression.AssignmentPattern.ArrayExpression.ArrayPattern.ArrowFunctionExpression.AwaitExpression.BlockStatement.BinaryExpression.BreakStatement.CallExpression.CatchClause.ChainExpression.ClassBody.ClassDeclaration.ClassExpression.ConditionalExpression.ContinueStatement.DoWhileStatement.DebuggerStatement.EmptyStatement.ExperimentalRestProperty.ExperimentalSpreadProperty.ExpressionStatement.ForStatement.ForInStatement.ForOfStatement.FunctionDeclaration.FunctionExpression.Identifier.IfStatement.Literal.LabeledStatement.LogicalExpression.MemberExpression.MetaProperty.MethodDefinition.NewExpression.ObjectExpression.ObjectPattern.PrivateIdentifier.Program.Property.PropertyDefinition.RestElement.ReturnStatement.SequenceExpression.SpreadElement.StaticBlock.Super.SwitchCase.SwitchStatement.TaggedTemplateExpression.TemplateElement.TemplateLiteral.ThisExpression.ThrowStatement.TryStatement.UnaryExpression.UpdateExpression.VariableDeclaration.VariableDeclarator.WhileStatement.WithStatement.YieldExpression.JSXFragment.JSXOpeningFragment.JSXClosingFragment.JSXIdentifier.JSXNamespacedName.JSXMemberExpression.JSXEmptyExpression.JSXExpressionContainer.JSXElement.JSXClosingElement.JSXOpeningElement.JSXAttribute.JSXSpreadAttribute.JSXText.ExportDefaultDeclaration.ExportNamedDeclaration.ExportAllDeclaration.ExportSpecifier.ImportDeclaration.ImportSpecifier.ImportDefaultSpecifier.ImportNamespaceSpecifier.ImportExpression".split("."));
12
+ let astUtils = require_ast_utils$1.t(), KNOWN_NODES = /* @__PURE__ */ new Set(/* @__PURE__ */ "AssignmentExpression.AssignmentPattern.ArrayExpression.ArrayPattern.ArrowFunctionExpression.AwaitExpression.BlockStatement.BinaryExpression.BreakStatement.CallExpression.CatchClause.ChainExpression.ClassBody.ClassDeclaration.ClassExpression.ConditionalExpression.ContinueStatement.DoWhileStatement.DebuggerStatement.EmptyStatement.ExperimentalRestProperty.ExperimentalSpreadProperty.ExpressionStatement.ForStatement.ForInStatement.ForOfStatement.FunctionDeclaration.FunctionExpression.Identifier.IfStatement.Literal.LabeledStatement.LogicalExpression.MemberExpression.MetaProperty.MethodDefinition.NewExpression.ObjectExpression.ObjectPattern.PrivateIdentifier.Program.Property.PropertyDefinition.RestElement.ReturnStatement.SequenceExpression.SpreadElement.StaticBlock.Super.SwitchCase.SwitchStatement.TaggedTemplateExpression.TemplateElement.TemplateLiteral.ThisExpression.ThrowStatement.TryStatement.UnaryExpression.UpdateExpression.VariableDeclaration.VariableDeclarator.WhileStatement.WithStatement.YieldExpression.JSXFragment.JSXOpeningFragment.JSXClosingFragment.JSXIdentifier.JSXNamespacedName.JSXMemberExpression.JSXEmptyExpression.JSXExpressionContainer.JSXElement.JSXClosingElement.JSXOpeningElement.JSXAttribute.JSXSpreadAttribute.JSXText.ExportDefaultDeclaration.ExportNamedDeclaration.ExportAllDeclaration.ExportSpecifier.ImportDeclaration.ImportSpecifier.ImportDefaultSpecifier.ImportNamespaceSpecifier.ImportExpression".split("."));
13
13
  /**
14
14
  * A mutable map that stores (key, value) pairs. The keys are numeric indices, and must be unique.
15
15
  * This is intended to be a generic wrapper around a map with non-negative integer keys, so that the underlying implementation
@@ -4,7 +4,7 @@
4
4
  * @author Colin Ihrig
5
5
  */
6
6
  var require_init_declarations = /* @__PURE__ */ require("../common/rolldown-runtime.cjs").t(((exports, module) => {
7
- let CONSTANT_BINDINGS = new Set([
7
+ let CONSTANT_BINDINGS = /* @__PURE__ */ new Set([
8
8
  "const",
9
9
  "using",
10
10
  "await using"
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Daniel Martens
6
6
  */
7
7
  var require_logical_assignment_operators = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), baseTypes = new Set([
8
+ let astUtils = require_ast_utils$1.t(), baseTypes = /* @__PURE__ */ new Set([
9
9
  "Identifier",
10
10
  "Super",
11
11
  "ThisExpression"
package/rules/new-cap.cjs CHANGED
@@ -33,7 +33,7 @@ var require_new_cap = /* @__PURE__ */ require_rolldown_runtime.t(((exports, modu
33
33
  * @returns {Object} Object with cap is new exceptions.
34
34
  */
35
35
  function calculateCapIsNewExceptions(config) {
36
- return Array.from(new Set([...config.capIsNewExceptions, ...CAPS_ALLOWED])).reduce(invert, {});
36
+ return Array.from(/* @__PURE__ */ new Set([...config.capIsNewExceptions, ...CAPS_ALLOWED])).reduce(invert, {});
37
37
  }
38
38
  /** @type {import('../types').Rule.RuleModule} */
39
39
  module.exports = {
@@ -26,7 +26,7 @@ var require_no_compare_neg_zero = /* @__PURE__ */ require("../common/rolldown-ru
26
26
  function isNegZero(node) {
27
27
  return node.type === "UnaryExpression" && node.operator === "-" && node.argument.type === "Literal" && node.argument.value === 0;
28
28
  }
29
- let OPERATORS_TO_CHECK = new Set([
29
+ let OPERATORS_TO_CHECK = /* @__PURE__ */ new Set([
30
30
  ">",
31
31
  ">=",
32
32
  "<",
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Stephen Murray <spmurrayzzz>
6
6
  */
7
7
  var require_no_cond_assign = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), TEST_CONDITION_PARENT_TYPES = new Set([
8
+ let astUtils = require_ast_utils$1.t(), TEST_CONDITION_PARENT_TYPES = /* @__PURE__ */ new Set([
9
9
  "IfStatement",
10
10
  "WhileStatement",
11
11
  "DoWhileStatement",
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Toru Nagashima
6
6
  */
7
7
  var require_no_const_assign = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), CONSTANT_BINDINGS = new Set([
8
+ let astUtils = require_ast_utils$1.t(), CONSTANT_BINDINGS = /* @__PURE__ */ new Set([
9
9
  "const",
10
10
  "using",
11
11
  "await using"
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Jordan Eldredge <https://jordaneldredge.com>
6
6
  */
7
7
  var require_no_constant_binary_expression = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let { isNullLiteral, isConstant, isReferenceToGlobalVariable, isLogicalAssignmentOperator, ECMASCRIPT_GLOBALS } = require_ast_utils$1.t(), NUMERIC_OR_STRING_BINARY_OPERATORS = new Set([
8
+ let { isNullLiteral, isConstant, isReferenceToGlobalVariable, isLogicalAssignmentOperator, ECMASCRIPT_GLOBALS } = require_ast_utils$1.t(), NUMERIC_OR_STRING_BINARY_OPERATORS = /* @__PURE__ */ new Set([
9
9
  "+",
10
10
  "-",
11
11
  "*",
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Bence Dányi <bence@danyi.me>
6
6
  */
7
7
  var require_no_extra_bind = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), SIDE_EFFECT_FREE_NODE_TYPES = new Set([
8
+ let astUtils = require_ast_utils$1.t(), SIDE_EFFECT_FREE_NODE_TYPES = /* @__PURE__ */ new Set([
9
9
  "Literal",
10
10
  "Identifier",
11
11
  "ThisExpression",
@@ -33,7 +33,7 @@ var require_no_extra_boolean_cast = /* @__PURE__ */ require_rolldown_runtime.t((
33
33
  }
34
34
  },
35
35
  create(context) {
36
- let sourceCode = context.sourceCode, [{ enforceForLogicalOperands, enforceForInnerExpressions }] = context.options, BOOLEAN_NODE_TYPES = new Set([
36
+ let sourceCode = context.sourceCode, [{ enforceForLogicalOperands, enforceForInnerExpressions }] = context.options, BOOLEAN_NODE_TYPES = /* @__PURE__ */ new Set([
37
37
  "IfStatement",
38
38
  "DoWhileStatement",
39
39
  "WhileStatement",
@@ -513,7 +513,7 @@ var require_no_extra_parens = /* @__PURE__ */ require_rolldown_runtime.t(((expor
513
513
  CallExpression: checkCallNew,
514
514
  ConditionalExpression(node) {
515
515
  if (isReturnAssignException(node)) return;
516
- let availableTypes = new Set(["BinaryExpression", "LogicalExpression"]);
516
+ let availableTypes = /* @__PURE__ */ new Set(["BinaryExpression", "LogicalExpression"]);
517
517
  !(EXCEPT_COND_TERNARY && availableTypes.has(node.test.type)) && !isCondAssignException(node) && hasExcessParensWithPrecedence(node.test, precedence({
518
518
  type: "LogicalExpression",
519
519
  operator: "||"
@@ -4,7 +4,7 @@
4
4
  * @author Joshua Peek
5
5
  */
6
6
  var require_no_implicit_globals = /* @__PURE__ */ require("../common/rolldown-runtime.cjs").t(((exports, module) => {
7
- let ASSIGNMENT_NODES = new Set([
7
+ let ASSIGNMENT_NODES = /* @__PURE__ */ new Set([
8
8
  "AssignmentExpression",
9
9
  "ForInStatement",
10
10
  "ForOfStatement"
@@ -5,12 +5,12 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Brandon Mills
6
6
  */
7
7
  var require_no_inner_declarations = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), validParent = new Set([
8
+ let astUtils = require_ast_utils$1.t(), validParent = /* @__PURE__ */ new Set([
9
9
  "Program",
10
10
  "StaticBlock",
11
11
  "ExportNamedDeclaration",
12
12
  "ExportDefaultDeclaration"
13
- ]), validBlockStatementParent = new Set([
13
+ ]), validBlockStatementParent = /* @__PURE__ */ new Set([
14
14
  "FunctionDeclaration",
15
15
  "FunctionExpression",
16
16
  "ArrowFunctionExpression"
@@ -5,7 +5,7 @@
5
5
  */
6
6
  var require_no_loop_func = /* @__PURE__ */ require("../common/rolldown-runtime.cjs").t(((exports, module) => {
7
7
  /** @typedef {import("eslint-scope").Reference} Reference */
8
- let CONSTANT_BINDINGS = new Set([
8
+ let CONSTANT_BINDINGS = /* @__PURE__ */ new Set([
9
9
  "const",
10
10
  "using",
11
11
  "await using"
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Ilya Volodin
6
6
  */
7
7
  var require_no_new_func = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), callMethods = new Set([
8
+ let astUtils = require_ast_utils$1.t(), callMethods = /* @__PURE__ */ new Set([
9
9
  "apply",
10
10
  "bind",
11
11
  "call"
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Milos Djermanovic
6
6
  */
7
7
  var require_no_promise_executor_return = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), functionTypesToCheck = new Set(["ArrowFunctionExpression", "FunctionExpression"]);
8
+ let astUtils = require_ast_utils$1.t(), functionTypesToCheck = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "FunctionExpression"]);
9
9
  /**
10
10
  * Determines whether the given function node is used as a Promise executor.
11
11
  * @param {ASTNode} node The node to check.
@@ -40,7 +40,7 @@ var require_no_prototype_builtins = /* @__PURE__ */ require_rolldown_runtime.t((
40
40
  }
41
41
  },
42
42
  create(context) {
43
- let DISALLOWED_PROPS = new Set([
43
+ let DISALLOWED_PROPS = /* @__PURE__ */ new Set([
44
44
  "hasOwnProperty",
45
45
  "isPrototypeOf",
46
46
  "propertyIsEnumerable"
@@ -5,13 +5,13 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Benoît Zugmeyer
6
6
  */
7
7
  var require_no_restricted_globals = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), TYPE_NODES = new Set([
8
+ let astUtils = require_ast_utils$1.t(), TYPE_NODES = /* @__PURE__ */ new Set([
9
9
  "TSTypeReference",
10
10
  "TSInterfaceHeritage",
11
11
  "TSClassImplements",
12
12
  "TSTypeQuery",
13
13
  "TSQualifiedName"
14
- ]), GLOBAL_OBJECTS = new Set([
14
+ ]), GLOBAL_OBJECTS = /* @__PURE__ */ new Set([
15
15
  "globalThis",
16
16
  "self",
17
17
  "window"
@@ -63,7 +63,7 @@ var require_no_restricted_globals = /* @__PURE__ */ require_rolldown_runtime.t((
63
63
  }
64
64
  },
65
65
  create(context) {
66
- let { sourceCode, options } = context, isGlobalsObject = typeof options[0] == "object" && Object.hasOwn(options[0], "globals"), restrictedGlobals = isGlobalsObject ? options[0].globals : options, checkGlobalObject = isGlobalsObject ? options[0].checkGlobalObject : !1, userGlobalObjects = isGlobalsObject && options[0].globalObjects || [], globalObjects = new Set([...GLOBAL_OBJECTS, ...userGlobalObjects]);
66
+ let { sourceCode, options } = context, isGlobalsObject = typeof options[0] == "object" && Object.hasOwn(options[0], "globals"), restrictedGlobals = isGlobalsObject ? options[0].globals : options, checkGlobalObject = isGlobalsObject ? options[0].checkGlobalObject : !1, userGlobalObjects = isGlobalsObject && options[0].globalObjects || [], globalObjects = /* @__PURE__ */ new Set([...GLOBAL_OBJECTS, ...userGlobalObjects]);
67
67
  if (restrictedGlobals.length === 0) return {};
68
68
  let restrictedGlobalMessages = restrictedGlobals.reduce((memo, option) => (typeof option == "string" ? memo[option] = null : memo[option.name] = option.message, memo), {});
69
69
  /**
@@ -30,7 +30,7 @@ var require_no_self_compare = /* @__PURE__ */ require("../common/rolldown-runtim
30
30
  return tokensA.length === tokensB.length && tokensA.every((token, index) => token.type === tokensB[index].type && token.value === tokensB[index].value);
31
31
  }
32
32
  return { BinaryExpression(node) {
33
- new Set([
33
+ (/* @__PURE__ */ new Set([
34
34
  "===",
35
35
  "==",
36
36
  "!==",
@@ -39,7 +39,7 @@ var require_no_self_compare = /* @__PURE__ */ require("../common/rolldown-runtim
39
39
  "<",
40
40
  ">=",
41
41
  "<="
42
- ]).has(node.operator) && hasSameTokens(node.left, node.right) && context.report({
42
+ ])).has(node.operator) && hasSameTokens(node.left, node.right) && context.report({
43
43
  node,
44
44
  messageId: "comparingToSelf"
45
45
  });
@@ -32,7 +32,7 @@ var require_no_shadow_restricted_names = /* @__PURE__ */ require("../common/roll
32
32
  messages: { shadowingRestrictedName: "Shadowing of global property '{{name}}'." }
33
33
  },
34
34
  create(context) {
35
- let [{ reportGlobalThis }] = context.options, RESTRICTED = new Set([
35
+ let [{ reportGlobalThis }] = context.options, RESTRICTED = /* @__PURE__ */ new Set([
36
36
  "undefined",
37
37
  "NaN",
38
38
  "Infinity",
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Ilya Volodin
6
6
  */
7
7
  var require_no_shadow = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), FUNC_EXPR_NODE_TYPES = new Set(["ArrowFunctionExpression", "FunctionExpression"]), CALL_EXPR_NODE_TYPE = new Set(["CallExpression"]), FOR_IN_OF_TYPE = /^For(?:In|Of)Statement$/u, SENTINEL_TYPE = /^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u, TYPES_HOISTED_NODES = new Set(["TSInterfaceDeclaration", "TSTypeAliasDeclaration"]), ALLOWED_FUNCTION_VARIABLE_DEF_TYPES = new Set([
8
+ let astUtils = require_ast_utils$1.t(), FUNC_EXPR_NODE_TYPES = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "FunctionExpression"]), CALL_EXPR_NODE_TYPE = /* @__PURE__ */ new Set(["CallExpression"]), FOR_IN_OF_TYPE = /^For(?:In|Of)Statement$/u, SENTINEL_TYPE = /^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u, TYPES_HOISTED_NODES = /* @__PURE__ */ new Set(["TSInterfaceDeclaration", "TSTypeAliasDeclaration"]), ALLOWED_FUNCTION_VARIABLE_DEF_TYPES = /* @__PURE__ */ new Set([
9
9
  "TSCallSignatureDeclaration",
10
10
  "TSFunctionType",
11
11
  "TSMethodSignature",
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Ilya Volodin
6
6
  */
7
7
  var require_no_undef_init = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), CONSTANT_BINDINGS = new Set([
8
+ let astUtils = require_ast_utils$1.t(), CONSTANT_BINDINGS = /* @__PURE__ */ new Set([
9
9
  "const",
10
10
  "using",
11
11
  "await using"
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Gyandeep Singh
6
6
  */
7
7
  var require_no_unneeded_ternary = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), BOOLEAN_OPERATORS = new Set([
8
+ let astUtils = require_ast_utils$1.t(), BOOLEAN_OPERATORS = /* @__PURE__ */ new Set([
9
9
  "==",
10
10
  "===",
11
11
  "!=",
@@ -4,21 +4,21 @@
4
4
  * @author Yeon JuAn
5
5
  */
6
6
  var require_no_unsafe_optional_chaining = /* @__PURE__ */ require("../common/rolldown-runtime.cjs").t(((exports, module) => {
7
- let UNSAFE_ARITHMETIC_OPERATORS = new Set([
7
+ let UNSAFE_ARITHMETIC_OPERATORS = /* @__PURE__ */ new Set([
8
8
  "+",
9
9
  "-",
10
10
  "/",
11
11
  "*",
12
12
  "%",
13
13
  "**"
14
- ]), UNSAFE_ASSIGNMENT_OPERATORS = new Set([
14
+ ]), UNSAFE_ASSIGNMENT_OPERATORS = /* @__PURE__ */ new Set([
15
15
  "+=",
16
16
  "-=",
17
17
  "/=",
18
18
  "*=",
19
19
  "%=",
20
20
  "**="
21
- ]), UNSAFE_RELATIONAL_OPERATORS = new Set(["in", "instanceof"]);
21
+ ]), UNSAFE_RELATIONAL_OPERATORS = /* @__PURE__ */ new Set(["in", "instanceof"]);
22
22
  /**
23
23
  * Checks whether a node is a destructuring pattern or not
24
24
  * @param {ASTNode} node node to check
package/rules/no-var.cjs CHANGED
@@ -221,7 +221,7 @@ var require_no_var = /* @__PURE__ */ require_rolldown_runtime.t(((exports, modul
221
221
  * @returns {boolean} `true` if it can fix the node.
222
222
  */
223
223
  function canFix(node) {
224
- let variables = sourceCode.getDeclaredVariables(node), scopeNode = getScopeNode(node), parentStatementList = new Set([...astUtils.STATEMENT_LIST_PARENTS, "TSModuleBlock"]);
224
+ let variables = sourceCode.getDeclaredVariables(node), scopeNode = getScopeNode(node), parentStatementList = /* @__PURE__ */ new Set([...astUtils.STATEMENT_LIST_PARENTS, "TSModuleBlock"]);
225
225
  return !(node.parent.type === "SwitchCase" || node.declarations.some(hasSelfReferenceInTDZ) || variables.some(isGlobal) || variables.some(isRedeclared) || variables.some(isUsedFromOutsideOf(scopeNode)) || variables.some(hasNameDisallowedForLetDeclarations) || variables.some(hasReferenceBeforeDeclaration) || astUtils.isInLoop(node) && (variables.some(isReferencedInClosure) || !isLoopAssignee(node) && !isDeclarationInitialized(node)) || !isLoopAssignee(node) && !(node.parent.type === "ForStatement" && node.parent.init === node) && !parentStatementList.has(node.parent.type));
226
226
  }
227
227
  /**
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Annie Zhang, Henry Zhu
6
6
  */
7
7
  var require_prefer_numeric_literals = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), radixMap = new Map([
8
+ let astUtils = require_ast_utils$1.t(), radixMap = /* @__PURE__ */ new Map([
9
9
  [2, {
10
10
  system: "binary",
11
11
  literalPrefix: "0b"
@@ -22,7 +22,7 @@ var require_prefer_regex_literals = /* @__PURE__ */ require_rolldown_runtime.t((
22
22
  function isRegexLiteral(node) {
23
23
  return node.type === "Literal" && Object.hasOwn(node, "regex");
24
24
  }
25
- let validPrecedingTokens = new Set(/* @__PURE__ */ "();)[),)=)+)*)-)?)~)%)**)!)typeof)instanceof)&&)||)??)return)...)delete)void)in)<)>)<=)>=)==)===)!=)!==)<<)>>)>>>)&)|)^):){)=>)*=)<<=)>>=)>>>=)^=)|=)&=)??=)||=)&&=)**=)+=)-=)/=)%=)/)do)break)continue)debugger)case)throw".split(")"));
25
+ let validPrecedingTokens = /* @__PURE__ */ new Set(/* @__PURE__ */ "();)[),)=)+)*)-)?)~)%)**)!)typeof)instanceof)&&)||)??)return)...)delete)void)in)<)>)<=)>=)==)===)!=)!==)<<)>>)>>>)&)|)^):){)=>)*=)<<=)>>=)>>>=)^=)|=)&=)??=)||=)&&=)**=)+=)-=)/=)%=)/)do)break)continue)debugger)case)throw".split(")"));
26
26
  /** @type {import('../types').Rule.RuleModule} */
27
27
  module.exports = {
28
28
  meta: {
@@ -156,7 +156,7 @@ var require_prefer_regex_literals = /* @__PURE__ */ require_rolldown_runtime.t((
156
156
  * @returns {string} The merged regex flags.
157
157
  */
158
158
  function mergeRegexFlags(flagsA, flagsB) {
159
- return [...new Set([...flagsA, ...flagsB])].join("");
159
+ return [.../* @__PURE__ */ new Set([...flagsA, ...flagsB])].join("");
160
160
  }
161
161
  /**
162
162
  * Checks whether a give node can be fixed to the given regex pattern and flags.
@@ -5,7 +5,7 @@ const require_rolldown_runtime = require("../common/rolldown-runtime.cjs"), requ
5
5
  * @author Amnish Singh Arora
6
6
  */
7
7
  var require_preserve_caught_error = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module) => {
8
- let astUtils = require_ast_utils$1.t(), UNKNOWN_CAUSE = Symbol("unknown_cause"), BUILT_IN_ERROR_TYPES = new Set([
8
+ let astUtils = require_ast_utils$1.t(), UNKNOWN_CAUSE = Symbol("unknown_cause"), BUILT_IN_ERROR_TYPES = /* @__PURE__ */ new Set([
9
9
  "Error",
10
10
  "EvalError",
11
11
  "RangeError",
package/rules/semi.cjs CHANGED
@@ -67,11 +67,11 @@ var require_semi = /* @__PURE__ */ require_rolldown_runtime.t(((exports, module)
67
67
  }
68
68
  },
69
69
  create(context) {
70
- let OPT_OUT_PATTERN = /^[-[(/+`]/u, unsafeClassFieldNames = new Set([
70
+ let OPT_OUT_PATTERN = /^[-[(/+`]/u, unsafeClassFieldNames = /* @__PURE__ */ new Set([
71
71
  "get",
72
72
  "set",
73
73
  "static"
74
- ]), unsafeClassFieldFollowers = new Set([
74
+ ]), unsafeClassFieldFollowers = /* @__PURE__ */ new Set([
75
75
  "*",
76
76
  "in",
77
77
  "instanceof"
@@ -49,12 +49,12 @@ var require_use_isnan = /* @__PURE__ */ require_rolldown_runtime.t(((exports, mo
49
49
  }
50
50
  },
51
51
  create(context) {
52
- let [{ enforceForIndexOf, enforceForSwitchCase }] = context.options, sourceCode = context.sourceCode, fixableOperators = new Set([
52
+ let [{ enforceForIndexOf, enforceForSwitchCase }] = context.options, sourceCode = context.sourceCode, fixableOperators = /* @__PURE__ */ new Set([
53
53
  "==",
54
54
  "===",
55
55
  "!=",
56
56
  "!=="
57
- ]), castableOperators = new Set(["==", "!="]);
57
+ ]), castableOperators = /* @__PURE__ */ new Set(["==", "!="]);
58
58
  /**
59
59
  * Get a fixer for a binary expression that compares to NaN.
60
60
  * @param {ASTNode} node The node to fix.
@@ -29,7 +29,7 @@ var require_valid_typeof = /* @__PURE__ */ require_rolldown_runtime.t(((exports,
29
29
  }
30
30
  },
31
31
  create(context) {
32
- let VALID_TYPES = new Set([
32
+ let VALID_TYPES = /* @__PURE__ */ new Set([
33
33
  "symbol",
34
34
  "undefined",
35
35
  "object",
@@ -38,7 +38,7 @@ var require_valid_typeof = /* @__PURE__ */ require_rolldown_runtime.t(((exports,
38
38
  "string",
39
39
  "function",
40
40
  "bigint"
41
- ]), OPERATORS = new Set([
41
+ ]), OPERATORS = /* @__PURE__ */ new Set([
42
42
  "==",
43
43
  "===",
44
44
  "!=",