eslint-linter-browserify 10.3.0 → 10.4.1

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 (5) hide show
  1. package/linter.cjs +463 -376
  2. package/linter.js +463 -376
  3. package/linter.min.js +3 -3
  4. package/linter.mjs +463 -376
  5. package/package.json +4 -4
package/linter.cjs CHANGED
@@ -520,11 +520,11 @@ var hasRequiredEstraverse;
520
520
  function requireEstraverse () {
521
521
  if (hasRequiredEstraverse) return estraverse;
522
522
  hasRequiredEstraverse = 1;
523
- (function (exports$1) {
523
+ (function (exports) {
524
524
  /*jslint vars:false, bitwise:true*/
525
525
  /*jshint indent:4*/
526
526
  /*global exports:true*/
527
- (function clone(exports$1) {
527
+ (function clone(exports) {
528
528
 
529
529
  var Syntax,
530
530
  VisitorOption,
@@ -1289,17 +1289,17 @@ function requireEstraverse () {
1289
1289
  return tree;
1290
1290
  }
1291
1291
 
1292
- exports$1.Syntax = Syntax;
1293
- exports$1.traverse = traverse;
1294
- exports$1.replace = replace;
1295
- exports$1.attachComments = attachComments;
1296
- exports$1.VisitorKeys = VisitorKeys;
1297
- exports$1.VisitorOption = VisitorOption;
1298
- exports$1.Controller = Controller;
1299
- exports$1.cloneEnvironment = function () { return clone({}); };
1300
-
1301
- return exports$1;
1302
- }(exports$1));
1292
+ exports.Syntax = Syntax;
1293
+ exports.traverse = traverse;
1294
+ exports.replace = replace;
1295
+ exports.attachComments = attachComments;
1296
+ exports.VisitorKeys = VisitorKeys;
1297
+ exports.VisitorOption = VisitorOption;
1298
+ exports.Controller = Controller;
1299
+ exports.cloneEnvironment = function () { return clone({}); };
1300
+
1301
+ return exports;
1302
+ }(exports));
1303
1303
  /* vim: set sw=4 ts=4 et tw=80 : */
1304
1304
  } (estraverse));
1305
1305
  return estraverse;
@@ -4216,7 +4216,7 @@ function requireEslintVisitorKeys$2 () {
4216
4216
  return eslintVisitorKeys$2;
4217
4217
  }
4218
4218
 
4219
- var version = "10.3.0";
4219
+ var version = "10.4.1";
4220
4220
  var require$$3$1 = {
4221
4221
  version: version};
4222
4222
 
@@ -4700,17 +4700,17 @@ var hasRequiredBrowser;
4700
4700
  function requireBrowser () {
4701
4701
  if (hasRequiredBrowser) return browser.exports;
4702
4702
  hasRequiredBrowser = 1;
4703
- (function (module, exports$1) {
4703
+ (function (module, exports) {
4704
4704
  /**
4705
4705
  * This is the web browser implementation of `debug()`.
4706
4706
  */
4707
4707
 
4708
- exports$1.formatArgs = formatArgs;
4709
- exports$1.save = save;
4710
- exports$1.load = load;
4711
- exports$1.useColors = useColors;
4712
- exports$1.storage = localstorage();
4713
- exports$1.destroy = (() => {
4708
+ exports.formatArgs = formatArgs;
4709
+ exports.save = save;
4710
+ exports.load = load;
4711
+ exports.useColors = useColors;
4712
+ exports.storage = localstorage();
4713
+ exports.destroy = (() => {
4714
4714
  let warned = false;
4715
4715
 
4716
4716
  return () => {
@@ -4725,7 +4725,7 @@ function requireBrowser () {
4725
4725
  * Colors.
4726
4726
  */
4727
4727
 
4728
- exports$1.colors = [
4728
+ exports.colors = [
4729
4729
  '#0000CC',
4730
4730
  '#0000FF',
4731
4731
  '#0033CC',
@@ -4890,7 +4890,7 @@ function requireBrowser () {
4890
4890
  *
4891
4891
  * @api public
4892
4892
  */
4893
- exports$1.log = console.debug || console.log || (() => {});
4893
+ exports.log = console.debug || console.log || (() => {});
4894
4894
 
4895
4895
  /**
4896
4896
  * Save `namespaces`.
@@ -4901,9 +4901,9 @@ function requireBrowser () {
4901
4901
  function save(namespaces) {
4902
4902
  try {
4903
4903
  if (namespaces) {
4904
- exports$1.storage.setItem('debug', namespaces);
4904
+ exports.storage.setItem('debug', namespaces);
4905
4905
  } else {
4906
- exports$1.storage.removeItem('debug');
4906
+ exports.storage.removeItem('debug');
4907
4907
  }
4908
4908
  } catch (error) {
4909
4909
  // Swallow
@@ -4920,7 +4920,7 @@ function requireBrowser () {
4920
4920
  function load() {
4921
4921
  let r;
4922
4922
  try {
4923
- r = exports$1.storage.getItem('debug') || exports$1.storage.getItem('DEBUG') ;
4923
+ r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
4924
4924
  } catch (error) {
4925
4925
  // Swallow
4926
4926
  // XXX (@Qix-) should we be logging these?
@@ -4956,7 +4956,7 @@ function requireBrowser () {
4956
4956
  }
4957
4957
  }
4958
4958
 
4959
- module.exports = requireCommon()(exports$1);
4959
+ module.exports = requireCommon()(exports);
4960
4960
 
4961
4961
  const {formatters} = module.exports;
4962
4962
 
@@ -5597,9 +5597,9 @@ var hasRequiredEslintUtils;
5597
5597
  function requireEslintUtils () {
5598
5598
  if (hasRequiredEslintUtils) return eslintUtils;
5599
5599
  hasRequiredEslintUtils = 1;
5600
- (function (exports$1) {
5600
+ (function (exports) {
5601
5601
 
5602
- Object.defineProperty(exports$1, '__esModule', { value: true });
5602
+ Object.defineProperty(exports, '__esModule', { value: true });
5603
5603
 
5604
5604
  var eslintVisitorKeys = requireEslintVisitorKeys$1();
5605
5605
 
@@ -8162,44 +8162,44 @@ function requireEslintUtils () {
8162
8162
  ReferenceTracker,
8163
8163
  };
8164
8164
 
8165
- exports$1.CALL = CALL;
8166
- exports$1.CONSTRUCT = CONSTRUCT;
8167
- exports$1.ESM = ESM;
8168
- exports$1.PatternMatcher = PatternMatcher;
8169
- exports$1.READ = READ;
8170
- exports$1.ReferenceTracker = ReferenceTracker;
8171
- exports$1["default"] = index;
8172
- exports$1.findVariable = findVariable;
8173
- exports$1.getFunctionHeadLocation = getFunctionHeadLocation;
8174
- exports$1.getFunctionNameWithKind = getFunctionNameWithKind;
8175
- exports$1.getInnermostScope = getInnermostScope;
8176
- exports$1.getPropertyName = getPropertyName;
8177
- exports$1.getStaticValue = getStaticValue;
8178
- exports$1.getStringIfConstant = getStringIfConstant;
8179
- exports$1.hasSideEffect = hasSideEffect;
8180
- exports$1.isArrowToken = isArrowToken;
8181
- exports$1.isClosingBraceToken = isClosingBraceToken;
8182
- exports$1.isClosingBracketToken = isClosingBracketToken;
8183
- exports$1.isClosingParenToken = isClosingParenToken;
8184
- exports$1.isColonToken = isColonToken;
8185
- exports$1.isCommaToken = isCommaToken;
8186
- exports$1.isCommentToken = isCommentToken;
8187
- exports$1.isNotArrowToken = isNotArrowToken;
8188
- exports$1.isNotClosingBraceToken = isNotClosingBraceToken;
8189
- exports$1.isNotClosingBracketToken = isNotClosingBracketToken;
8190
- exports$1.isNotClosingParenToken = isNotClosingParenToken;
8191
- exports$1.isNotColonToken = isNotColonToken;
8192
- exports$1.isNotCommaToken = isNotCommaToken;
8193
- exports$1.isNotCommentToken = isNotCommentToken;
8194
- exports$1.isNotOpeningBraceToken = isNotOpeningBraceToken;
8195
- exports$1.isNotOpeningBracketToken = isNotOpeningBracketToken;
8196
- exports$1.isNotOpeningParenToken = isNotOpeningParenToken;
8197
- exports$1.isNotSemicolonToken = isNotSemicolonToken;
8198
- exports$1.isOpeningBraceToken = isOpeningBraceToken;
8199
- exports$1.isOpeningBracketToken = isOpeningBracketToken;
8200
- exports$1.isOpeningParenToken = isOpeningParenToken;
8201
- exports$1.isParenthesized = isParenthesized;
8202
- exports$1.isSemicolonToken = isSemicolonToken;
8165
+ exports.CALL = CALL;
8166
+ exports.CONSTRUCT = CONSTRUCT;
8167
+ exports.ESM = ESM;
8168
+ exports.PatternMatcher = PatternMatcher;
8169
+ exports.READ = READ;
8170
+ exports.ReferenceTracker = ReferenceTracker;
8171
+ exports["default"] = index;
8172
+ exports.findVariable = findVariable;
8173
+ exports.getFunctionHeadLocation = getFunctionHeadLocation;
8174
+ exports.getFunctionNameWithKind = getFunctionNameWithKind;
8175
+ exports.getInnermostScope = getInnermostScope;
8176
+ exports.getPropertyName = getPropertyName;
8177
+ exports.getStaticValue = getStaticValue;
8178
+ exports.getStringIfConstant = getStringIfConstant;
8179
+ exports.hasSideEffect = hasSideEffect;
8180
+ exports.isArrowToken = isArrowToken;
8181
+ exports.isClosingBraceToken = isClosingBraceToken;
8182
+ exports.isClosingBracketToken = isClosingBracketToken;
8183
+ exports.isClosingParenToken = isClosingParenToken;
8184
+ exports.isColonToken = isColonToken;
8185
+ exports.isCommaToken = isCommaToken;
8186
+ exports.isCommentToken = isCommentToken;
8187
+ exports.isNotArrowToken = isNotArrowToken;
8188
+ exports.isNotClosingBraceToken = isNotClosingBraceToken;
8189
+ exports.isNotClosingBracketToken = isNotClosingBracketToken;
8190
+ exports.isNotClosingParenToken = isNotClosingParenToken;
8191
+ exports.isNotColonToken = isNotColonToken;
8192
+ exports.isNotCommaToken = isNotCommaToken;
8193
+ exports.isNotCommentToken = isNotCommentToken;
8194
+ exports.isNotOpeningBraceToken = isNotOpeningBraceToken;
8195
+ exports.isNotOpeningBracketToken = isNotOpeningBracketToken;
8196
+ exports.isNotOpeningParenToken = isNotOpeningParenToken;
8197
+ exports.isNotSemicolonToken = isNotSemicolonToken;
8198
+ exports.isOpeningBraceToken = isOpeningBraceToken;
8199
+ exports.isOpeningBracketToken = isOpeningBracketToken;
8200
+ exports.isOpeningParenToken = isOpeningParenToken;
8201
+ exports.isParenthesized = isParenthesized;
8202
+ exports.isSemicolonToken = isSemicolonToken;
8203
8203
 
8204
8204
  } (eslintUtils));
8205
8205
  return eslintUtils;
@@ -10116,6 +10116,15 @@ function requireDebugHelpers () {
10116
10116
  }
10117
10117
  }
10118
10118
 
10119
+ /**
10120
+ * Escape text for use in a DOT label.
10121
+ * @param {string} value The value to escape.
10122
+ * @returns {string} The escaped value.
10123
+ */
10124
+ function escapeDotLabelText(value) {
10125
+ return value.replace(/\\/gu, String.raw`\\`).replace(/"/gu, String.raw`\"`);
10126
+ }
10127
+
10119
10128
  //------------------------------------------------------------------------------
10120
10129
  // Public Interface
10121
10130
  //------------------------------------------------------------------------------
@@ -10218,7 +10227,9 @@ function requireDebugHelpers () {
10218
10227
  }
10219
10228
 
10220
10229
  if (segment.internal.nodes.length > 0) {
10221
- text += segment.internal.nodes.join("\\n");
10230
+ text += segment.internal.nodes
10231
+ .map(escapeDotLabelText)
10232
+ .join("\\n");
10222
10233
  } else {
10223
10234
  text += "????";
10224
10235
  }
@@ -12726,11 +12737,12 @@ function requireCodePathState () {
12726
12737
  }
12727
12738
 
12728
12739
  /**
12729
- * Makes a code path segment from the first throwable node to the `catch`
12730
- * block or the `finally` block.
12740
+ * Makes a code path segment from the first throwable node in a `try` block to the `catch`
12741
+ * block or the `finally` block or from the first throwable node in a `catch` block
12742
+ * to the `finally` block.
12731
12743
  * @returns {void}
12732
12744
  */
12733
- makeFirstThrowablePathInTryBlock() {
12745
+ makeFirstThrowablePathInTryOrCatchBlock() {
12734
12746
  const forkContext = this.forkContext;
12735
12747
 
12736
12748
  if (!forkContext.reachable) {
@@ -12739,10 +12751,13 @@ function requireCodePathState () {
12739
12751
 
12740
12752
  const context = getThrowContext(this);
12741
12753
 
12754
+ if (context === this || !context.thrownForkContext.empty) {
12755
+ return;
12756
+ }
12757
+
12742
12758
  if (
12743
- context === this ||
12744
- context.position !== "try" ||
12745
- !context.thrownForkContext.empty
12759
+ context.position !== "try" &&
12760
+ (context.position !== "catch" || !context.hasFinalizer)
12746
12761
  ) {
12747
12762
  return;
12748
12763
  }
@@ -14352,7 +14367,7 @@ function requireCodePathAnalyzer () {
14352
14367
 
14353
14368
  case "Identifier":
14354
14369
  if (isIdentifierReference(node)) {
14355
- state.makeFirstThrowablePathInTryBlock();
14370
+ state.makeFirstThrowablePathInTryOrCatchBlock();
14356
14371
  dontForward = true;
14357
14372
  }
14358
14373
  break;
@@ -14361,7 +14376,7 @@ function requireCodePathAnalyzer () {
14361
14376
  case "ImportExpression":
14362
14377
  case "MemberExpression":
14363
14378
  case "NewExpression":
14364
- state.makeFirstThrowablePathInTryBlock();
14379
+ state.makeFirstThrowablePathInTryOrCatchBlock();
14365
14380
  break;
14366
14381
 
14367
14382
  case "YieldExpression":
@@ -22724,13 +22739,13 @@ var hasRequiredCommonjs$2;
22724
22739
  function requireCommonjs$2 () {
22725
22740
  if (hasRequiredCommonjs$2) return commonjs;
22726
22741
  hasRequiredCommonjs$2 = 1;
22727
- (function (exports$1) {
22728
- Object.defineProperty(exports$1, "__esModule", { value: true });
22729
- exports$1.range = exports$1.balanced = void 0;
22742
+ (function (exports) {
22743
+ Object.defineProperty(exports, "__esModule", { value: true });
22744
+ exports.range = exports.balanced = void 0;
22730
22745
  const balanced = (a, b, str) => {
22731
22746
  const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
22732
22747
  const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
22733
- const r = ma !== null && mb != null && (0, exports$1.range)(ma, mb, str);
22748
+ const r = ma !== null && mb != null && (0, exports.range)(ma, mb, str);
22734
22749
  return (r && {
22735
22750
  start: r[0],
22736
22751
  end: r[1],
@@ -22739,7 +22754,7 @@ function requireCommonjs$2 () {
22739
22754
  post: str.slice(r[1] + mb.length),
22740
22755
  });
22741
22756
  };
22742
- exports$1.balanced = balanced;
22757
+ exports.balanced = balanced;
22743
22758
  const maybeMatch = (reg, str) => {
22744
22759
  const m = str.match(reg);
22745
22760
  return m ? m[0] : null;
@@ -22781,7 +22796,7 @@ function requireCommonjs$2 () {
22781
22796
  }
22782
22797
  return result;
22783
22798
  };
22784
- exports$1.range = range;
22799
+ exports.range = range;
22785
22800
 
22786
22801
  } (commonjs));
22787
22802
  return commonjs;
@@ -22792,10 +22807,10 @@ var hasRequiredCommonjs$1;
22792
22807
  function requireCommonjs$1 () {
22793
22808
  if (hasRequiredCommonjs$1) return commonjs$1;
22794
22809
  hasRequiredCommonjs$1 = 1;
22795
- (function (exports$1) {
22796
- Object.defineProperty(exports$1, "__esModule", { value: true });
22797
- exports$1.EXPANSION_MAX = void 0;
22798
- exports$1.expand = expand;
22810
+ (function (exports) {
22811
+ Object.defineProperty(exports, "__esModule", { value: true });
22812
+ exports.EXPANSION_MAX = void 0;
22813
+ exports.expand = expand;
22799
22814
  const balanced_match_1 = requireCommonjs$2();
22800
22815
  const escSlash = '\0SLASH' + Math.random() + '\0';
22801
22816
  const escOpen = '\0OPEN' + Math.random() + '\0';
@@ -22812,7 +22827,7 @@ function requireCommonjs$1 () {
22812
22827
  const closePattern = /\\}/g;
22813
22828
  const commaPattern = /\\,/g;
22814
22829
  const periodPattern = /\\\./g;
22815
- exports$1.EXPANSION_MAX = 100_000;
22830
+ exports.EXPANSION_MAX = 100_000;
22816
22831
  function numeric(str) {
22817
22832
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
22818
22833
  }
@@ -22861,7 +22876,7 @@ function requireCommonjs$1 () {
22861
22876
  if (!str) {
22862
22877
  return [];
22863
22878
  }
22864
- const { max = exports$1.EXPANSION_MAX } = options;
22879
+ const { max = exports.EXPANSION_MAX } = options;
22865
22880
  // I don't know why Bash 4.3 does this, but it does.
22866
22881
  // Anything starting with {} will have the first two bytes preserved
22867
22882
  // but *only* at the top level, so {},a}b will not expand to anything,
@@ -24123,9 +24138,9 @@ var hasRequiredCommonjs;
24123
24138
  function requireCommonjs () {
24124
24139
  if (hasRequiredCommonjs) return commonjs$2;
24125
24140
  hasRequiredCommonjs = 1;
24126
- (function (exports$1) {
24127
- Object.defineProperty(exports$1, "__esModule", { value: true });
24128
- exports$1.unescape = exports$1.escape = exports$1.AST = exports$1.Minimatch = exports$1.match = exports$1.makeRe = exports$1.braceExpand = exports$1.defaults = exports$1.filter = exports$1.GLOBSTAR = exports$1.sep = exports$1.minimatch = void 0;
24141
+ (function (exports) {
24142
+ Object.defineProperty(exports, "__esModule", { value: true });
24143
+ exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;
24129
24144
  const brace_expansion_1 = requireCommonjs$1();
24130
24145
  const assert_valid_pattern_js_1 = requireAssertValidPattern();
24131
24146
  const ast_js_1 = requireAst$1();
@@ -24139,7 +24154,7 @@ function requireCommonjs () {
24139
24154
  }
24140
24155
  return new Minimatch(pattern, options).match(p);
24141
24156
  };
24142
- exports$1.minimatch = minimatch;
24157
+ exports.minimatch = minimatch;
24143
24158
  // Optimized checking for the most common glob patterns.
24144
24159
  const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
24145
24160
  const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
@@ -24203,10 +24218,10 @@ function requireCommonjs () {
24203
24218
  posix: { sep: '/' },
24204
24219
  };
24205
24220
  /* c8 ignore stop */
24206
- exports$1.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
24207
- exports$1.minimatch.sep = exports$1.sep;
24208
- exports$1.GLOBSTAR = Symbol('globstar **');
24209
- exports$1.minimatch.GLOBSTAR = exports$1.GLOBSTAR;
24221
+ exports.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
24222
+ exports.minimatch.sep = exports.sep;
24223
+ exports.GLOBSTAR = Symbol('globstar **');
24224
+ exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
24210
24225
  // any single thing other than /
24211
24226
  // don't need to escape / when using new RegExp()
24212
24227
  const qmark = '[^/]';
@@ -24219,15 +24234,15 @@ function requireCommonjs () {
24219
24234
  // not a ^ or / followed by a dot,
24220
24235
  // followed by anything, any number of times.
24221
24236
  const twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?';
24222
- const filter = (pattern, options = {}) => (p) => (0, exports$1.minimatch)(p, pattern, options);
24223
- exports$1.filter = filter;
24224
- exports$1.minimatch.filter = exports$1.filter;
24237
+ const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options);
24238
+ exports.filter = filter;
24239
+ exports.minimatch.filter = exports.filter;
24225
24240
  const ext = (a, b = {}) => Object.assign({}, a, b);
24226
24241
  const defaults = (def) => {
24227
24242
  if (!def || typeof def !== 'object' || !Object.keys(def).length) {
24228
- return exports$1.minimatch;
24243
+ return exports.minimatch;
24229
24244
  }
24230
- const orig = exports$1.minimatch;
24245
+ const orig = exports.minimatch;
24231
24246
  const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
24232
24247
  return Object.assign(m, {
24233
24248
  Minimatch: class Minimatch extends orig.Minimatch {
@@ -24256,11 +24271,11 @@ function requireCommonjs () {
24256
24271
  braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
24257
24272
  match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
24258
24273
  sep: orig.sep,
24259
- GLOBSTAR: exports$1.GLOBSTAR,
24274
+ GLOBSTAR: exports.GLOBSTAR,
24260
24275
  });
24261
24276
  };
24262
- exports$1.defaults = defaults;
24263
- exports$1.minimatch.defaults = exports$1.defaults;
24277
+ exports.defaults = defaults;
24278
+ exports.minimatch.defaults = exports.defaults;
24264
24279
  // Brace expansion:
24265
24280
  // a{b,c}d -> abd acd
24266
24281
  // a{b,}c -> abc ac
@@ -24281,8 +24296,8 @@ function requireCommonjs () {
24281
24296
  }
24282
24297
  return (0, brace_expansion_1.expand)(pattern, { max: options.braceExpandMax });
24283
24298
  };
24284
- exports$1.braceExpand = braceExpand;
24285
- exports$1.minimatch.braceExpand = exports$1.braceExpand;
24299
+ exports.braceExpand = braceExpand;
24300
+ exports.minimatch.braceExpand = exports.braceExpand;
24286
24301
  // parse a component of the expanded set.
24287
24302
  // At this point, no pattern may contain "/" in it
24288
24303
  // so we're going to return a 2d array, where each entry is the full
@@ -24295,8 +24310,8 @@ function requireCommonjs () {
24295
24310
  // of * is equivalent to a single *. Globstar behavior is enabled by
24296
24311
  // default, and can be disabled by setting options.noglobstar.
24297
24312
  const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
24298
- exports$1.makeRe = makeRe;
24299
- exports$1.minimatch.makeRe = exports$1.makeRe;
24313
+ exports.makeRe = makeRe;
24314
+ exports.minimatch.makeRe = exports.makeRe;
24300
24315
  const match = (list, pattern, options = {}) => {
24301
24316
  const mm = new Minimatch(pattern, options);
24302
24317
  list = list.filter(f => mm.match(f));
@@ -24305,8 +24320,8 @@ function requireCommonjs () {
24305
24320
  }
24306
24321
  return list;
24307
24322
  };
24308
- exports$1.match = match;
24309
- exports$1.minimatch.match = exports$1.match;
24323
+ exports.match = match;
24324
+ exports.minimatch.match = exports.match;
24310
24325
  // replace stuff like \* with *
24311
24326
  const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
24312
24327
  const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
@@ -24787,15 +24802,15 @@ function requireCommonjs () {
24787
24802
  if (optimizationLevel >= 2) {
24788
24803
  file = this.levelTwoFileOptimize(file);
24789
24804
  }
24790
- if (pattern.includes(exports$1.GLOBSTAR)) {
24805
+ if (pattern.includes(exports.GLOBSTAR)) {
24791
24806
  return this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex);
24792
24807
  }
24793
24808
  return this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
24794
24809
  }
24795
24810
  #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
24796
24811
  // split the pattern into head, tail, and middle of ** delimited parts
24797
- const firstgs = pattern.indexOf(exports$1.GLOBSTAR, patternIndex);
24798
- const lastgs = pattern.lastIndexOf(exports$1.GLOBSTAR);
24812
+ const firstgs = pattern.indexOf(exports.GLOBSTAR, patternIndex);
24813
+ const lastgs = pattern.lastIndexOf(exports.GLOBSTAR);
24799
24814
  // split the pattern up into globstar-delimited sections
24800
24815
  // the tail has to be at the end, and the others just have
24801
24816
  // to be found in order from the head.
@@ -24879,7 +24894,7 @@ function requireCommonjs () {
24879
24894
  let nonGsParts = 0;
24880
24895
  const nonGsPartsSums = [0];
24881
24896
  for (const b of body) {
24882
- if (b === exports$1.GLOBSTAR) {
24897
+ if (b === exports.GLOBSTAR) {
24883
24898
  nonGsPartsSums.push(nonGsParts);
24884
24899
  currentBody = [[], 0];
24885
24900
  bodySegments.push(currentBody);
@@ -24964,7 +24979,7 @@ function requireCommonjs () {
24964
24979
  // should be impossible.
24965
24980
  // some invalid regexp stuff in the set.
24966
24981
  /* c8 ignore start */
24967
- if (p === false || p === exports$1.GLOBSTAR) {
24982
+ if (p === false || p === exports.GLOBSTAR) {
24968
24983
  return false;
24969
24984
  }
24970
24985
  /* c8 ignore stop */
@@ -25020,14 +25035,14 @@ function requireCommonjs () {
25020
25035
  /* c8 ignore stop */
25021
25036
  }
25022
25037
  braceExpand() {
25023
- return (0, exports$1.braceExpand)(this.pattern, this.options);
25038
+ return (0, exports.braceExpand)(this.pattern, this.options);
25024
25039
  }
25025
25040
  parse(pattern) {
25026
25041
  (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
25027
25042
  const options = this.options;
25028
25043
  // shortcuts
25029
25044
  if (pattern === '**')
25030
- return exports$1.GLOBSTAR;
25045
+ return exports.GLOBSTAR;
25031
25046
  if (pattern === '')
25032
25047
  return '';
25033
25048
  // far and away, the most common glob pattern parts are
@@ -25099,17 +25114,17 @@ function requireCommonjs () {
25099
25114
  flags.add(f);
25100
25115
  }
25101
25116
  return (typeof p === 'string' ? regExpEscape(p)
25102
- : p === exports$1.GLOBSTAR ? exports$1.GLOBSTAR
25117
+ : p === exports.GLOBSTAR ? exports.GLOBSTAR
25103
25118
  : p._src);
25104
25119
  });
25105
25120
  pp.forEach((p, i) => {
25106
25121
  const next = pp[i + 1];
25107
25122
  const prev = pp[i - 1];
25108
- if (p !== exports$1.GLOBSTAR || prev === exports$1.GLOBSTAR) {
25123
+ if (p !== exports.GLOBSTAR || prev === exports.GLOBSTAR) {
25109
25124
  return;
25110
25125
  }
25111
25126
  if (prev === undefined) {
25112
- if (next !== undefined && next !== exports$1.GLOBSTAR) {
25127
+ if (next !== undefined && next !== exports.GLOBSTAR) {
25113
25128
  pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
25114
25129
  }
25115
25130
  else {
@@ -25119,12 +25134,12 @@ function requireCommonjs () {
25119
25134
  else if (next === undefined) {
25120
25135
  pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + ')?';
25121
25136
  }
25122
- else if (next !== exports$1.GLOBSTAR) {
25137
+ else if (next !== exports.GLOBSTAR) {
25123
25138
  pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
25124
- pp[i + 1] = exports$1.GLOBSTAR;
25139
+ pp[i + 1] = exports.GLOBSTAR;
25125
25140
  }
25126
25141
  });
25127
- const filtered = pp.filter(p => p !== exports$1.GLOBSTAR);
25142
+ const filtered = pp.filter(p => p !== exports.GLOBSTAR);
25128
25143
  // For partial matches, we need to make the pattern match
25129
25144
  // any prefix of the full path. We do this by generating
25130
25145
  // alternative patterns that match progressively longer prefixes.
@@ -25233,22 +25248,22 @@ function requireCommonjs () {
25233
25248
  return this.negate;
25234
25249
  }
25235
25250
  static defaults(def) {
25236
- return exports$1.minimatch.defaults(def).Minimatch;
25251
+ return exports.minimatch.defaults(def).Minimatch;
25237
25252
  }
25238
25253
  }
25239
- exports$1.Minimatch = Minimatch;
25254
+ exports.Minimatch = Minimatch;
25240
25255
  /* c8 ignore start */
25241
25256
  var ast_js_2 = requireAst$1();
25242
- Object.defineProperty(exports$1, "AST", { enumerable: true, get: function () { return ast_js_2.AST; } });
25257
+ Object.defineProperty(exports, "AST", { enumerable: true, get: function () { return ast_js_2.AST; } });
25243
25258
  var escape_js_2 = require_escape();
25244
- Object.defineProperty(exports$1, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
25259
+ Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
25245
25260
  var unescape_js_2 = require_unescape();
25246
- Object.defineProperty(exports$1, "unescape", { enumerable: true, get: function () { return unescape_js_2.unescape; } });
25261
+ Object.defineProperty(exports, "unescape", { enumerable: true, get: function () { return unescape_js_2.unescape; } });
25247
25262
  /* c8 ignore stop */
25248
- exports$1.minimatch.AST = ast_js_1.AST;
25249
- exports$1.minimatch.Minimatch = Minimatch;
25250
- exports$1.minimatch.escape = escape_js_1.escape;
25251
- exports$1.minimatch.unescape = unescape_js_1.unescape;
25263
+ exports.minimatch.AST = ast_js_1.AST;
25264
+ exports.minimatch.Minimatch = Minimatch;
25265
+ exports.minimatch.escape = escape_js_1.escape;
25266
+ exports.minimatch.unescape = unescape_js_1.unescape;
25252
25267
 
25253
25268
  } (commonjs$2));
25254
25269
  return commonjs$2;
@@ -25738,7 +25753,7 @@ var hasRequiredCjs;
25738
25753
  function requireCjs () {
25739
25754
  if (hasRequiredCjs) return cjs$1;
25740
25755
  hasRequiredCjs = 1;
25741
- (function (exports$1) {
25756
+ (function (exports) {
25742
25757
 
25743
25758
  var posixPath = requirePosix();
25744
25759
  var windowsPath = requireWindows();
@@ -27273,12 +27288,12 @@ function requireCjs () {
27273
27288
  }
27274
27289
  }
27275
27290
 
27276
- Object.defineProperty(exports$1, "ObjectSchema", {
27291
+ Object.defineProperty(exports, "ObjectSchema", {
27277
27292
  enumerable: true,
27278
27293
  get: function () { return objectSchema.ObjectSchema; }
27279
27294
  });
27280
- exports$1.ConfigArray = ConfigArray;
27281
- exports$1.ConfigArraySymbol = ConfigArraySymbol;
27295
+ exports.ConfigArray = ConfigArray;
27296
+ exports.ConfigArraySymbol = ConfigArraySymbol;
27282
27297
  } (cjs$1));
27283
27298
  return cjs$1;
27284
27299
  }
@@ -27292,10 +27307,10 @@ var hasRequiredUri_all;
27292
27307
  function requireUri_all () {
27293
27308
  if (hasRequiredUri_all) return uri_all.exports;
27294
27309
  hasRequiredUri_all = 1;
27295
- (function (module, exports$1) {
27310
+ (function (module, exports) {
27296
27311
  (function (global, factory) {
27297
- factory(exports$1) ;
27298
- }(this, (function (exports$1) {
27312
+ factory(exports) ;
27313
+ }(this, (function (exports) {
27299
27314
  function merge() {
27300
27315
  for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
27301
27316
  sets[_key] = arguments[_key];
@@ -28677,20 +28692,20 @@ function requireUri_all () {
28677
28692
  SCHEMES[handler$5.scheme] = handler$5;
28678
28693
  SCHEMES[handler$6.scheme] = handler$6;
28679
28694
 
28680
- exports$1.SCHEMES = SCHEMES;
28681
- exports$1.pctEncChar = pctEncChar;
28682
- exports$1.pctDecChars = pctDecChars;
28683
- exports$1.parse = parse;
28684
- exports$1.removeDotSegments = removeDotSegments;
28685
- exports$1.serialize = serialize;
28686
- exports$1.resolveComponents = resolveComponents;
28687
- exports$1.resolve = resolve;
28688
- exports$1.normalize = normalize;
28689
- exports$1.equal = equal;
28690
- exports$1.escapeComponent = escapeComponent;
28691
- exports$1.unescapeComponent = unescapeComponent;
28692
-
28693
- Object.defineProperty(exports$1, '__esModule', { value: true });
28695
+ exports.SCHEMES = SCHEMES;
28696
+ exports.pctEncChar = pctEncChar;
28697
+ exports.pctDecChars = pctDecChars;
28698
+ exports.parse = parse;
28699
+ exports.removeDotSegments = removeDotSegments;
28700
+ exports.serialize = serialize;
28701
+ exports.resolveComponents = resolveComponents;
28702
+ exports.resolve = resolve;
28703
+ exports.normalize = normalize;
28704
+ exports.equal = equal;
28705
+ exports.escapeComponent = escapeComponent;
28706
+ exports.unescapeComponent = unescapeComponent;
28707
+
28708
+ Object.defineProperty(exports, '__esModule', { value: true });
28694
28709
 
28695
28710
  })));
28696
28711
 
@@ -37588,10 +37603,10 @@ var hasRequiredAcorn;
37588
37603
  function requireAcorn () {
37589
37604
  if (hasRequiredAcorn) return acorn.exports;
37590
37605
  hasRequiredAcorn = 1;
37591
- (function (module, exports$1) {
37606
+ (function (module, exports) {
37592
37607
  (function (global, factory) {
37593
- factory(exports$1) ;
37594
- })(this, (function (exports$1) {
37608
+ factory(exports) ;
37609
+ })(this, (function (exports) {
37595
37610
  // This file was generated. Do not modify manually!
37596
37611
  var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
37597
37612
 
@@ -38438,10 +38453,10 @@ function requireAcorn () {
38438
38453
  // to its body instead of creating a new node.
38439
38454
 
38440
38455
  pp$8.parseTopLevel = function(node) {
38441
- var exports$1 = Object.create(null);
38456
+ var exports = Object.create(null);
38442
38457
  if (!node.body) { node.body = []; }
38443
38458
  while (this.type !== types$1.eof) {
38444
- var stmt = this.parseStatement(null, true, exports$1);
38459
+ var stmt = this.parseStatement(null, true, exports);
38445
38460
  node.body.push(stmt);
38446
38461
  }
38447
38462
  if (this.inModule)
@@ -38549,7 +38564,7 @@ function requireAcorn () {
38549
38564
  // `if (foo) /blah/.exec(foo)`, where looking at the previous token
38550
38565
  // does not help.
38551
38566
 
38552
- pp$8.parseStatement = function(context, topLevel, exports$1) {
38567
+ pp$8.parseStatement = function(context, topLevel, exports) {
38553
38568
  var starttype = this.type, node = this.startNode(), kind;
38554
38569
 
38555
38570
  if (this.isLet(context)) {
@@ -38604,7 +38619,7 @@ function requireAcorn () {
38604
38619
  if (!this.inModule)
38605
38620
  { this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'"); }
38606
38621
  }
38607
- return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports$1)
38622
+ return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)
38608
38623
 
38609
38624
  // If the statement does not start with a statement keyword or a
38610
38625
  // brace, it's an ExpressionStatement or LabeledStatement. We
@@ -39365,11 +39380,11 @@ function requireAcorn () {
39365
39380
 
39366
39381
  // Parses module export declaration.
39367
39382
 
39368
- pp$8.parseExportAllDeclaration = function(node, exports$1) {
39383
+ pp$8.parseExportAllDeclaration = function(node, exports) {
39369
39384
  if (this.options.ecmaVersion >= 11) {
39370
39385
  if (this.eatContextual("as")) {
39371
39386
  node.exported = this.parseModuleExportName();
39372
- this.checkExport(exports$1, node.exported, this.lastTokStart);
39387
+ this.checkExport(exports, node.exported, this.lastTokStart);
39373
39388
  } else {
39374
39389
  node.exported = null;
39375
39390
  }
@@ -39383,14 +39398,14 @@ function requireAcorn () {
39383
39398
  return this.finishNode(node, "ExportAllDeclaration")
39384
39399
  };
39385
39400
 
39386
- pp$8.parseExport = function(node, exports$1) {
39401
+ pp$8.parseExport = function(node, exports) {
39387
39402
  this.next();
39388
39403
  // export * from '...'
39389
39404
  if (this.eat(types$1.star)) {
39390
- return this.parseExportAllDeclaration(node, exports$1)
39405
+ return this.parseExportAllDeclaration(node, exports)
39391
39406
  }
39392
39407
  if (this.eat(types$1._default)) { // export default ...
39393
- this.checkExport(exports$1, "default", this.lastTokStart);
39408
+ this.checkExport(exports, "default", this.lastTokStart);
39394
39409
  node.declaration = this.parseExportDefaultDeclaration();
39395
39410
  return this.finishNode(node, "ExportDefaultDeclaration")
39396
39411
  }
@@ -39398,16 +39413,16 @@ function requireAcorn () {
39398
39413
  if (this.shouldParseExportStatement()) {
39399
39414
  node.declaration = this.parseExportDeclaration(node);
39400
39415
  if (node.declaration.type === "VariableDeclaration")
39401
- { this.checkVariableExport(exports$1, node.declaration.declarations); }
39416
+ { this.checkVariableExport(exports, node.declaration.declarations); }
39402
39417
  else
39403
- { this.checkExport(exports$1, node.declaration.id, node.declaration.id.start); }
39418
+ { this.checkExport(exports, node.declaration.id, node.declaration.id.start); }
39404
39419
  node.specifiers = [];
39405
39420
  node.source = null;
39406
39421
  if (this.options.ecmaVersion >= 16)
39407
39422
  { node.attributes = []; }
39408
39423
  } else { // export { x, y as z } [from '...']
39409
39424
  node.declaration = null;
39410
- node.specifiers = this.parseExportSpecifiers(exports$1);
39425
+ node.specifiers = this.parseExportSpecifiers(exports);
39411
39426
  if (this.eatContextual("from")) {
39412
39427
  if (this.type !== types$1.string) { this.unexpected(); }
39413
39428
  node.source = this.parseExprAtom();
@@ -39457,47 +39472,47 @@ function requireAcorn () {
39457
39472
  }
39458
39473
  };
39459
39474
 
39460
- pp$8.checkExport = function(exports$1, name, pos) {
39461
- if (!exports$1) { return }
39475
+ pp$8.checkExport = function(exports, name, pos) {
39476
+ if (!exports) { return }
39462
39477
  if (typeof name !== "string")
39463
39478
  { name = name.type === "Identifier" ? name.name : name.value; }
39464
- if (hasOwn(exports$1, name))
39479
+ if (hasOwn(exports, name))
39465
39480
  { this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
39466
- exports$1[name] = true;
39481
+ exports[name] = true;
39467
39482
  };
39468
39483
 
39469
- pp$8.checkPatternExport = function(exports$1, pat) {
39484
+ pp$8.checkPatternExport = function(exports, pat) {
39470
39485
  var type = pat.type;
39471
39486
  if (type === "Identifier")
39472
- { this.checkExport(exports$1, pat, pat.start); }
39487
+ { this.checkExport(exports, pat, pat.start); }
39473
39488
  else if (type === "ObjectPattern")
39474
39489
  { for (var i = 0, list = pat.properties; i < list.length; i += 1)
39475
39490
  {
39476
39491
  var prop = list[i];
39477
39492
 
39478
- this.checkPatternExport(exports$1, prop);
39493
+ this.checkPatternExport(exports, prop);
39479
39494
  } }
39480
39495
  else if (type === "ArrayPattern")
39481
39496
  { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {
39482
39497
  var elt = list$1[i$1];
39483
39498
 
39484
- if (elt) { this.checkPatternExport(exports$1, elt); }
39499
+ if (elt) { this.checkPatternExport(exports, elt); }
39485
39500
  } }
39486
39501
  else if (type === "Property")
39487
- { this.checkPatternExport(exports$1, pat.value); }
39502
+ { this.checkPatternExport(exports, pat.value); }
39488
39503
  else if (type === "AssignmentPattern")
39489
- { this.checkPatternExport(exports$1, pat.left); }
39504
+ { this.checkPatternExport(exports, pat.left); }
39490
39505
  else if (type === "RestElement")
39491
- { this.checkPatternExport(exports$1, pat.argument); }
39506
+ { this.checkPatternExport(exports, pat.argument); }
39492
39507
  };
39493
39508
 
39494
- pp$8.checkVariableExport = function(exports$1, decls) {
39495
- if (!exports$1) { return }
39509
+ pp$8.checkVariableExport = function(exports, decls) {
39510
+ if (!exports) { return }
39496
39511
  for (var i = 0, list = decls; i < list.length; i += 1)
39497
39512
  {
39498
39513
  var decl = list[i];
39499
39514
 
39500
- this.checkPatternExport(exports$1, decl.id);
39515
+ this.checkPatternExport(exports, decl.id);
39501
39516
  }
39502
39517
  };
39503
39518
 
@@ -39512,13 +39527,13 @@ function requireAcorn () {
39512
39527
 
39513
39528
  // Parses a comma-separated list of module exports.
39514
39529
 
39515
- pp$8.parseExportSpecifier = function(exports$1) {
39530
+ pp$8.parseExportSpecifier = function(exports) {
39516
39531
  var node = this.startNode();
39517
39532
  node.local = this.parseModuleExportName();
39518
39533
 
39519
39534
  node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
39520
39535
  this.checkExport(
39521
- exports$1,
39536
+ exports,
39522
39537
  node.exported,
39523
39538
  node.exported.start
39524
39539
  );
@@ -39526,7 +39541,7 @@ function requireAcorn () {
39526
39541
  return this.finishNode(node, "ExportSpecifier")
39527
39542
  };
39528
39543
 
39529
- pp$8.parseExportSpecifiers = function(exports$1) {
39544
+ pp$8.parseExportSpecifiers = function(exports) {
39530
39545
  var nodes = [], first = true;
39531
39546
  // export { x, y as z } [from '...']
39532
39547
  this.expect(types$1.braceL);
@@ -39536,7 +39551,7 @@ function requireAcorn () {
39536
39551
  if (this.afterTrailingComma(types$1.braceR)) { break }
39537
39552
  } else { first = false; }
39538
39553
 
39539
- nodes.push(this.parseExportSpecifier(exports$1));
39554
+ nodes.push(this.parseExportSpecifier(exports));
39540
39555
  }
39541
39556
  return nodes
39542
39557
  };
@@ -43857,28 +43872,28 @@ function requireAcorn () {
43857
43872
  return Parser.tokenizer(input, options)
43858
43873
  }
43859
43874
 
43860
- exports$1.Node = Node;
43861
- exports$1.Parser = Parser;
43862
- exports$1.Position = Position;
43863
- exports$1.SourceLocation = SourceLocation;
43864
- exports$1.TokContext = TokContext;
43865
- exports$1.Token = Token;
43866
- exports$1.TokenType = TokenType;
43867
- exports$1.defaultOptions = defaultOptions;
43868
- exports$1.getLineInfo = getLineInfo;
43869
- exports$1.isIdentifierChar = isIdentifierChar;
43870
- exports$1.isIdentifierStart = isIdentifierStart;
43871
- exports$1.isNewLine = isNewLine;
43872
- exports$1.keywordTypes = keywords;
43873
- exports$1.lineBreak = lineBreak;
43874
- exports$1.lineBreakG = lineBreakG;
43875
- exports$1.nonASCIIwhitespace = nonASCIIwhitespace;
43876
- exports$1.parse = parse;
43877
- exports$1.parseExpressionAt = parseExpressionAt;
43878
- exports$1.tokContexts = types;
43879
- exports$1.tokTypes = types$1;
43880
- exports$1.tokenizer = tokenizer;
43881
- exports$1.version = version;
43875
+ exports.Node = Node;
43876
+ exports.Parser = Parser;
43877
+ exports.Position = Position;
43878
+ exports.SourceLocation = SourceLocation;
43879
+ exports.TokContext = TokContext;
43880
+ exports.Token = Token;
43881
+ exports.TokenType = TokenType;
43882
+ exports.defaultOptions = defaultOptions;
43883
+ exports.getLineInfo = getLineInfo;
43884
+ exports.isIdentifierChar = isIdentifierChar;
43885
+ exports.isIdentifierStart = isIdentifierStart;
43886
+ exports.isNewLine = isNewLine;
43887
+ exports.keywordTypes = keywords;
43888
+ exports.lineBreak = lineBreak;
43889
+ exports.lineBreakG = lineBreakG;
43890
+ exports.nonASCIIwhitespace = nonASCIIwhitespace;
43891
+ exports.parse = parse;
43892
+ exports.parseExpressionAt = parseExpressionAt;
43893
+ exports.tokContexts = types;
43894
+ exports.tokTypes = types$1;
43895
+ exports.tokenizer = tokenizer;
43896
+ exports.version = version;
43882
43897
 
43883
43898
  }));
43884
43899
  } (acorn, acorn.exports));
@@ -44849,7 +44864,7 @@ var hasRequiredEspree;
44849
44864
  function requireEspree () {
44850
44865
  if (hasRequiredEspree) return espree;
44851
44866
  hasRequiredEspree = 1;
44852
- (function (exports$1) {
44867
+ (function (exports) {
44853
44868
 
44854
44869
  var acorn = requireAcorn();
44855
44870
  var jsx = requireAcornJsx();
@@ -46121,17 +46136,17 @@ function requireEspree () {
46121
46136
 
46122
46137
  const supportedEcmaVersions = /* #__PURE__ */ getSupportedEcmaVersions();
46123
46138
 
46124
- Object.defineProperty(exports$1, "VisitorKeys", {
46139
+ Object.defineProperty(exports, "VisitorKeys", {
46125
46140
  enumerable: true,
46126
46141
  get: function () { return eslintVisitorKeys.KEYS; }
46127
46142
  });
46128
- exports$1.Syntax = Syntax;
46129
- exports$1.latestEcmaVersion = latestEcmaVersion;
46130
- exports$1.name = name;
46131
- exports$1.parse = parse;
46132
- exports$1.supportedEcmaVersions = supportedEcmaVersions;
46133
- exports$1.tokenize = tokenize;
46134
- exports$1.version = version;
46143
+ exports.Syntax = Syntax;
46144
+ exports.latestEcmaVersion = latestEcmaVersion;
46145
+ exports.name = name;
46146
+ exports.parse = parse;
46147
+ exports.supportedEcmaVersions = supportedEcmaVersions;
46148
+ exports.tokenize = tokenize;
46149
+ exports.version = version;
46135
46150
  } (espree));
46136
46151
  return espree;
46137
46152
  }
@@ -53299,6 +53314,8 @@ function requireCapitalizedComments () {
53299
53314
  },
53300
53315
  ],
53301
53316
 
53317
+ defaultOptions: ["always"],
53318
+
53302
53319
  messages: {
53303
53320
  unexpectedLowercaseComment:
53304
53321
  "Comments should not begin with a lowercase character.",
@@ -53308,7 +53325,7 @@ function requireCapitalizedComments () {
53308
53325
  },
53309
53326
 
53310
53327
  create(context) {
53311
- const capitalize = context.options[0] || "always",
53328
+ const capitalize = context.options[0],
53312
53329
  normalizedOptions = getAllNormalizedOptions(context.options[1]),
53313
53330
  sourceCode = context.sourceCode;
53314
53331
 
@@ -53519,8 +53536,6 @@ function requireClassMethodsUseThis () {
53519
53536
  /** @type {import('../types').Rule.RuleModule} */
53520
53537
  classMethodsUseThis = {
53521
53538
  meta: {
53522
- dialects: ["javascript", "typescript"],
53523
- language: "javascript",
53524
53539
  type: "suggestion",
53525
53540
 
53526
53541
  defaultOptions: [
@@ -53533,6 +53548,7 @@ function requireClassMethodsUseThis () {
53533
53548
 
53534
53549
  docs: {
53535
53550
  description: "Enforce that class methods utilize `this`",
53551
+ dialects: ["JavaScript", "TypeScript"],
53536
53552
  recommended: false,
53537
53553
  url: "https://eslint.org/docs/latest/rules/class-methods-use-this",
53538
53554
  },
@@ -56842,12 +56858,11 @@ function requireDefaultParamLast () {
56842
56858
  /** @type {import('../types').Rule.RuleModule} */
56843
56859
  defaultParamLast = {
56844
56860
  meta: {
56845
- dialects: ["javascript", "typescript"],
56846
- language: "javascript",
56847
56861
  type: "suggestion",
56848
56862
 
56849
56863
  docs: {
56850
56864
  description: "Enforce default parameters to be last",
56865
+ dialects: ["JavaScript", "TypeScript"],
56851
56866
  recommended: false,
56852
56867
  frozen: true,
56853
56868
  url: "https://eslint.org/docs/latest/rules/default-param-last",
@@ -57557,6 +57572,8 @@ function requireEqeqeq () {
57557
57572
  ],
57558
57573
  },
57559
57574
 
57575
+ defaultOptions: ["always"],
57576
+
57560
57577
  fixable: "code",
57561
57578
 
57562
57579
  messages: {
@@ -57568,7 +57585,7 @@ function requireEqeqeq () {
57568
57585
  },
57569
57586
 
57570
57587
  create(context) {
57571
- const config = context.options[0] || "always";
57588
+ const config = context.options[0];
57572
57589
  const options = context.options[1] || {};
57573
57590
  const sourceCode = context.sourceCode;
57574
57591
 
@@ -57833,6 +57850,50 @@ function requireForDirection () {
57833
57850
  }
57834
57851
  return 0;
57835
57852
  }
57853
+ /**
57854
+ * Collects all expressions that modify the counter.
57855
+ * @param {ASTNode} node The expression node to check.
57856
+ * @param {string} counter The name of the counter variable.
57857
+ * @returns {ASTNode[]} An array of modifying expressions.
57858
+ */
57859
+ function getModifyingExpressions(node, counter) {
57860
+ if (node.type === "SequenceExpression") {
57861
+ return node.expressions.flatMap(expr =>
57862
+ getModifyingExpressions(expr, counter),
57863
+ );
57864
+ }
57865
+ if (
57866
+ node.type === "UpdateExpression" &&
57867
+ node.argument.type === "Identifier" &&
57868
+ node.argument.name === counter
57869
+ ) {
57870
+ return [node];
57871
+ }
57872
+ if (
57873
+ node.type === "AssignmentExpression" &&
57874
+ node.left.type === "Identifier" &&
57875
+ node.left.name === counter
57876
+ ) {
57877
+ return [node];
57878
+ }
57879
+ return [];
57880
+ }
57881
+
57882
+ /**
57883
+ * Determines the direction of a single update expression for the counter.
57884
+ * @param {ASTNode} expr An expression node to check (UpdateExpression or AssignmentExpression).
57885
+ * @param {string} counter The variable name of the counter.
57886
+ * @returns {number} 1 if incrementing, -1 if decrementing, 0 if unknown or not modifying the counter.
57887
+ */
57888
+ function getDirectionFromExpression(expr, counter) {
57889
+ if (expr.type === "UpdateExpression") {
57890
+ return getUpdateDirection(expr, counter);
57891
+ }
57892
+ if (expr.type === "AssignmentExpression") {
57893
+ return getAssignmentDirection(expr, counter);
57894
+ }
57895
+ return 0;
57896
+ }
57836
57897
 
57837
57898
  return {
57838
57899
  ForStatement(node) {
@@ -57862,17 +57923,17 @@ function requireForDirection () {
57862
57923
  return;
57863
57924
  }
57864
57925
 
57865
- if (update.type === "UpdateExpression") {
57866
- if (
57867
- getUpdateDirection(update, counter) ===
57868
- wrongDirection
57869
- ) {
57870
- report(node);
57871
- }
57872
- } else if (
57873
- update.type === "AssignmentExpression" &&
57874
- getAssignmentDirection(update, counter) ===
57875
- wrongDirection
57926
+ const mutatingExpressions = getModifyingExpressions(
57927
+ update,
57928
+ counter,
57929
+ );
57930
+
57931
+ if (
57932
+ mutatingExpressions.length === 1 &&
57933
+ getDirectionFromExpression(
57934
+ mutatingExpressions[0],
57935
+ counter,
57936
+ ) === wrongDirection
57876
57937
  ) {
57877
57938
  report(node);
57878
57939
  }
@@ -58286,6 +58347,8 @@ function requireFuncNameMatching () {
58286
58347
  ],
58287
58348
  },
58288
58349
 
58350
+ defaultOptions: ["always"],
58351
+
58289
58352
  messages: {
58290
58353
  matchProperty:
58291
58354
  "Function name `{{funcName}}` should match property name `{{name}}`.",
@@ -58751,8 +58814,6 @@ function requireFuncStyle () {
58751
58814
  /** @type {import('../types').Rule.RuleModule} */
58752
58815
  funcStyle = {
58753
58816
  meta: {
58754
- dialects: ["javascript", "typescript"],
58755
- language: "javascript",
58756
58817
  type: "suggestion",
58757
58818
 
58758
58819
  defaultOptions: [
@@ -58767,6 +58828,7 @@ function requireFuncStyle () {
58767
58828
  docs: {
58768
58829
  description:
58769
58830
  "Enforce the consistent use of either `function` declarations or expressions assigned to variables",
58831
+ dialects: ["JavaScript", "TypeScript"],
58770
58832
  recommended: false,
58771
58833
  frozen: true,
58772
58834
  url: "https://eslint.org/docs/latest/rules/func-style",
@@ -65616,12 +65678,11 @@ function requireInitDeclarations () {
65616
65678
  initDeclarations = {
65617
65679
  meta: {
65618
65680
  type: "suggestion",
65619
- dialects: ["typescript", "javascript"],
65620
- language: "javascript",
65621
65681
 
65622
65682
  docs: {
65623
65683
  description:
65624
65684
  "Require or disallow initialization in variable declarations",
65685
+ dialects: ["JavaScript", "TypeScript"],
65625
65686
  recommended: false,
65626
65687
  frozen: true,
65627
65688
  url: "https://eslint.org/docs/latest/rules/init-declarations",
@@ -65660,6 +65721,9 @@ function requireInitDeclarations () {
65660
65721
  },
65661
65722
  ],
65662
65723
  },
65724
+
65725
+ defaultOptions: ["always"],
65726
+
65663
65727
  messages: {
65664
65728
  initialized:
65665
65729
  "Variable '{{idName}}' should be initialized on declaration.",
@@ -65669,10 +65733,7 @@ function requireInitDeclarations () {
65669
65733
  },
65670
65734
 
65671
65735
  create(context) {
65672
- const MODE_ALWAYS = "always",
65673
- MODE_NEVER = "never";
65674
-
65675
- const mode = context.options[0] || MODE_ALWAYS;
65736
+ const mode = context.options[0];
65676
65737
  const params = context.options[1] || {};
65677
65738
 
65678
65739
  // Track whether we're inside a declared namespace
@@ -65711,10 +65772,10 @@ function requireInitDeclarations () {
65711
65772
  params.ignoreForLoopInit && isForLoop(node.parent);
65712
65773
  let messageId = "";
65713
65774
 
65714
- if (mode === MODE_ALWAYS && !initialized) {
65775
+ if (mode === "always" && !initialized) {
65715
65776
  messageId = "initialized";
65716
65777
  } else if (
65717
- mode === MODE_NEVER &&
65778
+ mode === "never" &&
65718
65779
  !CONSTANT_BINDINGS.has(kind) &&
65719
65780
  initialized &&
65720
65781
  !isIgnoredForLoop
@@ -69205,6 +69266,9 @@ function requireLogicalAssignmentOperators () {
69205
69266
  },
69206
69267
  ],
69207
69268
  },
69269
+
69270
+ defaultOptions: ["always"],
69271
+
69208
69272
  fixable: "code",
69209
69273
  hasSuggestions: true,
69210
69274
  messages: {
@@ -69227,7 +69291,7 @@ function requireLogicalAssignmentOperators () {
69227
69291
  },
69228
69292
 
69229
69293
  create(context) {
69230
- const mode = context.options[0] === "never" ? "never" : "always";
69294
+ const mode = context.options[0];
69231
69295
  const checkIf =
69232
69296
  mode === "always" &&
69233
69297
  context.options.length > 1 &&
@@ -69690,16 +69754,18 @@ function requireMaxClassesPerFile () {
69690
69754
  },
69691
69755
  ],
69692
69756
 
69757
+ defaultOptions: [1],
69758
+
69693
69759
  messages: {
69694
69760
  maximumExceeded:
69695
69761
  "File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}.",
69696
69762
  },
69697
69763
  },
69698
69764
  create(context) {
69699
- const [option = {}] = context.options;
69765
+ const option = context.options[0];
69700
69766
  const [ignoreExpressions, max] =
69701
69767
  typeof option === "number"
69702
- ? [false, option || 1]
69768
+ ? [false, option]
69703
69769
  : [option.ignoreExpressions, option.max || 1];
69704
69770
 
69705
69771
  let classCount = 0;
@@ -69785,6 +69851,9 @@ function requireMaxDepth () {
69785
69851
  ],
69786
69852
  },
69787
69853
  ],
69854
+
69855
+ defaultOptions: [4],
69856
+
69788
69857
  messages: {
69789
69858
  tooDeeply:
69790
69859
  "Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}.",
@@ -70479,6 +70548,9 @@ function requireMaxLines () {
70479
70548
  ],
70480
70549
  },
70481
70550
  ],
70551
+
70552
+ defaultOptions: [300],
70553
+
70482
70554
  messages: {
70483
70555
  exceed: "File has too many lines ({{actual}}). Maximum allowed is {{max}}.",
70484
70556
  },
@@ -70690,6 +70762,9 @@ function requireMaxLinesPerFunction () {
70690
70762
  },
70691
70763
 
70692
70764
  schema: [OPTIONS_OR_INTEGER_SCHEMA],
70765
+
70766
+ defaultOptions: [50],
70767
+
70693
70768
  messages: {
70694
70769
  exceed: "{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}.",
70695
70770
  },
@@ -70902,6 +70977,9 @@ function requireMaxNestedCallbacks () {
70902
70977
  ],
70903
70978
  },
70904
70979
  ],
70980
+
70981
+ defaultOptions: [10],
70982
+
70905
70983
  messages: {
70906
70984
  exceed: "Too many nested callbacks ({{num}}). Maximum allowed is {{max}}.",
70907
70985
  },
@@ -71001,12 +71079,11 @@ function requireMaxParams () {
71001
71079
  maxParams = {
71002
71080
  meta: {
71003
71081
  type: "suggestion",
71004
- dialects: ["typescript", "javascript"],
71005
- language: "javascript",
71006
71082
 
71007
71083
  docs: {
71008
71084
  description:
71009
71085
  "Enforce a maximum number of parameters in function definitions",
71086
+ dialects: ["JavaScript", "TypeScript"],
71010
71087
  recommended: false,
71011
71088
  url: "https://eslint.org/docs/latest/rules/max-params",
71012
71089
  },
@@ -71046,6 +71123,9 @@ function requireMaxParams () {
71046
71123
  ],
71047
71124
  },
71048
71125
  ],
71126
+
71127
+ defaultOptions: [3],
71128
+
71049
71129
  messages: {
71050
71130
  exceed: "{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}.",
71051
71131
  },
@@ -71198,6 +71278,9 @@ function requireMaxStatements () {
71198
71278
  additionalProperties: false,
71199
71279
  },
71200
71280
  ],
71281
+
71282
+ defaultOptions: [10],
71283
+
71201
71284
  messages: {
71202
71285
  exceed: "{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}.",
71203
71286
  },
@@ -73820,12 +73903,11 @@ function requireNoArrayConstructor () {
73820
73903
  /** @type {import('../types').Rule.RuleModule} */
73821
73904
  noArrayConstructor = {
73822
73905
  meta: {
73823
- dialects: ["javascript", "typescript"],
73824
- language: "javascript",
73825
73906
  type: "suggestion",
73826
73907
 
73827
73908
  docs: {
73828
73909
  description: "Disallow `Array` constructors",
73910
+ dialects: ["JavaScript", "TypeScript"],
73829
73911
  recommended: false,
73830
73912
  url: "https://eslint.org/docs/latest/rules/no-array-constructor",
73831
73913
  },
@@ -79864,11 +79946,10 @@ function requireNoDupeClassMembers () {
79864
79946
  noDupeClassMembers = {
79865
79947
  meta: {
79866
79948
  type: "problem",
79867
- dialects: ["javascript", "typescript"],
79868
- language: "javascript",
79869
79949
 
79870
79950
  docs: {
79871
79951
  description: "Disallow duplicate class members",
79952
+ dialects: ["JavaScript", "TypeScript"],
79872
79953
  recommended: true,
79873
79954
  url: "https://eslint.org/docs/latest/rules/no-dupe-class-members",
79874
79955
  },
@@ -80681,8 +80762,6 @@ function requireNoDuplicateImports () {
80681
80762
  /** @type {import('../types').Rule.RuleModule} */
80682
80763
  noDuplicateImports = {
80683
80764
  meta: {
80684
- dialects: ["javascript", "typescript"],
80685
- language: "javascript",
80686
80765
  type: "problem",
80687
80766
 
80688
80767
  defaultOptions: [
@@ -80694,6 +80773,7 @@ function requireNoDuplicateImports () {
80694
80773
 
80695
80774
  docs: {
80696
80775
  description: "Disallow duplicate module imports",
80776
+ dialects: ["JavaScript", "TypeScript"],
80697
80777
  recommended: false,
80698
80778
  url: "https://eslint.org/docs/latest/rules/no-duplicate-imports",
80699
80779
  },
@@ -81717,8 +81797,6 @@ function requireNoEmptyFunction () {
81717
81797
  /** @type {import('../types').Rule.RuleModule} */
81718
81798
  noEmptyFunction = {
81719
81799
  meta: {
81720
- dialects: ["javascript", "typescript"],
81721
- language: "javascript",
81722
81800
  hasSuggestions: true,
81723
81801
  type: "suggestion",
81724
81802
 
@@ -81726,6 +81804,7 @@ function requireNoEmptyFunction () {
81726
81804
 
81727
81805
  docs: {
81728
81806
  description: "Disallow empty functions",
81807
+ dialects: ["JavaScript", "TypeScript"],
81729
81808
  recommended: false,
81730
81809
  url: "https://eslint.org/docs/latest/rules/no-empty-function",
81731
81810
  },
@@ -87565,8 +87644,6 @@ function requireNoInvalidThis () {
87565
87644
  /** @type {import('../types').Rule.RuleModule} */
87566
87645
  noInvalidThis = {
87567
87646
  meta: {
87568
- dialects: ["javascript", "typescript"],
87569
- language: "javascript",
87570
87647
  type: "suggestion",
87571
87648
 
87572
87649
  defaultOptions: [{ capIsConstructor: true }],
@@ -87574,6 +87651,7 @@ function requireNoInvalidThis () {
87574
87651
  docs: {
87575
87652
  description:
87576
87653
  "Disallow use of `this` in contexts where the value of `this` is `undefined`",
87654
+ dialects: ["JavaScript", "TypeScript"],
87577
87655
  recommended: false,
87578
87656
  url: "https://eslint.org/docs/latest/rules/no-invalid-this",
87579
87657
  },
@@ -88645,12 +88723,11 @@ function requireNoLoopFunc () {
88645
88723
  noLoopFunc = {
88646
88724
  meta: {
88647
88725
  type: "suggestion",
88648
- dialects: ["typescript", "javascript"],
88649
- language: "javascript",
88650
88726
 
88651
88727
  docs: {
88652
88728
  description:
88653
88729
  "Disallow function declarations that contain unsafe references inside loop statements",
88730
+ dialects: ["JavaScript", "TypeScript"],
88654
88731
  recommended: false,
88655
88732
  url: "https://eslint.org/docs/latest/rules/no-loop-func",
88656
88733
  },
@@ -89103,11 +89180,10 @@ function requireNoLossOfPrecision () {
89103
89180
  noLossOfPrecision = {
89104
89181
  meta: {
89105
89182
  type: "problem",
89106
- dialects: ["typescript", "javascript"],
89107
- language: "javascript",
89108
89183
 
89109
89184
  docs: {
89110
89185
  description: "Disallow literal numbers that lose precision",
89186
+ dialects: ["JavaScript", "TypeScript"],
89111
89187
  recommended: true,
89112
89188
  url: "https://eslint.org/docs/latest/rules/no-loss-of-precision",
89113
89189
  },
@@ -89232,11 +89308,10 @@ function requireNoMagicNumbers () {
89232
89308
  noMagicNumbers = {
89233
89309
  meta: {
89234
89310
  type: "suggestion",
89235
- dialects: ["typescript", "javascript"],
89236
- language: "javascript",
89237
89311
 
89238
89312
  docs: {
89239
89313
  description: "Disallow magic numbers",
89314
+ dialects: ["JavaScript", "TypeScript"],
89240
89315
  recommended: false,
89241
89316
  frozen: true,
89242
89317
  url: "https://eslint.org/docs/latest/rules/no-magic-numbers",
@@ -89248,11 +89323,9 @@ function requireNoMagicNumbers () {
89248
89323
  properties: {
89249
89324
  detectObjects: {
89250
89325
  type: "boolean",
89251
- default: false,
89252
89326
  },
89253
89327
  enforceConst: {
89254
89328
  type: "boolean",
89255
- default: false,
89256
89329
  },
89257
89330
  ignore: {
89258
89331
  type: "array",
@@ -89269,37 +89342,45 @@ function requireNoMagicNumbers () {
89269
89342
  },
89270
89343
  ignoreArrayIndexes: {
89271
89344
  type: "boolean",
89272
- default: false,
89273
89345
  },
89274
89346
  ignoreDefaultValues: {
89275
89347
  type: "boolean",
89276
- default: false,
89277
89348
  },
89278
89349
  ignoreClassFieldInitialValues: {
89279
89350
  type: "boolean",
89280
- default: false,
89281
89351
  },
89282
89352
  ignoreEnums: {
89283
89353
  type: "boolean",
89284
- default: false,
89285
89354
  },
89286
89355
  ignoreNumericLiteralTypes: {
89287
89356
  type: "boolean",
89288
- default: false,
89289
89357
  },
89290
89358
  ignoreReadonlyClassProperties: {
89291
89359
  type: "boolean",
89292
- default: false,
89293
89360
  },
89294
89361
  ignoreTypeIndexes: {
89295
89362
  type: "boolean",
89296
- default: false,
89297
89363
  },
89298
89364
  },
89299
89365
  additionalProperties: false,
89300
89366
  },
89301
89367
  ],
89302
89368
 
89369
+ defaultOptions: [
89370
+ {
89371
+ detectObjects: false,
89372
+ enforceConst: false,
89373
+ ignore: [],
89374
+ ignoreArrayIndexes: false,
89375
+ ignoreDefaultValues: false,
89376
+ ignoreClassFieldInitialValues: false,
89377
+ ignoreEnums: false,
89378
+ ignoreNumericLiteralTypes: false,
89379
+ ignoreReadonlyClassProperties: false,
89380
+ ignoreTypeIndexes: false,
89381
+ },
89382
+ ],
89383
+
89303
89384
  messages: {
89304
89385
  useConst: "Number constants declarations must use 'const'.",
89305
89386
  noMagic: "No magic number: {{raw}}.",
@@ -89307,19 +89388,19 @@ function requireNoMagicNumbers () {
89307
89388
  },
89308
89389
 
89309
89390
  create(context) {
89310
- const config = context.options[0] || {},
89311
- detectObjects = !!config.detectObjects,
89312
- enforceConst = !!config.enforceConst,
89313
- ignore = new Set((config.ignore || []).map(normalizeIgnoreValue)),
89314
- ignoreArrayIndexes = !!config.ignoreArrayIndexes,
89315
- ignoreDefaultValues = !!config.ignoreDefaultValues,
89316
- ignoreClassFieldInitialValues =
89317
- !!config.ignoreClassFieldInitialValues,
89318
- ignoreEnums = !!config.ignoreEnums,
89319
- ignoreNumericLiteralTypes = !!config.ignoreNumericLiteralTypes,
89320
- ignoreReadonlyClassProperties =
89321
- !!config.ignoreReadonlyClassProperties,
89322
- ignoreTypeIndexes = !!config.ignoreTypeIndexes;
89391
+ const {
89392
+ detectObjects,
89393
+ enforceConst,
89394
+ ignore: rawIgnore,
89395
+ ignoreArrayIndexes,
89396
+ ignoreDefaultValues,
89397
+ ignoreClassFieldInitialValues,
89398
+ ignoreEnums,
89399
+ ignoreNumericLiteralTypes,
89400
+ ignoreReadonlyClassProperties,
89401
+ ignoreTypeIndexes,
89402
+ } = context.options[0];
89403
+ const ignore = new Set(rawIgnore.map(normalizeIgnoreValue));
89323
89404
 
89324
89405
  const okTypes = detectObjects
89325
89406
  ? []
@@ -94860,6 +94941,8 @@ function requireNoRestrictedExports () {
94860
94941
  },
94861
94942
  ],
94862
94943
 
94944
+ defaultOptions: [{}],
94945
+
94863
94946
  messages: {
94864
94947
  restrictedNamed:
94865
94948
  "'{{name}}' is restricted from being used as an exported name.",
@@ -94868,14 +94951,12 @@ function requireNoRestrictedExports () {
94868
94951
  },
94869
94952
 
94870
94953
  create(context) {
94871
- const restrictedNames = new Set(
94872
- context.options[0] && context.options[0].restrictedNamedExports,
94873
- );
94874
- const restrictedNamePattern =
94875
- context.options[0] &&
94876
- context.options[0].restrictedNamedExportsPattern;
94877
- const restrictDefaultExports =
94878
- context.options[0] && context.options[0].restrictDefaultExports;
94954
+ const {
94955
+ restrictedNamedExports,
94956
+ restrictedNamedExportsPattern: restrictedNamePattern,
94957
+ restrictDefaultExports,
94958
+ } = context.options[0];
94959
+ const restrictedNames = new Set(restrictedNamedExports);
94879
94960
  const sourceCode = context.sourceCode;
94880
94961
 
94881
94962
  /**
@@ -95057,12 +95138,11 @@ function requireNoRestrictedGlobals () {
95057
95138
  /** @type {import('../types').Rule.RuleModule} */
95058
95139
  noRestrictedGlobals = {
95059
95140
  meta: {
95060
- dialects: ["javascript", "typescript"],
95061
- language: "javascript",
95062
95141
  type: "suggestion",
95063
95142
 
95064
95143
  docs: {
95065
95144
  description: "Disallow specified global variables",
95145
+ dialects: ["JavaScript", "TypeScript"],
95066
95146
  recommended: false,
95067
95147
  url: "https://eslint.org/docs/latest/rules/no-restricted-globals",
95068
95148
  },
@@ -96095,11 +96175,10 @@ function requireNoRestrictedImports () {
96095
96175
  noRestrictedImports = {
96096
96176
  meta: {
96097
96177
  type: "suggestion",
96098
- dialects: ["typescript", "javascript"],
96099
- language: "javascript",
96100
96178
 
96101
96179
  docs: {
96102
96180
  description: "Disallow specified modules when loaded by `import`",
96181
+ dialects: ["JavaScript", "TypeScript"],
96103
96182
  recommended: false,
96104
96183
  url: "https://eslint.org/docs/latest/rules/no-restricted-imports",
96105
96184
  },
@@ -97152,6 +97231,8 @@ function requireNoRestrictedProperties () {
97152
97231
  uniqueItems: true,
97153
97232
  },
97154
97233
 
97234
+ defaultOptions: [],
97235
+
97155
97236
  messages: {
97156
97237
  restrictedObjectProperty:
97157
97238
  // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period
@@ -97365,6 +97446,8 @@ function requireNoRestrictedSyntax () {
97365
97446
  minItems: 0,
97366
97447
  },
97367
97448
 
97449
+ defaultOptions: [],
97450
+
97368
97451
  messages: {
97369
97452
  // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period
97370
97453
  restrictedSyntax: "{{message}}",
@@ -98478,8 +98561,6 @@ function requireNoShadow () {
98478
98561
  noShadow = {
98479
98562
  meta: {
98480
98563
  type: "suggestion",
98481
- dialects: ["typescript", "javascript"],
98482
- language: "javascript",
98483
98564
 
98484
98565
  defaultOptions: [
98485
98566
  {
@@ -98495,6 +98576,7 @@ function requireNoShadow () {
98495
98576
  docs: {
98496
98577
  description:
98497
98578
  "Disallow variable declarations from shadowing variables declared in the outer scope",
98579
+ dialects: ["JavaScript", "TypeScript"],
98498
98580
  recommended: false,
98499
98581
  url: "https://eslint.org/docs/latest/rules/no-shadow",
98500
98582
  },
@@ -100419,12 +100501,11 @@ function requireNoUnassignedVars () {
100419
100501
  noUnassignedVars = {
100420
100502
  meta: {
100421
100503
  type: "problem",
100422
- dialects: ["typescript", "javascript"],
100423
- language: "javascript",
100424
100504
 
100425
100505
  docs: {
100426
100506
  description:
100427
100507
  "Disallow `let` or `var` variables that are read but never assigned",
100508
+ dialects: ["JavaScript", "TypeScript"],
100428
100509
  recommended: true,
100429
100510
  url: "https://eslint.org/docs/latest/rules/no-unassigned-vars",
100430
100511
  },
@@ -103004,12 +103085,11 @@ function requireNoUnusedExpressions () {
103004
103085
  /** @type {import('../types').Rule.RuleModule} */
103005
103086
  noUnusedExpressions = {
103006
103087
  meta: {
103007
- dialects: ["javascript", "typescript"],
103008
- language: "javascript",
103009
103088
  type: "suggestion",
103010
103089
 
103011
103090
  docs: {
103012
103091
  description: "Disallow unused expressions",
103092
+ dialects: ["JavaScript", "TypeScript"],
103013
103093
  recommended: false,
103014
103094
  url: "https://eslint.org/docs/latest/rules/no-unused-expressions",
103015
103095
  },
@@ -103845,6 +103925,20 @@ function requireNoUnusedVars () {
103845
103925
  * @property {string} additional Any additional info to be appended at the end.
103846
103926
  */
103847
103927
 
103928
+ //------------------------------------------------------------------------------
103929
+ // Helpers
103930
+ //------------------------------------------------------------------------------
103931
+
103932
+ const DEFAULT_OPTIONS = {
103933
+ vars: "all",
103934
+ args: "after-used",
103935
+ ignoreRestSiblings: false,
103936
+ caughtErrors: "all",
103937
+ ignoreClassWithStaticInitBlock: false,
103938
+ ignoreUsingDeclarations: false,
103939
+ reportUsedIgnorePattern: false,
103940
+ };
103941
+
103848
103942
  //------------------------------------------------------------------------------
103849
103943
  // Rule Definition
103850
103944
  //------------------------------------------------------------------------------
@@ -103911,6 +104005,8 @@ function requireNoUnusedVars () {
103911
104005
  },
103912
104006
  ],
103913
104007
 
104008
+ defaultOptions: [DEFAULT_OPTIONS],
104009
+
103914
104010
  messages: {
103915
104011
  unusedVar:
103916
104012
  "'{{varName}}' is {{action}} but never used{{additional}}.",
@@ -103926,65 +104022,46 @@ function requireNoUnusedVars () {
103926
104022
  const REST_PROPERTY_TYPE =
103927
104023
  /^(?:RestElement|(?:Experimental)?RestProperty)$/u;
103928
104024
 
103929
- const config = {
103930
- vars: "all",
103931
- args: "after-used",
103932
- ignoreRestSiblings: false,
103933
- caughtErrors: "all",
103934
- ignoreClassWithStaticInitBlock: false,
103935
- ignoreUsingDeclarations: false,
103936
- reportUsedIgnorePattern: false,
103937
- };
104025
+ let config;
103938
104026
 
103939
104027
  const firstOption = context.options[0];
103940
104028
 
103941
- if (firstOption) {
103942
- if (typeof firstOption === "string") {
103943
- config.vars = firstOption;
103944
- } else {
103945
- config.vars = firstOption.vars || config.vars;
103946
- config.args = firstOption.args || config.args;
103947
- config.ignoreRestSiblings =
103948
- firstOption.ignoreRestSiblings || config.ignoreRestSiblings;
103949
- config.caughtErrors =
103950
- firstOption.caughtErrors || config.caughtErrors;
103951
- config.ignoreClassWithStaticInitBlock =
103952
- firstOption.ignoreClassWithStaticInitBlock ||
103953
- config.ignoreClassWithStaticInitBlock;
103954
- config.ignoreUsingDeclarations =
103955
- firstOption.ignoreUsingDeclarations ||
103956
- config.ignoreUsingDeclarations;
103957
- config.reportUsedIgnorePattern =
103958
- firstOption.reportUsedIgnorePattern ||
103959
- config.reportUsedIgnorePattern;
103960
-
103961
- if (firstOption.varsIgnorePattern) {
103962
- config.varsIgnorePattern = new RegExp(
103963
- firstOption.varsIgnorePattern,
103964
- "u",
103965
- );
103966
- }
104029
+ if (typeof firstOption === "string") {
104030
+ config = {
104031
+ ...DEFAULT_OPTIONS,
104032
+ vars: firstOption,
104033
+ };
104034
+ } else {
104035
+ config = {
104036
+ ...firstOption,
104037
+ };
103967
104038
 
103968
- if (firstOption.argsIgnorePattern) {
103969
- config.argsIgnorePattern = new RegExp(
103970
- firstOption.argsIgnorePattern,
103971
- "u",
103972
- );
103973
- }
104039
+ if (firstOption.varsIgnorePattern) {
104040
+ config.varsIgnorePattern = new RegExp(
104041
+ firstOption.varsIgnorePattern,
104042
+ "u",
104043
+ );
104044
+ }
103974
104045
 
103975
- if (firstOption.caughtErrorsIgnorePattern) {
103976
- config.caughtErrorsIgnorePattern = new RegExp(
103977
- firstOption.caughtErrorsIgnorePattern,
103978
- "u",
103979
- );
103980
- }
104046
+ if (firstOption.argsIgnorePattern) {
104047
+ config.argsIgnorePattern = new RegExp(
104048
+ firstOption.argsIgnorePattern,
104049
+ "u",
104050
+ );
104051
+ }
103981
104052
 
103982
- if (firstOption.destructuredArrayIgnorePattern) {
103983
- config.destructuredArrayIgnorePattern = new RegExp(
103984
- firstOption.destructuredArrayIgnorePattern,
103985
- "u",
103986
- );
103987
- }
104053
+ if (firstOption.caughtErrorsIgnorePattern) {
104054
+ config.caughtErrorsIgnorePattern = new RegExp(
104055
+ firstOption.caughtErrorsIgnorePattern,
104056
+ "u",
104057
+ );
104058
+ }
104059
+
104060
+ if (firstOption.destructuredArrayIgnorePattern) {
104061
+ config.destructuredArrayIgnorePattern = new RegExp(
104062
+ firstOption.destructuredArrayIgnorePattern,
104063
+ "u",
104064
+ );
103988
104065
  }
103989
104066
  }
103990
104067
 
@@ -105833,13 +105910,12 @@ function requireNoUseBeforeDefine () {
105833
105910
  /** @type {import('../types').Rule.RuleModule} */
105834
105911
  noUseBeforeDefine = {
105835
105912
  meta: {
105836
- dialects: ["javascript", "typescript"],
105837
- language: "javascript",
105838
105913
  type: "problem",
105839
105914
 
105840
105915
  docs: {
105841
105916
  description:
105842
105917
  "Disallow the use of variables before they are defined",
105918
+ dialects: ["JavaScript", "TypeScript"],
105843
105919
  recommended: false,
105844
105920
  url: "https://eslint.org/docs/latest/rules/no-use-before-define",
105845
105921
  },
@@ -107631,12 +107707,11 @@ function requireNoUselessConstructor () {
107631
107707
  /** @type {import('../types').Rule.RuleModule} */
107632
107708
  noUselessConstructor = {
107633
107709
  meta: {
107634
- dialects: ["javascript", "typescript"],
107635
- language: "javascript",
107636
107710
  type: "suggestion",
107637
107711
 
107638
107712
  docs: {
107639
107713
  description: "Disallow unnecessary constructors",
107714
+ dialects: ["JavaScript", "TypeScript"],
107640
107715
  recommended: false,
107641
107716
  url: "https://eslint.org/docs/latest/rules/no-useless-constructor",
107642
107717
  },
@@ -109001,11 +109076,10 @@ function requireNoVar () {
109001
109076
  noVar = {
109002
109077
  meta: {
109003
109078
  type: "suggestion",
109004
- dialects: ["typescript", "javascript"],
109005
- language: "javascript",
109006
109079
 
109007
109080
  docs: {
109008
109081
  description: "Require `let` or `const` instead of `var`",
109082
+ dialects: ["JavaScript", "TypeScript"],
109009
109083
  recommended: false,
109010
109084
  url: "https://eslint.org/docs/latest/rules/no-var",
109011
109085
  },
@@ -110969,6 +111043,8 @@ function requireObjectShorthand () {
110969
111043
  ],
110970
111044
  },
110971
111045
 
111046
+ defaultOptions: ["always"],
111047
+
110972
111048
  messages: {
110973
111049
  expectedAllPropertiesShorthanded:
110974
111050
  "Expected shorthand for all properties.",
@@ -110984,7 +111060,7 @@ function requireObjectShorthand () {
110984
111060
  },
110985
111061
 
110986
111062
  create(context) {
110987
- const APPLY = context.options[0] || OPTIONS.always;
111063
+ const APPLY = context.options[0];
110988
111064
  const APPLY_TO_METHODS =
110989
111065
  APPLY === OPTIONS.methods || APPLY === OPTIONS.always;
110990
111066
  const APPLY_TO_PROPS =
@@ -111532,6 +111608,8 @@ function requireOneVar () {
111532
111608
  },
111533
111609
  ],
111534
111610
 
111611
+ defaultOptions: ["always"],
111612
+
111535
111613
  messages: {
111536
111614
  combineUninitialized:
111537
111615
  "Combine this with the previous '{{type}}' statement with uninitialized variables.",
@@ -111552,7 +111630,7 @@ function requireOneVar () {
111552
111630
  const MODE_ALWAYS = "always";
111553
111631
  const MODE_NEVER = "never";
111554
111632
  const MODE_CONSECUTIVE = "consecutive";
111555
- const mode = context.options[0] || MODE_ALWAYS;
111633
+ const mode = context.options[0];
111556
111634
 
111557
111635
  const options = {};
111558
111636
 
@@ -114046,8 +114124,6 @@ function requirePreferArrowCallback () {
114046
114124
  preferArrowCallback = {
114047
114125
  meta: {
114048
114126
  type: "suggestion",
114049
- dialects: ["javascript", "typescript"],
114050
- language: "javascript",
114051
114127
 
114052
114128
  defaultOptions: [
114053
114129
  { allowNamedFunctions: false, allowUnboundThis: true },
@@ -114055,6 +114131,7 @@ function requirePreferArrowCallback () {
114055
114131
 
114056
114132
  docs: {
114057
114133
  description: "Require using arrow functions for callbacks",
114134
+ dialects: ["JavaScript", "TypeScript"],
114058
114135
  recommended: false,
114059
114136
  frozen: true,
114060
114137
  url: "https://eslint.org/docs/latest/rules/prefer-arrow-callback",
@@ -114212,6 +114289,24 @@ function requirePreferArrowCallback () {
114212
114289
  return;
114213
114290
  }
114214
114291
 
114292
+ const functionToken = sourceCode.getFirstToken(
114293
+ node,
114294
+ node.async ? 1 : 0,
114295
+ );
114296
+ const leftParenToken = sourceCode.getTokenAfter(
114297
+ functionToken,
114298
+ astUtils.isOpeningParenToken,
114299
+ );
114300
+
114301
+ if (node.async) {
114302
+ if (
114303
+ functionToken.loc.end.line <
114304
+ leftParenToken.loc.start.line
114305
+ ) {
114306
+ return;
114307
+ }
114308
+ }
114309
+
114215
114310
  // Remove `.bind(this)` if exists.
114216
114311
  if (callbackInfo.isLexicalThis) {
114217
114312
  const memberNode = node.parent;
@@ -114264,14 +114359,6 @@ function requirePreferArrowCallback () {
114264
114359
  }
114265
114360
 
114266
114361
  // Convert the function expression to an arrow function.
114267
- const functionToken = sourceCode.getFirstToken(
114268
- node,
114269
- node.async ? 1 : 0,
114270
- );
114271
- const leftParenToken = sourceCode.getTokenAfter(
114272
- functionToken,
114273
- astUtils.isOpeningParenToken,
114274
- );
114275
114362
  const tokenBeforeBody = sourceCode.getTokenBefore(
114276
114363
  node.body,
114277
114364
  );