eslint-linter-browserify 10.3.0 → 10.4.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 (5) hide show
  1. package/linter.cjs +433 -360
  2. package/linter.js +433 -360
  3. package/linter.min.js +3 -3
  4. package/linter.mjs +433 -360
  5. package/package.json +3 -3
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.0";
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
  }
@@ -22724,13 +22735,13 @@ var hasRequiredCommonjs$2;
22724
22735
  function requireCommonjs$2 () {
22725
22736
  if (hasRequiredCommonjs$2) return commonjs;
22726
22737
  hasRequiredCommonjs$2 = 1;
22727
- (function (exports$1) {
22728
- Object.defineProperty(exports$1, "__esModule", { value: true });
22729
- exports$1.range = exports$1.balanced = void 0;
22738
+ (function (exports) {
22739
+ Object.defineProperty(exports, "__esModule", { value: true });
22740
+ exports.range = exports.balanced = void 0;
22730
22741
  const balanced = (a, b, str) => {
22731
22742
  const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
22732
22743
  const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
22733
- const r = ma !== null && mb != null && (0, exports$1.range)(ma, mb, str);
22744
+ const r = ma !== null && mb != null && (0, exports.range)(ma, mb, str);
22734
22745
  return (r && {
22735
22746
  start: r[0],
22736
22747
  end: r[1],
@@ -22739,7 +22750,7 @@ function requireCommonjs$2 () {
22739
22750
  post: str.slice(r[1] + mb.length),
22740
22751
  });
22741
22752
  };
22742
- exports$1.balanced = balanced;
22753
+ exports.balanced = balanced;
22743
22754
  const maybeMatch = (reg, str) => {
22744
22755
  const m = str.match(reg);
22745
22756
  return m ? m[0] : null;
@@ -22781,7 +22792,7 @@ function requireCommonjs$2 () {
22781
22792
  }
22782
22793
  return result;
22783
22794
  };
22784
- exports$1.range = range;
22795
+ exports.range = range;
22785
22796
 
22786
22797
  } (commonjs));
22787
22798
  return commonjs;
@@ -22792,10 +22803,10 @@ var hasRequiredCommonjs$1;
22792
22803
  function requireCommonjs$1 () {
22793
22804
  if (hasRequiredCommonjs$1) return commonjs$1;
22794
22805
  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;
22806
+ (function (exports) {
22807
+ Object.defineProperty(exports, "__esModule", { value: true });
22808
+ exports.EXPANSION_MAX = void 0;
22809
+ exports.expand = expand;
22799
22810
  const balanced_match_1 = requireCommonjs$2();
22800
22811
  const escSlash = '\0SLASH' + Math.random() + '\0';
22801
22812
  const escOpen = '\0OPEN' + Math.random() + '\0';
@@ -22812,7 +22823,7 @@ function requireCommonjs$1 () {
22812
22823
  const closePattern = /\\}/g;
22813
22824
  const commaPattern = /\\,/g;
22814
22825
  const periodPattern = /\\\./g;
22815
- exports$1.EXPANSION_MAX = 100_000;
22826
+ exports.EXPANSION_MAX = 100_000;
22816
22827
  function numeric(str) {
22817
22828
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
22818
22829
  }
@@ -22861,7 +22872,7 @@ function requireCommonjs$1 () {
22861
22872
  if (!str) {
22862
22873
  return [];
22863
22874
  }
22864
- const { max = exports$1.EXPANSION_MAX } = options;
22875
+ const { max = exports.EXPANSION_MAX } = options;
22865
22876
  // I don't know why Bash 4.3 does this, but it does.
22866
22877
  // Anything starting with {} will have the first two bytes preserved
22867
22878
  // but *only* at the top level, so {},a}b will not expand to anything,
@@ -24123,9 +24134,9 @@ var hasRequiredCommonjs;
24123
24134
  function requireCommonjs () {
24124
24135
  if (hasRequiredCommonjs) return commonjs$2;
24125
24136
  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;
24137
+ (function (exports) {
24138
+ Object.defineProperty(exports, "__esModule", { value: true });
24139
+ 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
24140
  const brace_expansion_1 = requireCommonjs$1();
24130
24141
  const assert_valid_pattern_js_1 = requireAssertValidPattern();
24131
24142
  const ast_js_1 = requireAst$1();
@@ -24139,7 +24150,7 @@ function requireCommonjs () {
24139
24150
  }
24140
24151
  return new Minimatch(pattern, options).match(p);
24141
24152
  };
24142
- exports$1.minimatch = minimatch;
24153
+ exports.minimatch = minimatch;
24143
24154
  // Optimized checking for the most common glob patterns.
24144
24155
  const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
24145
24156
  const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
@@ -24203,10 +24214,10 @@ function requireCommonjs () {
24203
24214
  posix: { sep: '/' },
24204
24215
  };
24205
24216
  /* 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;
24217
+ exports.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
24218
+ exports.minimatch.sep = exports.sep;
24219
+ exports.GLOBSTAR = Symbol('globstar **');
24220
+ exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
24210
24221
  // any single thing other than /
24211
24222
  // don't need to escape / when using new RegExp()
24212
24223
  const qmark = '[^/]';
@@ -24219,15 +24230,15 @@ function requireCommonjs () {
24219
24230
  // not a ^ or / followed by a dot,
24220
24231
  // followed by anything, any number of times.
24221
24232
  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;
24233
+ const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options);
24234
+ exports.filter = filter;
24235
+ exports.minimatch.filter = exports.filter;
24225
24236
  const ext = (a, b = {}) => Object.assign({}, a, b);
24226
24237
  const defaults = (def) => {
24227
24238
  if (!def || typeof def !== 'object' || !Object.keys(def).length) {
24228
- return exports$1.minimatch;
24239
+ return exports.minimatch;
24229
24240
  }
24230
- const orig = exports$1.minimatch;
24241
+ const orig = exports.minimatch;
24231
24242
  const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
24232
24243
  return Object.assign(m, {
24233
24244
  Minimatch: class Minimatch extends orig.Minimatch {
@@ -24256,11 +24267,11 @@ function requireCommonjs () {
24256
24267
  braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
24257
24268
  match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
24258
24269
  sep: orig.sep,
24259
- GLOBSTAR: exports$1.GLOBSTAR,
24270
+ GLOBSTAR: exports.GLOBSTAR,
24260
24271
  });
24261
24272
  };
24262
- exports$1.defaults = defaults;
24263
- exports$1.minimatch.defaults = exports$1.defaults;
24273
+ exports.defaults = defaults;
24274
+ exports.minimatch.defaults = exports.defaults;
24264
24275
  // Brace expansion:
24265
24276
  // a{b,c}d -> abd acd
24266
24277
  // a{b,}c -> abc ac
@@ -24281,8 +24292,8 @@ function requireCommonjs () {
24281
24292
  }
24282
24293
  return (0, brace_expansion_1.expand)(pattern, { max: options.braceExpandMax });
24283
24294
  };
24284
- exports$1.braceExpand = braceExpand;
24285
- exports$1.minimatch.braceExpand = exports$1.braceExpand;
24295
+ exports.braceExpand = braceExpand;
24296
+ exports.minimatch.braceExpand = exports.braceExpand;
24286
24297
  // parse a component of the expanded set.
24287
24298
  // At this point, no pattern may contain "/" in it
24288
24299
  // so we're going to return a 2d array, where each entry is the full
@@ -24295,8 +24306,8 @@ function requireCommonjs () {
24295
24306
  // of * is equivalent to a single *. Globstar behavior is enabled by
24296
24307
  // default, and can be disabled by setting options.noglobstar.
24297
24308
  const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
24298
- exports$1.makeRe = makeRe;
24299
- exports$1.minimatch.makeRe = exports$1.makeRe;
24309
+ exports.makeRe = makeRe;
24310
+ exports.minimatch.makeRe = exports.makeRe;
24300
24311
  const match = (list, pattern, options = {}) => {
24301
24312
  const mm = new Minimatch(pattern, options);
24302
24313
  list = list.filter(f => mm.match(f));
@@ -24305,8 +24316,8 @@ function requireCommonjs () {
24305
24316
  }
24306
24317
  return list;
24307
24318
  };
24308
- exports$1.match = match;
24309
- exports$1.minimatch.match = exports$1.match;
24319
+ exports.match = match;
24320
+ exports.minimatch.match = exports.match;
24310
24321
  // replace stuff like \* with *
24311
24322
  const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
24312
24323
  const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
@@ -24787,15 +24798,15 @@ function requireCommonjs () {
24787
24798
  if (optimizationLevel >= 2) {
24788
24799
  file = this.levelTwoFileOptimize(file);
24789
24800
  }
24790
- if (pattern.includes(exports$1.GLOBSTAR)) {
24801
+ if (pattern.includes(exports.GLOBSTAR)) {
24791
24802
  return this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex);
24792
24803
  }
24793
24804
  return this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
24794
24805
  }
24795
24806
  #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
24796
24807
  // 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);
24808
+ const firstgs = pattern.indexOf(exports.GLOBSTAR, patternIndex);
24809
+ const lastgs = pattern.lastIndexOf(exports.GLOBSTAR);
24799
24810
  // split the pattern up into globstar-delimited sections
24800
24811
  // the tail has to be at the end, and the others just have
24801
24812
  // to be found in order from the head.
@@ -24879,7 +24890,7 @@ function requireCommonjs () {
24879
24890
  let nonGsParts = 0;
24880
24891
  const nonGsPartsSums = [0];
24881
24892
  for (const b of body) {
24882
- if (b === exports$1.GLOBSTAR) {
24893
+ if (b === exports.GLOBSTAR) {
24883
24894
  nonGsPartsSums.push(nonGsParts);
24884
24895
  currentBody = [[], 0];
24885
24896
  bodySegments.push(currentBody);
@@ -24964,7 +24975,7 @@ function requireCommonjs () {
24964
24975
  // should be impossible.
24965
24976
  // some invalid regexp stuff in the set.
24966
24977
  /* c8 ignore start */
24967
- if (p === false || p === exports$1.GLOBSTAR) {
24978
+ if (p === false || p === exports.GLOBSTAR) {
24968
24979
  return false;
24969
24980
  }
24970
24981
  /* c8 ignore stop */
@@ -25020,14 +25031,14 @@ function requireCommonjs () {
25020
25031
  /* c8 ignore stop */
25021
25032
  }
25022
25033
  braceExpand() {
25023
- return (0, exports$1.braceExpand)(this.pattern, this.options);
25034
+ return (0, exports.braceExpand)(this.pattern, this.options);
25024
25035
  }
25025
25036
  parse(pattern) {
25026
25037
  (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
25027
25038
  const options = this.options;
25028
25039
  // shortcuts
25029
25040
  if (pattern === '**')
25030
- return exports$1.GLOBSTAR;
25041
+ return exports.GLOBSTAR;
25031
25042
  if (pattern === '')
25032
25043
  return '';
25033
25044
  // far and away, the most common glob pattern parts are
@@ -25099,17 +25110,17 @@ function requireCommonjs () {
25099
25110
  flags.add(f);
25100
25111
  }
25101
25112
  return (typeof p === 'string' ? regExpEscape(p)
25102
- : p === exports$1.GLOBSTAR ? exports$1.GLOBSTAR
25113
+ : p === exports.GLOBSTAR ? exports.GLOBSTAR
25103
25114
  : p._src);
25104
25115
  });
25105
25116
  pp.forEach((p, i) => {
25106
25117
  const next = pp[i + 1];
25107
25118
  const prev = pp[i - 1];
25108
- if (p !== exports$1.GLOBSTAR || prev === exports$1.GLOBSTAR) {
25119
+ if (p !== exports.GLOBSTAR || prev === exports.GLOBSTAR) {
25109
25120
  return;
25110
25121
  }
25111
25122
  if (prev === undefined) {
25112
- if (next !== undefined && next !== exports$1.GLOBSTAR) {
25123
+ if (next !== undefined && next !== exports.GLOBSTAR) {
25113
25124
  pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
25114
25125
  }
25115
25126
  else {
@@ -25119,12 +25130,12 @@ function requireCommonjs () {
25119
25130
  else if (next === undefined) {
25120
25131
  pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + ')?';
25121
25132
  }
25122
- else if (next !== exports$1.GLOBSTAR) {
25133
+ else if (next !== exports.GLOBSTAR) {
25123
25134
  pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
25124
- pp[i + 1] = exports$1.GLOBSTAR;
25135
+ pp[i + 1] = exports.GLOBSTAR;
25125
25136
  }
25126
25137
  });
25127
- const filtered = pp.filter(p => p !== exports$1.GLOBSTAR);
25138
+ const filtered = pp.filter(p => p !== exports.GLOBSTAR);
25128
25139
  // For partial matches, we need to make the pattern match
25129
25140
  // any prefix of the full path. We do this by generating
25130
25141
  // alternative patterns that match progressively longer prefixes.
@@ -25233,22 +25244,22 @@ function requireCommonjs () {
25233
25244
  return this.negate;
25234
25245
  }
25235
25246
  static defaults(def) {
25236
- return exports$1.minimatch.defaults(def).Minimatch;
25247
+ return exports.minimatch.defaults(def).Minimatch;
25237
25248
  }
25238
25249
  }
25239
- exports$1.Minimatch = Minimatch;
25250
+ exports.Minimatch = Minimatch;
25240
25251
  /* c8 ignore start */
25241
25252
  var ast_js_2 = requireAst$1();
25242
- Object.defineProperty(exports$1, "AST", { enumerable: true, get: function () { return ast_js_2.AST; } });
25253
+ Object.defineProperty(exports, "AST", { enumerable: true, get: function () { return ast_js_2.AST; } });
25243
25254
  var escape_js_2 = require_escape();
25244
- Object.defineProperty(exports$1, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
25255
+ Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
25245
25256
  var unescape_js_2 = require_unescape();
25246
- Object.defineProperty(exports$1, "unescape", { enumerable: true, get: function () { return unescape_js_2.unescape; } });
25257
+ Object.defineProperty(exports, "unescape", { enumerable: true, get: function () { return unescape_js_2.unescape; } });
25247
25258
  /* 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;
25259
+ exports.minimatch.AST = ast_js_1.AST;
25260
+ exports.minimatch.Minimatch = Minimatch;
25261
+ exports.minimatch.escape = escape_js_1.escape;
25262
+ exports.minimatch.unescape = unescape_js_1.unescape;
25252
25263
 
25253
25264
  } (commonjs$2));
25254
25265
  return commonjs$2;
@@ -25738,7 +25749,7 @@ var hasRequiredCjs;
25738
25749
  function requireCjs () {
25739
25750
  if (hasRequiredCjs) return cjs$1;
25740
25751
  hasRequiredCjs = 1;
25741
- (function (exports$1) {
25752
+ (function (exports) {
25742
25753
 
25743
25754
  var posixPath = requirePosix();
25744
25755
  var windowsPath = requireWindows();
@@ -27273,12 +27284,12 @@ function requireCjs () {
27273
27284
  }
27274
27285
  }
27275
27286
 
27276
- Object.defineProperty(exports$1, "ObjectSchema", {
27287
+ Object.defineProperty(exports, "ObjectSchema", {
27277
27288
  enumerable: true,
27278
27289
  get: function () { return objectSchema.ObjectSchema; }
27279
27290
  });
27280
- exports$1.ConfigArray = ConfigArray;
27281
- exports$1.ConfigArraySymbol = ConfigArraySymbol;
27291
+ exports.ConfigArray = ConfigArray;
27292
+ exports.ConfigArraySymbol = ConfigArraySymbol;
27282
27293
  } (cjs$1));
27283
27294
  return cjs$1;
27284
27295
  }
@@ -27292,10 +27303,10 @@ var hasRequiredUri_all;
27292
27303
  function requireUri_all () {
27293
27304
  if (hasRequiredUri_all) return uri_all.exports;
27294
27305
  hasRequiredUri_all = 1;
27295
- (function (module, exports$1) {
27306
+ (function (module, exports) {
27296
27307
  (function (global, factory) {
27297
- factory(exports$1) ;
27298
- }(this, (function (exports$1) {
27308
+ factory(exports) ;
27309
+ }(this, (function (exports) {
27299
27310
  function merge() {
27300
27311
  for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
27301
27312
  sets[_key] = arguments[_key];
@@ -28677,20 +28688,20 @@ function requireUri_all () {
28677
28688
  SCHEMES[handler$5.scheme] = handler$5;
28678
28689
  SCHEMES[handler$6.scheme] = handler$6;
28679
28690
 
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 });
28691
+ exports.SCHEMES = SCHEMES;
28692
+ exports.pctEncChar = pctEncChar;
28693
+ exports.pctDecChars = pctDecChars;
28694
+ exports.parse = parse;
28695
+ exports.removeDotSegments = removeDotSegments;
28696
+ exports.serialize = serialize;
28697
+ exports.resolveComponents = resolveComponents;
28698
+ exports.resolve = resolve;
28699
+ exports.normalize = normalize;
28700
+ exports.equal = equal;
28701
+ exports.escapeComponent = escapeComponent;
28702
+ exports.unescapeComponent = unescapeComponent;
28703
+
28704
+ Object.defineProperty(exports, '__esModule', { value: true });
28694
28705
 
28695
28706
  })));
28696
28707
 
@@ -37588,10 +37599,10 @@ var hasRequiredAcorn;
37588
37599
  function requireAcorn () {
37589
37600
  if (hasRequiredAcorn) return acorn.exports;
37590
37601
  hasRequiredAcorn = 1;
37591
- (function (module, exports$1) {
37602
+ (function (module, exports) {
37592
37603
  (function (global, factory) {
37593
- factory(exports$1) ;
37594
- })(this, (function (exports$1) {
37604
+ factory(exports) ;
37605
+ })(this, (function (exports) {
37595
37606
  // This file was generated. Do not modify manually!
37596
37607
  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
37608
 
@@ -38438,10 +38449,10 @@ function requireAcorn () {
38438
38449
  // to its body instead of creating a new node.
38439
38450
 
38440
38451
  pp$8.parseTopLevel = function(node) {
38441
- var exports$1 = Object.create(null);
38452
+ var exports = Object.create(null);
38442
38453
  if (!node.body) { node.body = []; }
38443
38454
  while (this.type !== types$1.eof) {
38444
- var stmt = this.parseStatement(null, true, exports$1);
38455
+ var stmt = this.parseStatement(null, true, exports);
38445
38456
  node.body.push(stmt);
38446
38457
  }
38447
38458
  if (this.inModule)
@@ -38549,7 +38560,7 @@ function requireAcorn () {
38549
38560
  // `if (foo) /blah/.exec(foo)`, where looking at the previous token
38550
38561
  // does not help.
38551
38562
 
38552
- pp$8.parseStatement = function(context, topLevel, exports$1) {
38563
+ pp$8.parseStatement = function(context, topLevel, exports) {
38553
38564
  var starttype = this.type, node = this.startNode(), kind;
38554
38565
 
38555
38566
  if (this.isLet(context)) {
@@ -38604,7 +38615,7 @@ function requireAcorn () {
38604
38615
  if (!this.inModule)
38605
38616
  { this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'"); }
38606
38617
  }
38607
- return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports$1)
38618
+ return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)
38608
38619
 
38609
38620
  // If the statement does not start with a statement keyword or a
38610
38621
  // brace, it's an ExpressionStatement or LabeledStatement. We
@@ -39365,11 +39376,11 @@ function requireAcorn () {
39365
39376
 
39366
39377
  // Parses module export declaration.
39367
39378
 
39368
- pp$8.parseExportAllDeclaration = function(node, exports$1) {
39379
+ pp$8.parseExportAllDeclaration = function(node, exports) {
39369
39380
  if (this.options.ecmaVersion >= 11) {
39370
39381
  if (this.eatContextual("as")) {
39371
39382
  node.exported = this.parseModuleExportName();
39372
- this.checkExport(exports$1, node.exported, this.lastTokStart);
39383
+ this.checkExport(exports, node.exported, this.lastTokStart);
39373
39384
  } else {
39374
39385
  node.exported = null;
39375
39386
  }
@@ -39383,14 +39394,14 @@ function requireAcorn () {
39383
39394
  return this.finishNode(node, "ExportAllDeclaration")
39384
39395
  };
39385
39396
 
39386
- pp$8.parseExport = function(node, exports$1) {
39397
+ pp$8.parseExport = function(node, exports) {
39387
39398
  this.next();
39388
39399
  // export * from '...'
39389
39400
  if (this.eat(types$1.star)) {
39390
- return this.parseExportAllDeclaration(node, exports$1)
39401
+ return this.parseExportAllDeclaration(node, exports)
39391
39402
  }
39392
39403
  if (this.eat(types$1._default)) { // export default ...
39393
- this.checkExport(exports$1, "default", this.lastTokStart);
39404
+ this.checkExport(exports, "default", this.lastTokStart);
39394
39405
  node.declaration = this.parseExportDefaultDeclaration();
39395
39406
  return this.finishNode(node, "ExportDefaultDeclaration")
39396
39407
  }
@@ -39398,16 +39409,16 @@ function requireAcorn () {
39398
39409
  if (this.shouldParseExportStatement()) {
39399
39410
  node.declaration = this.parseExportDeclaration(node);
39400
39411
  if (node.declaration.type === "VariableDeclaration")
39401
- { this.checkVariableExport(exports$1, node.declaration.declarations); }
39412
+ { this.checkVariableExport(exports, node.declaration.declarations); }
39402
39413
  else
39403
- { this.checkExport(exports$1, node.declaration.id, node.declaration.id.start); }
39414
+ { this.checkExport(exports, node.declaration.id, node.declaration.id.start); }
39404
39415
  node.specifiers = [];
39405
39416
  node.source = null;
39406
39417
  if (this.options.ecmaVersion >= 16)
39407
39418
  { node.attributes = []; }
39408
39419
  } else { // export { x, y as z } [from '...']
39409
39420
  node.declaration = null;
39410
- node.specifiers = this.parseExportSpecifiers(exports$1);
39421
+ node.specifiers = this.parseExportSpecifiers(exports);
39411
39422
  if (this.eatContextual("from")) {
39412
39423
  if (this.type !== types$1.string) { this.unexpected(); }
39413
39424
  node.source = this.parseExprAtom();
@@ -39457,47 +39468,47 @@ function requireAcorn () {
39457
39468
  }
39458
39469
  };
39459
39470
 
39460
- pp$8.checkExport = function(exports$1, name, pos) {
39461
- if (!exports$1) { return }
39471
+ pp$8.checkExport = function(exports, name, pos) {
39472
+ if (!exports) { return }
39462
39473
  if (typeof name !== "string")
39463
39474
  { name = name.type === "Identifier" ? name.name : name.value; }
39464
- if (hasOwn(exports$1, name))
39475
+ if (hasOwn(exports, name))
39465
39476
  { this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
39466
- exports$1[name] = true;
39477
+ exports[name] = true;
39467
39478
  };
39468
39479
 
39469
- pp$8.checkPatternExport = function(exports$1, pat) {
39480
+ pp$8.checkPatternExport = function(exports, pat) {
39470
39481
  var type = pat.type;
39471
39482
  if (type === "Identifier")
39472
- { this.checkExport(exports$1, pat, pat.start); }
39483
+ { this.checkExport(exports, pat, pat.start); }
39473
39484
  else if (type === "ObjectPattern")
39474
39485
  { for (var i = 0, list = pat.properties; i < list.length; i += 1)
39475
39486
  {
39476
39487
  var prop = list[i];
39477
39488
 
39478
- this.checkPatternExport(exports$1, prop);
39489
+ this.checkPatternExport(exports, prop);
39479
39490
  } }
39480
39491
  else if (type === "ArrayPattern")
39481
39492
  { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {
39482
39493
  var elt = list$1[i$1];
39483
39494
 
39484
- if (elt) { this.checkPatternExport(exports$1, elt); }
39495
+ if (elt) { this.checkPatternExport(exports, elt); }
39485
39496
  } }
39486
39497
  else if (type === "Property")
39487
- { this.checkPatternExport(exports$1, pat.value); }
39498
+ { this.checkPatternExport(exports, pat.value); }
39488
39499
  else if (type === "AssignmentPattern")
39489
- { this.checkPatternExport(exports$1, pat.left); }
39500
+ { this.checkPatternExport(exports, pat.left); }
39490
39501
  else if (type === "RestElement")
39491
- { this.checkPatternExport(exports$1, pat.argument); }
39502
+ { this.checkPatternExport(exports, pat.argument); }
39492
39503
  };
39493
39504
 
39494
- pp$8.checkVariableExport = function(exports$1, decls) {
39495
- if (!exports$1) { return }
39505
+ pp$8.checkVariableExport = function(exports, decls) {
39506
+ if (!exports) { return }
39496
39507
  for (var i = 0, list = decls; i < list.length; i += 1)
39497
39508
  {
39498
39509
  var decl = list[i];
39499
39510
 
39500
- this.checkPatternExport(exports$1, decl.id);
39511
+ this.checkPatternExport(exports, decl.id);
39501
39512
  }
39502
39513
  };
39503
39514
 
@@ -39512,13 +39523,13 @@ function requireAcorn () {
39512
39523
 
39513
39524
  // Parses a comma-separated list of module exports.
39514
39525
 
39515
- pp$8.parseExportSpecifier = function(exports$1) {
39526
+ pp$8.parseExportSpecifier = function(exports) {
39516
39527
  var node = this.startNode();
39517
39528
  node.local = this.parseModuleExportName();
39518
39529
 
39519
39530
  node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
39520
39531
  this.checkExport(
39521
- exports$1,
39532
+ exports,
39522
39533
  node.exported,
39523
39534
  node.exported.start
39524
39535
  );
@@ -39526,7 +39537,7 @@ function requireAcorn () {
39526
39537
  return this.finishNode(node, "ExportSpecifier")
39527
39538
  };
39528
39539
 
39529
- pp$8.parseExportSpecifiers = function(exports$1) {
39540
+ pp$8.parseExportSpecifiers = function(exports) {
39530
39541
  var nodes = [], first = true;
39531
39542
  // export { x, y as z } [from '...']
39532
39543
  this.expect(types$1.braceL);
@@ -39536,7 +39547,7 @@ function requireAcorn () {
39536
39547
  if (this.afterTrailingComma(types$1.braceR)) { break }
39537
39548
  } else { first = false; }
39538
39549
 
39539
- nodes.push(this.parseExportSpecifier(exports$1));
39550
+ nodes.push(this.parseExportSpecifier(exports));
39540
39551
  }
39541
39552
  return nodes
39542
39553
  };
@@ -43857,28 +43868,28 @@ function requireAcorn () {
43857
43868
  return Parser.tokenizer(input, options)
43858
43869
  }
43859
43870
 
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;
43871
+ exports.Node = Node;
43872
+ exports.Parser = Parser;
43873
+ exports.Position = Position;
43874
+ exports.SourceLocation = SourceLocation;
43875
+ exports.TokContext = TokContext;
43876
+ exports.Token = Token;
43877
+ exports.TokenType = TokenType;
43878
+ exports.defaultOptions = defaultOptions;
43879
+ exports.getLineInfo = getLineInfo;
43880
+ exports.isIdentifierChar = isIdentifierChar;
43881
+ exports.isIdentifierStart = isIdentifierStart;
43882
+ exports.isNewLine = isNewLine;
43883
+ exports.keywordTypes = keywords;
43884
+ exports.lineBreak = lineBreak;
43885
+ exports.lineBreakG = lineBreakG;
43886
+ exports.nonASCIIwhitespace = nonASCIIwhitespace;
43887
+ exports.parse = parse;
43888
+ exports.parseExpressionAt = parseExpressionAt;
43889
+ exports.tokContexts = types;
43890
+ exports.tokTypes = types$1;
43891
+ exports.tokenizer = tokenizer;
43892
+ exports.version = version;
43882
43893
 
43883
43894
  }));
43884
43895
  } (acorn, acorn.exports));
@@ -44849,7 +44860,7 @@ var hasRequiredEspree;
44849
44860
  function requireEspree () {
44850
44861
  if (hasRequiredEspree) return espree;
44851
44862
  hasRequiredEspree = 1;
44852
- (function (exports$1) {
44863
+ (function (exports) {
44853
44864
 
44854
44865
  var acorn = requireAcorn();
44855
44866
  var jsx = requireAcornJsx();
@@ -46121,17 +46132,17 @@ function requireEspree () {
46121
46132
 
46122
46133
  const supportedEcmaVersions = /* #__PURE__ */ getSupportedEcmaVersions();
46123
46134
 
46124
- Object.defineProperty(exports$1, "VisitorKeys", {
46135
+ Object.defineProperty(exports, "VisitorKeys", {
46125
46136
  enumerable: true,
46126
46137
  get: function () { return eslintVisitorKeys.KEYS; }
46127
46138
  });
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;
46139
+ exports.Syntax = Syntax;
46140
+ exports.latestEcmaVersion = latestEcmaVersion;
46141
+ exports.name = name;
46142
+ exports.parse = parse;
46143
+ exports.supportedEcmaVersions = supportedEcmaVersions;
46144
+ exports.tokenize = tokenize;
46145
+ exports.version = version;
46135
46146
  } (espree));
46136
46147
  return espree;
46137
46148
  }
@@ -53299,6 +53310,8 @@ function requireCapitalizedComments () {
53299
53310
  },
53300
53311
  ],
53301
53312
 
53313
+ defaultOptions: ["always"],
53314
+
53302
53315
  messages: {
53303
53316
  unexpectedLowercaseComment:
53304
53317
  "Comments should not begin with a lowercase character.",
@@ -53308,7 +53321,7 @@ function requireCapitalizedComments () {
53308
53321
  },
53309
53322
 
53310
53323
  create(context) {
53311
- const capitalize = context.options[0] || "always",
53324
+ const capitalize = context.options[0],
53312
53325
  normalizedOptions = getAllNormalizedOptions(context.options[1]),
53313
53326
  sourceCode = context.sourceCode;
53314
53327
 
@@ -53519,8 +53532,6 @@ function requireClassMethodsUseThis () {
53519
53532
  /** @type {import('../types').Rule.RuleModule} */
53520
53533
  classMethodsUseThis = {
53521
53534
  meta: {
53522
- dialects: ["javascript", "typescript"],
53523
- language: "javascript",
53524
53535
  type: "suggestion",
53525
53536
 
53526
53537
  defaultOptions: [
@@ -53533,6 +53544,7 @@ function requireClassMethodsUseThis () {
53533
53544
 
53534
53545
  docs: {
53535
53546
  description: "Enforce that class methods utilize `this`",
53547
+ dialects: ["JavaScript", "TypeScript"],
53536
53548
  recommended: false,
53537
53549
  url: "https://eslint.org/docs/latest/rules/class-methods-use-this",
53538
53550
  },
@@ -56842,12 +56854,11 @@ function requireDefaultParamLast () {
56842
56854
  /** @type {import('../types').Rule.RuleModule} */
56843
56855
  defaultParamLast = {
56844
56856
  meta: {
56845
- dialects: ["javascript", "typescript"],
56846
- language: "javascript",
56847
56857
  type: "suggestion",
56848
56858
 
56849
56859
  docs: {
56850
56860
  description: "Enforce default parameters to be last",
56861
+ dialects: ["JavaScript", "TypeScript"],
56851
56862
  recommended: false,
56852
56863
  frozen: true,
56853
56864
  url: "https://eslint.org/docs/latest/rules/default-param-last",
@@ -57557,6 +57568,8 @@ function requireEqeqeq () {
57557
57568
  ],
57558
57569
  },
57559
57570
 
57571
+ defaultOptions: ["always"],
57572
+
57560
57573
  fixable: "code",
57561
57574
 
57562
57575
  messages: {
@@ -57568,7 +57581,7 @@ function requireEqeqeq () {
57568
57581
  },
57569
57582
 
57570
57583
  create(context) {
57571
- const config = context.options[0] || "always";
57584
+ const config = context.options[0];
57572
57585
  const options = context.options[1] || {};
57573
57586
  const sourceCode = context.sourceCode;
57574
57587
 
@@ -57833,6 +57846,50 @@ function requireForDirection () {
57833
57846
  }
57834
57847
  return 0;
57835
57848
  }
57849
+ /**
57850
+ * Collects all expressions that modify the counter.
57851
+ * @param {ASTNode} node The expression node to check.
57852
+ * @param {string} counter The name of the counter variable.
57853
+ * @returns {ASTNode[]} An array of modifying expressions.
57854
+ */
57855
+ function getModifyingExpressions(node, counter) {
57856
+ if (node.type === "SequenceExpression") {
57857
+ return node.expressions.flatMap(expr =>
57858
+ getModifyingExpressions(expr, counter),
57859
+ );
57860
+ }
57861
+ if (
57862
+ node.type === "UpdateExpression" &&
57863
+ node.argument.type === "Identifier" &&
57864
+ node.argument.name === counter
57865
+ ) {
57866
+ return [node];
57867
+ }
57868
+ if (
57869
+ node.type === "AssignmentExpression" &&
57870
+ node.left.type === "Identifier" &&
57871
+ node.left.name === counter
57872
+ ) {
57873
+ return [node];
57874
+ }
57875
+ return [];
57876
+ }
57877
+
57878
+ /**
57879
+ * Determines the direction of a single update expression for the counter.
57880
+ * @param {ASTNode} expr An expression node to check (UpdateExpression or AssignmentExpression).
57881
+ * @param {string} counter The variable name of the counter.
57882
+ * @returns {number} 1 if incrementing, -1 if decrementing, 0 if unknown or not modifying the counter.
57883
+ */
57884
+ function getDirectionFromExpression(expr, counter) {
57885
+ if (expr.type === "UpdateExpression") {
57886
+ return getUpdateDirection(expr, counter);
57887
+ }
57888
+ if (expr.type === "AssignmentExpression") {
57889
+ return getAssignmentDirection(expr, counter);
57890
+ }
57891
+ return 0;
57892
+ }
57836
57893
 
57837
57894
  return {
57838
57895
  ForStatement(node) {
@@ -57862,17 +57919,17 @@ function requireForDirection () {
57862
57919
  return;
57863
57920
  }
57864
57921
 
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
57922
+ const mutatingExpressions = getModifyingExpressions(
57923
+ update,
57924
+ counter,
57925
+ );
57926
+
57927
+ if (
57928
+ mutatingExpressions.length === 1 &&
57929
+ getDirectionFromExpression(
57930
+ mutatingExpressions[0],
57931
+ counter,
57932
+ ) === wrongDirection
57876
57933
  ) {
57877
57934
  report(node);
57878
57935
  }
@@ -58286,6 +58343,8 @@ function requireFuncNameMatching () {
58286
58343
  ],
58287
58344
  },
58288
58345
 
58346
+ defaultOptions: ["always"],
58347
+
58289
58348
  messages: {
58290
58349
  matchProperty:
58291
58350
  "Function name `{{funcName}}` should match property name `{{name}}`.",
@@ -58751,8 +58810,6 @@ function requireFuncStyle () {
58751
58810
  /** @type {import('../types').Rule.RuleModule} */
58752
58811
  funcStyle = {
58753
58812
  meta: {
58754
- dialects: ["javascript", "typescript"],
58755
- language: "javascript",
58756
58813
  type: "suggestion",
58757
58814
 
58758
58815
  defaultOptions: [
@@ -58767,6 +58824,7 @@ function requireFuncStyle () {
58767
58824
  docs: {
58768
58825
  description:
58769
58826
  "Enforce the consistent use of either `function` declarations or expressions assigned to variables",
58827
+ dialects: ["JavaScript", "TypeScript"],
58770
58828
  recommended: false,
58771
58829
  frozen: true,
58772
58830
  url: "https://eslint.org/docs/latest/rules/func-style",
@@ -65616,12 +65674,11 @@ function requireInitDeclarations () {
65616
65674
  initDeclarations = {
65617
65675
  meta: {
65618
65676
  type: "suggestion",
65619
- dialects: ["typescript", "javascript"],
65620
- language: "javascript",
65621
65677
 
65622
65678
  docs: {
65623
65679
  description:
65624
65680
  "Require or disallow initialization in variable declarations",
65681
+ dialects: ["JavaScript", "TypeScript"],
65625
65682
  recommended: false,
65626
65683
  frozen: true,
65627
65684
  url: "https://eslint.org/docs/latest/rules/init-declarations",
@@ -65660,6 +65717,9 @@ function requireInitDeclarations () {
65660
65717
  },
65661
65718
  ],
65662
65719
  },
65720
+
65721
+ defaultOptions: ["always"],
65722
+
65663
65723
  messages: {
65664
65724
  initialized:
65665
65725
  "Variable '{{idName}}' should be initialized on declaration.",
@@ -65669,10 +65729,7 @@ function requireInitDeclarations () {
65669
65729
  },
65670
65730
 
65671
65731
  create(context) {
65672
- const MODE_ALWAYS = "always",
65673
- MODE_NEVER = "never";
65674
-
65675
- const mode = context.options[0] || MODE_ALWAYS;
65732
+ const mode = context.options[0];
65676
65733
  const params = context.options[1] || {};
65677
65734
 
65678
65735
  // Track whether we're inside a declared namespace
@@ -65711,10 +65768,10 @@ function requireInitDeclarations () {
65711
65768
  params.ignoreForLoopInit && isForLoop(node.parent);
65712
65769
  let messageId = "";
65713
65770
 
65714
- if (mode === MODE_ALWAYS && !initialized) {
65771
+ if (mode === "always" && !initialized) {
65715
65772
  messageId = "initialized";
65716
65773
  } else if (
65717
- mode === MODE_NEVER &&
65774
+ mode === "never" &&
65718
65775
  !CONSTANT_BINDINGS.has(kind) &&
65719
65776
  initialized &&
65720
65777
  !isIgnoredForLoop
@@ -69205,6 +69262,9 @@ function requireLogicalAssignmentOperators () {
69205
69262
  },
69206
69263
  ],
69207
69264
  },
69265
+
69266
+ defaultOptions: ["always"],
69267
+
69208
69268
  fixable: "code",
69209
69269
  hasSuggestions: true,
69210
69270
  messages: {
@@ -69227,7 +69287,7 @@ function requireLogicalAssignmentOperators () {
69227
69287
  },
69228
69288
 
69229
69289
  create(context) {
69230
- const mode = context.options[0] === "never" ? "never" : "always";
69290
+ const mode = context.options[0];
69231
69291
  const checkIf =
69232
69292
  mode === "always" &&
69233
69293
  context.options.length > 1 &&
@@ -69690,16 +69750,18 @@ function requireMaxClassesPerFile () {
69690
69750
  },
69691
69751
  ],
69692
69752
 
69753
+ defaultOptions: [1],
69754
+
69693
69755
  messages: {
69694
69756
  maximumExceeded:
69695
69757
  "File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}.",
69696
69758
  },
69697
69759
  },
69698
69760
  create(context) {
69699
- const [option = {}] = context.options;
69761
+ const option = context.options[0];
69700
69762
  const [ignoreExpressions, max] =
69701
69763
  typeof option === "number"
69702
- ? [false, option || 1]
69764
+ ? [false, option]
69703
69765
  : [option.ignoreExpressions, option.max || 1];
69704
69766
 
69705
69767
  let classCount = 0;
@@ -69785,6 +69847,9 @@ function requireMaxDepth () {
69785
69847
  ],
69786
69848
  },
69787
69849
  ],
69850
+
69851
+ defaultOptions: [4],
69852
+
69788
69853
  messages: {
69789
69854
  tooDeeply:
69790
69855
  "Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}.",
@@ -70479,6 +70544,9 @@ function requireMaxLines () {
70479
70544
  ],
70480
70545
  },
70481
70546
  ],
70547
+
70548
+ defaultOptions: [300],
70549
+
70482
70550
  messages: {
70483
70551
  exceed: "File has too many lines ({{actual}}). Maximum allowed is {{max}}.",
70484
70552
  },
@@ -70690,6 +70758,9 @@ function requireMaxLinesPerFunction () {
70690
70758
  },
70691
70759
 
70692
70760
  schema: [OPTIONS_OR_INTEGER_SCHEMA],
70761
+
70762
+ defaultOptions: [50],
70763
+
70693
70764
  messages: {
70694
70765
  exceed: "{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}.",
70695
70766
  },
@@ -70902,6 +70973,9 @@ function requireMaxNestedCallbacks () {
70902
70973
  ],
70903
70974
  },
70904
70975
  ],
70976
+
70977
+ defaultOptions: [10],
70978
+
70905
70979
  messages: {
70906
70980
  exceed: "Too many nested callbacks ({{num}}). Maximum allowed is {{max}}.",
70907
70981
  },
@@ -71001,12 +71075,11 @@ function requireMaxParams () {
71001
71075
  maxParams = {
71002
71076
  meta: {
71003
71077
  type: "suggestion",
71004
- dialects: ["typescript", "javascript"],
71005
- language: "javascript",
71006
71078
 
71007
71079
  docs: {
71008
71080
  description:
71009
71081
  "Enforce a maximum number of parameters in function definitions",
71082
+ dialects: ["JavaScript", "TypeScript"],
71010
71083
  recommended: false,
71011
71084
  url: "https://eslint.org/docs/latest/rules/max-params",
71012
71085
  },
@@ -71046,6 +71119,9 @@ function requireMaxParams () {
71046
71119
  ],
71047
71120
  },
71048
71121
  ],
71122
+
71123
+ defaultOptions: [3],
71124
+
71049
71125
  messages: {
71050
71126
  exceed: "{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}.",
71051
71127
  },
@@ -71198,6 +71274,9 @@ function requireMaxStatements () {
71198
71274
  additionalProperties: false,
71199
71275
  },
71200
71276
  ],
71277
+
71278
+ defaultOptions: [10],
71279
+
71201
71280
  messages: {
71202
71281
  exceed: "{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}.",
71203
71282
  },
@@ -73820,12 +73899,11 @@ function requireNoArrayConstructor () {
73820
73899
  /** @type {import('../types').Rule.RuleModule} */
73821
73900
  noArrayConstructor = {
73822
73901
  meta: {
73823
- dialects: ["javascript", "typescript"],
73824
- language: "javascript",
73825
73902
  type: "suggestion",
73826
73903
 
73827
73904
  docs: {
73828
73905
  description: "Disallow `Array` constructors",
73906
+ dialects: ["JavaScript", "TypeScript"],
73829
73907
  recommended: false,
73830
73908
  url: "https://eslint.org/docs/latest/rules/no-array-constructor",
73831
73909
  },
@@ -79864,11 +79942,10 @@ function requireNoDupeClassMembers () {
79864
79942
  noDupeClassMembers = {
79865
79943
  meta: {
79866
79944
  type: "problem",
79867
- dialects: ["javascript", "typescript"],
79868
- language: "javascript",
79869
79945
 
79870
79946
  docs: {
79871
79947
  description: "Disallow duplicate class members",
79948
+ dialects: ["JavaScript", "TypeScript"],
79872
79949
  recommended: true,
79873
79950
  url: "https://eslint.org/docs/latest/rules/no-dupe-class-members",
79874
79951
  },
@@ -80681,8 +80758,6 @@ function requireNoDuplicateImports () {
80681
80758
  /** @type {import('../types').Rule.RuleModule} */
80682
80759
  noDuplicateImports = {
80683
80760
  meta: {
80684
- dialects: ["javascript", "typescript"],
80685
- language: "javascript",
80686
80761
  type: "problem",
80687
80762
 
80688
80763
  defaultOptions: [
@@ -80694,6 +80769,7 @@ function requireNoDuplicateImports () {
80694
80769
 
80695
80770
  docs: {
80696
80771
  description: "Disallow duplicate module imports",
80772
+ dialects: ["JavaScript", "TypeScript"],
80697
80773
  recommended: false,
80698
80774
  url: "https://eslint.org/docs/latest/rules/no-duplicate-imports",
80699
80775
  },
@@ -81717,8 +81793,6 @@ function requireNoEmptyFunction () {
81717
81793
  /** @type {import('../types').Rule.RuleModule} */
81718
81794
  noEmptyFunction = {
81719
81795
  meta: {
81720
- dialects: ["javascript", "typescript"],
81721
- language: "javascript",
81722
81796
  hasSuggestions: true,
81723
81797
  type: "suggestion",
81724
81798
 
@@ -81726,6 +81800,7 @@ function requireNoEmptyFunction () {
81726
81800
 
81727
81801
  docs: {
81728
81802
  description: "Disallow empty functions",
81803
+ dialects: ["JavaScript", "TypeScript"],
81729
81804
  recommended: false,
81730
81805
  url: "https://eslint.org/docs/latest/rules/no-empty-function",
81731
81806
  },
@@ -87565,8 +87640,6 @@ function requireNoInvalidThis () {
87565
87640
  /** @type {import('../types').Rule.RuleModule} */
87566
87641
  noInvalidThis = {
87567
87642
  meta: {
87568
- dialects: ["javascript", "typescript"],
87569
- language: "javascript",
87570
87643
  type: "suggestion",
87571
87644
 
87572
87645
  defaultOptions: [{ capIsConstructor: true }],
@@ -87574,6 +87647,7 @@ function requireNoInvalidThis () {
87574
87647
  docs: {
87575
87648
  description:
87576
87649
  "Disallow use of `this` in contexts where the value of `this` is `undefined`",
87650
+ dialects: ["JavaScript", "TypeScript"],
87577
87651
  recommended: false,
87578
87652
  url: "https://eslint.org/docs/latest/rules/no-invalid-this",
87579
87653
  },
@@ -88645,12 +88719,11 @@ function requireNoLoopFunc () {
88645
88719
  noLoopFunc = {
88646
88720
  meta: {
88647
88721
  type: "suggestion",
88648
- dialects: ["typescript", "javascript"],
88649
- language: "javascript",
88650
88722
 
88651
88723
  docs: {
88652
88724
  description:
88653
88725
  "Disallow function declarations that contain unsafe references inside loop statements",
88726
+ dialects: ["JavaScript", "TypeScript"],
88654
88727
  recommended: false,
88655
88728
  url: "https://eslint.org/docs/latest/rules/no-loop-func",
88656
88729
  },
@@ -89103,11 +89176,10 @@ function requireNoLossOfPrecision () {
89103
89176
  noLossOfPrecision = {
89104
89177
  meta: {
89105
89178
  type: "problem",
89106
- dialects: ["typescript", "javascript"],
89107
- language: "javascript",
89108
89179
 
89109
89180
  docs: {
89110
89181
  description: "Disallow literal numbers that lose precision",
89182
+ dialects: ["JavaScript", "TypeScript"],
89111
89183
  recommended: true,
89112
89184
  url: "https://eslint.org/docs/latest/rules/no-loss-of-precision",
89113
89185
  },
@@ -89232,11 +89304,10 @@ function requireNoMagicNumbers () {
89232
89304
  noMagicNumbers = {
89233
89305
  meta: {
89234
89306
  type: "suggestion",
89235
- dialects: ["typescript", "javascript"],
89236
- language: "javascript",
89237
89307
 
89238
89308
  docs: {
89239
89309
  description: "Disallow magic numbers",
89310
+ dialects: ["JavaScript", "TypeScript"],
89240
89311
  recommended: false,
89241
89312
  frozen: true,
89242
89313
  url: "https://eslint.org/docs/latest/rules/no-magic-numbers",
@@ -89248,11 +89319,9 @@ function requireNoMagicNumbers () {
89248
89319
  properties: {
89249
89320
  detectObjects: {
89250
89321
  type: "boolean",
89251
- default: false,
89252
89322
  },
89253
89323
  enforceConst: {
89254
89324
  type: "boolean",
89255
- default: false,
89256
89325
  },
89257
89326
  ignore: {
89258
89327
  type: "array",
@@ -89269,37 +89338,45 @@ function requireNoMagicNumbers () {
89269
89338
  },
89270
89339
  ignoreArrayIndexes: {
89271
89340
  type: "boolean",
89272
- default: false,
89273
89341
  },
89274
89342
  ignoreDefaultValues: {
89275
89343
  type: "boolean",
89276
- default: false,
89277
89344
  },
89278
89345
  ignoreClassFieldInitialValues: {
89279
89346
  type: "boolean",
89280
- default: false,
89281
89347
  },
89282
89348
  ignoreEnums: {
89283
89349
  type: "boolean",
89284
- default: false,
89285
89350
  },
89286
89351
  ignoreNumericLiteralTypes: {
89287
89352
  type: "boolean",
89288
- default: false,
89289
89353
  },
89290
89354
  ignoreReadonlyClassProperties: {
89291
89355
  type: "boolean",
89292
- default: false,
89293
89356
  },
89294
89357
  ignoreTypeIndexes: {
89295
89358
  type: "boolean",
89296
- default: false,
89297
89359
  },
89298
89360
  },
89299
89361
  additionalProperties: false,
89300
89362
  },
89301
89363
  ],
89302
89364
 
89365
+ defaultOptions: [
89366
+ {
89367
+ detectObjects: false,
89368
+ enforceConst: false,
89369
+ ignore: [],
89370
+ ignoreArrayIndexes: false,
89371
+ ignoreDefaultValues: false,
89372
+ ignoreClassFieldInitialValues: false,
89373
+ ignoreEnums: false,
89374
+ ignoreNumericLiteralTypes: false,
89375
+ ignoreReadonlyClassProperties: false,
89376
+ ignoreTypeIndexes: false,
89377
+ },
89378
+ ],
89379
+
89303
89380
  messages: {
89304
89381
  useConst: "Number constants declarations must use 'const'.",
89305
89382
  noMagic: "No magic number: {{raw}}.",
@@ -89307,19 +89384,19 @@ function requireNoMagicNumbers () {
89307
89384
  },
89308
89385
 
89309
89386
  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;
89387
+ const {
89388
+ detectObjects,
89389
+ enforceConst,
89390
+ ignore: rawIgnore,
89391
+ ignoreArrayIndexes,
89392
+ ignoreDefaultValues,
89393
+ ignoreClassFieldInitialValues,
89394
+ ignoreEnums,
89395
+ ignoreNumericLiteralTypes,
89396
+ ignoreReadonlyClassProperties,
89397
+ ignoreTypeIndexes,
89398
+ } = context.options[0];
89399
+ const ignore = new Set(rawIgnore.map(normalizeIgnoreValue));
89323
89400
 
89324
89401
  const okTypes = detectObjects
89325
89402
  ? []
@@ -94860,6 +94937,8 @@ function requireNoRestrictedExports () {
94860
94937
  },
94861
94938
  ],
94862
94939
 
94940
+ defaultOptions: [{}],
94941
+
94863
94942
  messages: {
94864
94943
  restrictedNamed:
94865
94944
  "'{{name}}' is restricted from being used as an exported name.",
@@ -94868,14 +94947,12 @@ function requireNoRestrictedExports () {
94868
94947
  },
94869
94948
 
94870
94949
  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;
94950
+ const {
94951
+ restrictedNamedExports,
94952
+ restrictedNamedExportsPattern: restrictedNamePattern,
94953
+ restrictDefaultExports,
94954
+ } = context.options[0];
94955
+ const restrictedNames = new Set(restrictedNamedExports);
94879
94956
  const sourceCode = context.sourceCode;
94880
94957
 
94881
94958
  /**
@@ -95057,12 +95134,11 @@ function requireNoRestrictedGlobals () {
95057
95134
  /** @type {import('../types').Rule.RuleModule} */
95058
95135
  noRestrictedGlobals = {
95059
95136
  meta: {
95060
- dialects: ["javascript", "typescript"],
95061
- language: "javascript",
95062
95137
  type: "suggestion",
95063
95138
 
95064
95139
  docs: {
95065
95140
  description: "Disallow specified global variables",
95141
+ dialects: ["JavaScript", "TypeScript"],
95066
95142
  recommended: false,
95067
95143
  url: "https://eslint.org/docs/latest/rules/no-restricted-globals",
95068
95144
  },
@@ -96095,11 +96171,10 @@ function requireNoRestrictedImports () {
96095
96171
  noRestrictedImports = {
96096
96172
  meta: {
96097
96173
  type: "suggestion",
96098
- dialects: ["typescript", "javascript"],
96099
- language: "javascript",
96100
96174
 
96101
96175
  docs: {
96102
96176
  description: "Disallow specified modules when loaded by `import`",
96177
+ dialects: ["JavaScript", "TypeScript"],
96103
96178
  recommended: false,
96104
96179
  url: "https://eslint.org/docs/latest/rules/no-restricted-imports",
96105
96180
  },
@@ -97152,6 +97227,8 @@ function requireNoRestrictedProperties () {
97152
97227
  uniqueItems: true,
97153
97228
  },
97154
97229
 
97230
+ defaultOptions: [],
97231
+
97155
97232
  messages: {
97156
97233
  restrictedObjectProperty:
97157
97234
  // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period
@@ -97365,6 +97442,8 @@ function requireNoRestrictedSyntax () {
97365
97442
  minItems: 0,
97366
97443
  },
97367
97444
 
97445
+ defaultOptions: [],
97446
+
97368
97447
  messages: {
97369
97448
  // eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period
97370
97449
  restrictedSyntax: "{{message}}",
@@ -98478,8 +98557,6 @@ function requireNoShadow () {
98478
98557
  noShadow = {
98479
98558
  meta: {
98480
98559
  type: "suggestion",
98481
- dialects: ["typescript", "javascript"],
98482
- language: "javascript",
98483
98560
 
98484
98561
  defaultOptions: [
98485
98562
  {
@@ -98495,6 +98572,7 @@ function requireNoShadow () {
98495
98572
  docs: {
98496
98573
  description:
98497
98574
  "Disallow variable declarations from shadowing variables declared in the outer scope",
98575
+ dialects: ["JavaScript", "TypeScript"],
98498
98576
  recommended: false,
98499
98577
  url: "https://eslint.org/docs/latest/rules/no-shadow",
98500
98578
  },
@@ -100419,12 +100497,11 @@ function requireNoUnassignedVars () {
100419
100497
  noUnassignedVars = {
100420
100498
  meta: {
100421
100499
  type: "problem",
100422
- dialects: ["typescript", "javascript"],
100423
- language: "javascript",
100424
100500
 
100425
100501
  docs: {
100426
100502
  description:
100427
100503
  "Disallow `let` or `var` variables that are read but never assigned",
100504
+ dialects: ["JavaScript", "TypeScript"],
100428
100505
  recommended: true,
100429
100506
  url: "https://eslint.org/docs/latest/rules/no-unassigned-vars",
100430
100507
  },
@@ -103004,12 +103081,11 @@ function requireNoUnusedExpressions () {
103004
103081
  /** @type {import('../types').Rule.RuleModule} */
103005
103082
  noUnusedExpressions = {
103006
103083
  meta: {
103007
- dialects: ["javascript", "typescript"],
103008
- language: "javascript",
103009
103084
  type: "suggestion",
103010
103085
 
103011
103086
  docs: {
103012
103087
  description: "Disallow unused expressions",
103088
+ dialects: ["JavaScript", "TypeScript"],
103013
103089
  recommended: false,
103014
103090
  url: "https://eslint.org/docs/latest/rules/no-unused-expressions",
103015
103091
  },
@@ -103845,6 +103921,20 @@ function requireNoUnusedVars () {
103845
103921
  * @property {string} additional Any additional info to be appended at the end.
103846
103922
  */
103847
103923
 
103924
+ //------------------------------------------------------------------------------
103925
+ // Helpers
103926
+ //------------------------------------------------------------------------------
103927
+
103928
+ const DEFAULT_OPTIONS = {
103929
+ vars: "all",
103930
+ args: "after-used",
103931
+ ignoreRestSiblings: false,
103932
+ caughtErrors: "all",
103933
+ ignoreClassWithStaticInitBlock: false,
103934
+ ignoreUsingDeclarations: false,
103935
+ reportUsedIgnorePattern: false,
103936
+ };
103937
+
103848
103938
  //------------------------------------------------------------------------------
103849
103939
  // Rule Definition
103850
103940
  //------------------------------------------------------------------------------
@@ -103911,6 +104001,8 @@ function requireNoUnusedVars () {
103911
104001
  },
103912
104002
  ],
103913
104003
 
104004
+ defaultOptions: [DEFAULT_OPTIONS],
104005
+
103914
104006
  messages: {
103915
104007
  unusedVar:
103916
104008
  "'{{varName}}' is {{action}} but never used{{additional}}.",
@@ -103926,65 +104018,46 @@ function requireNoUnusedVars () {
103926
104018
  const REST_PROPERTY_TYPE =
103927
104019
  /^(?:RestElement|(?:Experimental)?RestProperty)$/u;
103928
104020
 
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
- };
104021
+ let config;
103938
104022
 
103939
104023
  const firstOption = context.options[0];
103940
104024
 
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
- }
104025
+ if (typeof firstOption === "string") {
104026
+ config = {
104027
+ ...DEFAULT_OPTIONS,
104028
+ vars: firstOption,
104029
+ };
104030
+ } else {
104031
+ config = {
104032
+ ...firstOption,
104033
+ };
103967
104034
 
103968
- if (firstOption.argsIgnorePattern) {
103969
- config.argsIgnorePattern = new RegExp(
103970
- firstOption.argsIgnorePattern,
103971
- "u",
103972
- );
103973
- }
104035
+ if (firstOption.varsIgnorePattern) {
104036
+ config.varsIgnorePattern = new RegExp(
104037
+ firstOption.varsIgnorePattern,
104038
+ "u",
104039
+ );
104040
+ }
103974
104041
 
103975
- if (firstOption.caughtErrorsIgnorePattern) {
103976
- config.caughtErrorsIgnorePattern = new RegExp(
103977
- firstOption.caughtErrorsIgnorePattern,
103978
- "u",
103979
- );
103980
- }
104042
+ if (firstOption.argsIgnorePattern) {
104043
+ config.argsIgnorePattern = new RegExp(
104044
+ firstOption.argsIgnorePattern,
104045
+ "u",
104046
+ );
104047
+ }
103981
104048
 
103982
- if (firstOption.destructuredArrayIgnorePattern) {
103983
- config.destructuredArrayIgnorePattern = new RegExp(
103984
- firstOption.destructuredArrayIgnorePattern,
103985
- "u",
103986
- );
103987
- }
104049
+ if (firstOption.caughtErrorsIgnorePattern) {
104050
+ config.caughtErrorsIgnorePattern = new RegExp(
104051
+ firstOption.caughtErrorsIgnorePattern,
104052
+ "u",
104053
+ );
104054
+ }
104055
+
104056
+ if (firstOption.destructuredArrayIgnorePattern) {
104057
+ config.destructuredArrayIgnorePattern = new RegExp(
104058
+ firstOption.destructuredArrayIgnorePattern,
104059
+ "u",
104060
+ );
103988
104061
  }
103989
104062
  }
103990
104063
 
@@ -105833,13 +105906,12 @@ function requireNoUseBeforeDefine () {
105833
105906
  /** @type {import('../types').Rule.RuleModule} */
105834
105907
  noUseBeforeDefine = {
105835
105908
  meta: {
105836
- dialects: ["javascript", "typescript"],
105837
- language: "javascript",
105838
105909
  type: "problem",
105839
105910
 
105840
105911
  docs: {
105841
105912
  description:
105842
105913
  "Disallow the use of variables before they are defined",
105914
+ dialects: ["JavaScript", "TypeScript"],
105843
105915
  recommended: false,
105844
105916
  url: "https://eslint.org/docs/latest/rules/no-use-before-define",
105845
105917
  },
@@ -107631,12 +107703,11 @@ function requireNoUselessConstructor () {
107631
107703
  /** @type {import('../types').Rule.RuleModule} */
107632
107704
  noUselessConstructor = {
107633
107705
  meta: {
107634
- dialects: ["javascript", "typescript"],
107635
- language: "javascript",
107636
107706
  type: "suggestion",
107637
107707
 
107638
107708
  docs: {
107639
107709
  description: "Disallow unnecessary constructors",
107710
+ dialects: ["JavaScript", "TypeScript"],
107640
107711
  recommended: false,
107641
107712
  url: "https://eslint.org/docs/latest/rules/no-useless-constructor",
107642
107713
  },
@@ -109001,11 +109072,10 @@ function requireNoVar () {
109001
109072
  noVar = {
109002
109073
  meta: {
109003
109074
  type: "suggestion",
109004
- dialects: ["typescript", "javascript"],
109005
- language: "javascript",
109006
109075
 
109007
109076
  docs: {
109008
109077
  description: "Require `let` or `const` instead of `var`",
109078
+ dialects: ["JavaScript", "TypeScript"],
109009
109079
  recommended: false,
109010
109080
  url: "https://eslint.org/docs/latest/rules/no-var",
109011
109081
  },
@@ -110969,6 +111039,8 @@ function requireObjectShorthand () {
110969
111039
  ],
110970
111040
  },
110971
111041
 
111042
+ defaultOptions: ["always"],
111043
+
110972
111044
  messages: {
110973
111045
  expectedAllPropertiesShorthanded:
110974
111046
  "Expected shorthand for all properties.",
@@ -110984,7 +111056,7 @@ function requireObjectShorthand () {
110984
111056
  },
110985
111057
 
110986
111058
  create(context) {
110987
- const APPLY = context.options[0] || OPTIONS.always;
111059
+ const APPLY = context.options[0];
110988
111060
  const APPLY_TO_METHODS =
110989
111061
  APPLY === OPTIONS.methods || APPLY === OPTIONS.always;
110990
111062
  const APPLY_TO_PROPS =
@@ -111532,6 +111604,8 @@ function requireOneVar () {
111532
111604
  },
111533
111605
  ],
111534
111606
 
111607
+ defaultOptions: ["always"],
111608
+
111535
111609
  messages: {
111536
111610
  combineUninitialized:
111537
111611
  "Combine this with the previous '{{type}}' statement with uninitialized variables.",
@@ -111552,7 +111626,7 @@ function requireOneVar () {
111552
111626
  const MODE_ALWAYS = "always";
111553
111627
  const MODE_NEVER = "never";
111554
111628
  const MODE_CONSECUTIVE = "consecutive";
111555
- const mode = context.options[0] || MODE_ALWAYS;
111629
+ const mode = context.options[0];
111556
111630
 
111557
111631
  const options = {};
111558
111632
 
@@ -114046,8 +114120,6 @@ function requirePreferArrowCallback () {
114046
114120
  preferArrowCallback = {
114047
114121
  meta: {
114048
114122
  type: "suggestion",
114049
- dialects: ["javascript", "typescript"],
114050
- language: "javascript",
114051
114123
 
114052
114124
  defaultOptions: [
114053
114125
  { allowNamedFunctions: false, allowUnboundThis: true },
@@ -114055,6 +114127,7 @@ function requirePreferArrowCallback () {
114055
114127
 
114056
114128
  docs: {
114057
114129
  description: "Require using arrow functions for callbacks",
114130
+ dialects: ["JavaScript", "TypeScript"],
114058
114131
  recommended: false,
114059
114132
  frozen: true,
114060
114133
  url: "https://eslint.org/docs/latest/rules/prefer-arrow-callback",