@jsse/eslint-config 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3221,15 +3221,18 @@ var SLOW_RULES = [
3221
3221
  ];
3222
3222
 
3223
3223
  // src/define-config.ts
3224
- import fs2 from "node:fs";
3224
+ import fs3 from "node:fs";
3225
3225
  import process6 from "node:process";
3226
3226
 
3227
- // node_modules/.pnpm/local-pkg@1.0.0/node_modules/local-pkg/dist/index.mjs
3227
+ // node_modules/.pnpm/local-pkg@1.1.1/node_modules/local-pkg/dist/index.mjs
3228
+ import fs2 from "node:fs";
3228
3229
  import { createRequire as createRequire2 } from "node:module";
3229
- import path2, { dirname as dirname3, win32, join as join2 } from "node:path";
3230
+ import path2, { dirname as dirname3, join as join2, win32 } from "node:path";
3230
3231
  import process2 from "node:process";
3232
+ import fsPromises from "node:fs/promises";
3233
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
3231
3234
 
3232
- // node_modules/.pnpm/acorn@8.14.0/node_modules/acorn/dist/acorn.mjs
3235
+ // node_modules/.pnpm/acorn@8.14.1/node_modules/acorn/dist/acorn.mjs
3233
3236
  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, 80, 3, 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, 343, 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, 330, 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, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
3234
3237
  var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
3235
3238
  var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
@@ -3649,6 +3652,7 @@ var SCOPE_SIMPLE_CATCH = 32;
3649
3652
  var SCOPE_SUPER = 64;
3650
3653
  var SCOPE_DIRECT_SUPER = 128;
3651
3654
  var SCOPE_CLASS_STATIC_BLOCK = 256;
3655
+ var SCOPE_CLASS_FIELD_INIT = 512;
3652
3656
  var SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
3653
3657
  function functionFlags(async, generator) {
3654
3658
  return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
@@ -3717,19 +3721,20 @@ prototypeAccessors.inFunction.get = function() {
3717
3721
  return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0;
3718
3722
  };
3719
3723
  prototypeAccessors.inGenerator.get = function() {
3720
- return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit;
3724
+ return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0;
3721
3725
  };
3722
3726
  prototypeAccessors.inAsync.get = function() {
3723
- return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit;
3727
+ return (this.currentVarScope().flags & SCOPE_ASYNC) > 0;
3724
3728
  };
3725
3729
  prototypeAccessors.canAwait.get = function() {
3726
3730
  for (var i = this.scopeStack.length - 1; i >= 0; i--) {
3727
- var scope = this.scopeStack[i];
3728
- if (scope.inClassFieldInit || scope.flags & SCOPE_CLASS_STATIC_BLOCK) {
3731
+ var ref2 = this.scopeStack[i];
3732
+ var flags = ref2.flags;
3733
+ if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT)) {
3729
3734
  return false;
3730
3735
  }
3731
- if (scope.flags & SCOPE_FUNCTION) {
3732
- return (scope.flags & SCOPE_ASYNC) > 0;
3736
+ if (flags & SCOPE_FUNCTION) {
3737
+ return (flags & SCOPE_ASYNC) > 0;
3733
3738
  }
3734
3739
  }
3735
3740
  return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
@@ -3737,8 +3742,7 @@ prototypeAccessors.canAwait.get = function() {
3737
3742
  prototypeAccessors.allowSuper.get = function() {
3738
3743
  var ref2 = this.currentThisScope();
3739
3744
  var flags = ref2.flags;
3740
- var inClassFieldInit = ref2.inClassFieldInit;
3741
- return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod;
3745
+ return (flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod;
3742
3746
  };
3743
3747
  prototypeAccessors.allowDirectSuper.get = function() {
3744
3748
  return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0;
@@ -3747,10 +3751,14 @@ prototypeAccessors.treatFunctionsAsVar.get = function() {
3747
3751
  return this.treatFunctionsAsVarInScope(this.currentScope());
3748
3752
  };
3749
3753
  prototypeAccessors.allowNewDotTarget.get = function() {
3750
- var ref2 = this.currentThisScope();
3751
- var flags = ref2.flags;
3752
- var inClassFieldInit = ref2.inClassFieldInit;
3753
- return (flags & (SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit;
3754
+ for (var i = this.scopeStack.length - 1; i >= 0; i--) {
3755
+ var ref2 = this.scopeStack[i];
3756
+ var flags = ref2.flags;
3757
+ if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) || flags & SCOPE_FUNCTION && !(flags & SCOPE_ARROW)) {
3758
+ return true;
3759
+ }
3760
+ }
3761
+ return false;
3754
3762
  };
3755
3763
  prototypeAccessors.inClassStaticBlock.get = function() {
3756
3764
  return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
@@ -4593,11 +4601,9 @@ pp$8.parseClassField = function(field) {
4593
4601
  this.raise(field.key.start, "Classes can't have a static field named 'prototype'");
4594
4602
  }
4595
4603
  if (this.eat(types$1.eq)) {
4596
- var scope = this.currentThisScope();
4597
- var inClassFieldInit = scope.inClassFieldInit;
4598
- scope.inClassFieldInit = true;
4604
+ this.enterScope(SCOPE_CLASS_FIELD_INIT | SCOPE_SUPER);
4599
4605
  field.value = this.parseMaybeAssign();
4600
- scope.inClassFieldInit = inClassFieldInit;
4606
+ this.exitScope();
4601
4607
  } else {
4602
4608
  field.value = null;
4603
4609
  }
@@ -4720,6 +4726,9 @@ pp$8.parseExport = function(node, exports) {
4720
4726
  }
4721
4727
  node.specifiers = [];
4722
4728
  node.source = null;
4729
+ if (this.options.ecmaVersion >= 16) {
4730
+ node.attributes = [];
4731
+ }
4723
4732
  } else {
4724
4733
  node.declaration = null;
4725
4734
  node.specifiers = this.parseExportSpecifiers(exports);
@@ -4741,6 +4750,9 @@ pp$8.parseExport = function(node, exports) {
4741
4750
  }
4742
4751
  }
4743
4752
  node.source = null;
4753
+ if (this.options.ecmaVersion >= 16) {
4754
+ node.attributes = [];
4755
+ }
4744
4756
  }
4745
4757
  this.semicolon();
4746
4758
  }
@@ -6100,9 +6112,10 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
6100
6112
  return this.finishNode(prop, "Property");
6101
6113
  };
6102
6114
  pp$5.parseGetterSetter = function(prop) {
6103
- prop.kind = prop.key.name;
6115
+ var kind = prop.key.name;
6104
6116
  this.parsePropertyName(prop);
6105
6117
  prop.value = this.parseMethod(false);
6118
+ prop.kind = kind;
6106
6119
  var paramCount = prop.kind === "get" ? 0 : 1;
6107
6120
  if (prop.value.params.length !== paramCount) {
6108
6121
  var start = prop.value.start;
@@ -6128,9 +6141,9 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
6128
6141
  if (isPattern) {
6129
6142
  this.unexpected();
6130
6143
  }
6131
- prop.kind = "init";
6132
6144
  prop.method = true;
6133
6145
  prop.value = this.parseMethod(isGenerator, isAsync);
6146
+ prop.kind = "init";
6134
6147
  } else if (!isPattern && !containsEsc && this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" && (prop.key.name === "get" || prop.key.name === "set") && (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {
6135
6148
  if (isGenerator || isAsync) {
6136
6149
  this.unexpected();
@@ -6144,7 +6157,6 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
6144
6157
  if (prop.key.name === "await" && !this.awaitIdentPos) {
6145
6158
  this.awaitIdentPos = startPos;
6146
6159
  }
6147
- prop.kind = "init";
6148
6160
  if (isPattern) {
6149
6161
  prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));
6150
6162
  } else if (this.type === types$1.eq && refDestructuringErrors) {
@@ -6155,6 +6167,7 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
6155
6167
  } else {
6156
6168
  prop.value = this.copyNode(prop.key);
6157
6169
  }
6170
+ prop.kind = "init";
6158
6171
  prop.shorthand = true;
6159
6172
  } else {
6160
6173
  this.unexpected();
@@ -6304,7 +6317,7 @@ pp$5.checkUnreserved = function(ref2) {
6304
6317
  if (this.inAsync && name === "await") {
6305
6318
  this.raiseRecoverable(start, "Cannot use 'await' as identifier inside an async function");
6306
6319
  }
6307
- if (this.currentThisScope().inClassFieldInit && name === "arguments") {
6320
+ if (!(this.currentThisScope().flags & SCOPE_VAR) && name === "arguments") {
6308
6321
  this.raiseRecoverable(start, "Cannot use 'arguments' in class field initializer");
6309
6322
  }
6310
6323
  if (this.inClassStaticBlock && (name === "arguments" || name === "await")) {
@@ -6397,6 +6410,9 @@ var pp$4 = Parser.prototype;
6397
6410
  pp$4.raise = function(pos, message) {
6398
6411
  var loc = getLineInfo(this.input, pos);
6399
6412
  message += " (" + loc.line + ":" + loc.column + ")";
6413
+ if (this.sourceFile) {
6414
+ message += " in " + this.sourceFile;
6415
+ }
6400
6416
  var err2 = new SyntaxError(message);
6401
6417
  err2.pos = pos;
6402
6418
  err2.loc = loc;
@@ -6415,7 +6431,6 @@ var Scope = function Scope2(flags) {
6415
6431
  this.var = [];
6416
6432
  this.lexical = [];
6417
6433
  this.functions = [];
6418
- this.inClassFieldInit = false;
6419
6434
  };
6420
6435
  pp$3.enterScope = function(flags) {
6421
6436
  this.scopeStack.push(new Scope(flags));
@@ -6477,7 +6492,7 @@ pp$3.currentScope = function() {
6477
6492
  pp$3.currentVarScope = function() {
6478
6493
  for (var i = this.scopeStack.length - 1; ; i--) {
6479
6494
  var scope = this.scopeStack[i];
6480
- if (scope.flags & SCOPE_VAR) {
6495
+ if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK)) {
6481
6496
  return scope;
6482
6497
  }
6483
6498
  }
@@ -6485,7 +6500,7 @@ pp$3.currentVarScope = function() {
6485
6500
  pp$3.currentThisScope = function() {
6486
6501
  for (var i = this.scopeStack.length - 1; ; i--) {
6487
6502
  var scope = this.scopeStack[i];
6488
- if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) {
6503
+ if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) && !(scope.flags & SCOPE_ARROW)) {
6489
6504
  return scope;
6490
6505
  }
6491
6506
  }
@@ -8733,7 +8748,7 @@ pp.readWord = function() {
8733
8748
  }
8734
8749
  return this.finishToken(type, word);
8735
8750
  };
8736
- var version = "8.14.0";
8751
+ var version = "8.14.1";
8737
8752
  Parser.acorn = {
8738
8753
  Parser,
8739
8754
  version,
@@ -10160,7 +10175,151 @@ function resolvePathSync(id, options) {
10160
10175
  return fileURLToPath(resolveSync(id, options));
10161
10176
  }
10162
10177
 
10163
- // node_modules/.pnpm/local-pkg@1.0.0/node_modules/local-pkg/dist/index.mjs
10178
+ // node_modules/.pnpm/quansync@0.2.8/node_modules/quansync/dist/index.mjs
10179
+ var GET_IS_ASYNC = Symbol.for("quansync.getIsAsync");
10180
+ var QuansyncError = class extends Error {
10181
+ constructor(message = "Unexpected promise in sync context") {
10182
+ super(message);
10183
+ this.name = "QuansyncError";
10184
+ }
10185
+ };
10186
+ function isThenable(value) {
10187
+ return value && typeof value === "object" && typeof value.then === "function";
10188
+ }
10189
+ function isQuansyncGenerator(value) {
10190
+ return value && typeof value === "object" && typeof value[Symbol.iterator] === "function" && "__quansync" in value;
10191
+ }
10192
+ function fromObject(options) {
10193
+ const generator = function* (...args) {
10194
+ const isAsync = yield GET_IS_ASYNC;
10195
+ if (isAsync)
10196
+ return yield options.async.apply(this, args);
10197
+ return options.sync.apply(this, args);
10198
+ };
10199
+ function fn(...args) {
10200
+ const iter = generator.apply(this, args);
10201
+ iter.then = (...thenArgs) => options.async.apply(this, args).then(...thenArgs);
10202
+ iter.__quansync = true;
10203
+ return iter;
10204
+ }
10205
+ fn.sync = options.sync;
10206
+ fn.async = options.async;
10207
+ return fn;
10208
+ }
10209
+ function fromPromise(promise) {
10210
+ return fromObject({
10211
+ async: () => Promise.resolve(promise),
10212
+ sync: () => {
10213
+ if (isThenable(promise))
10214
+ throw new QuansyncError();
10215
+ return promise;
10216
+ }
10217
+ });
10218
+ }
10219
+ function unwrapYield(value, isAsync) {
10220
+ if (value === GET_IS_ASYNC)
10221
+ return isAsync;
10222
+ if (isQuansyncGenerator(value))
10223
+ return isAsync ? iterateAsync(value) : iterateSync(value);
10224
+ if (!isAsync && isThenable(value))
10225
+ throw new QuansyncError();
10226
+ return value;
10227
+ }
10228
+ function iterateSync(generator) {
10229
+ let current2 = generator.next();
10230
+ while (!current2.done) {
10231
+ try {
10232
+ current2 = generator.next(unwrapYield(current2.value));
10233
+ } catch (err2) {
10234
+ current2 = generator.throw(err2);
10235
+ }
10236
+ }
10237
+ return unwrapYield(current2.value);
10238
+ }
10239
+ async function iterateAsync(generator) {
10240
+ let current2 = generator.next();
10241
+ while (!current2.done) {
10242
+ try {
10243
+ current2 = generator.next(await unwrapYield(current2.value, true));
10244
+ } catch (err2) {
10245
+ current2 = generator.throw(err2);
10246
+ }
10247
+ }
10248
+ return current2.value;
10249
+ }
10250
+ function fromGeneratorFn(generatorFn) {
10251
+ return fromObject({
10252
+ name: generatorFn.name,
10253
+ async(...args) {
10254
+ return iterateAsync(generatorFn.apply(this, args));
10255
+ },
10256
+ sync(...args) {
10257
+ return iterateSync(generatorFn.apply(this, args));
10258
+ }
10259
+ });
10260
+ }
10261
+ function quansync(options) {
10262
+ if (isThenable(options))
10263
+ return fromPromise(options);
10264
+ if (typeof options === "function")
10265
+ return fromGeneratorFn(options);
10266
+ else
10267
+ return fromObject(options);
10268
+ }
10269
+
10270
+ // node_modules/.pnpm/quansync@0.2.8/node_modules/quansync/dist/macro.mjs
10271
+ var quansync2 = quansync;
10272
+
10273
+ // node_modules/.pnpm/local-pkg@1.1.1/node_modules/local-pkg/dist/index.mjs
10274
+ var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
10275
+ async function findUp$1(name, {
10276
+ cwd = process2.cwd(),
10277
+ type = "file",
10278
+ stopAt
10279
+ } = {}) {
10280
+ let directory = path2.resolve(toPath(cwd) ?? "");
10281
+ const { root } = path2.parse(directory);
10282
+ stopAt = path2.resolve(directory, toPath(stopAt ?? root));
10283
+ const isAbsoluteName = path2.isAbsolute(name);
10284
+ while (directory) {
10285
+ const filePath = isAbsoluteName ? name : path2.join(directory, name);
10286
+ try {
10287
+ const stats = await fsPromises.stat(filePath);
10288
+ if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
10289
+ return filePath;
10290
+ }
10291
+ } catch {
10292
+ }
10293
+ if (directory === stopAt || directory === root) {
10294
+ break;
10295
+ }
10296
+ directory = path2.dirname(directory);
10297
+ }
10298
+ }
10299
+ function findUpSync(name, {
10300
+ cwd = process2.cwd(),
10301
+ type = "file",
10302
+ stopAt
10303
+ } = {}) {
10304
+ let directory = path2.resolve(toPath(cwd) ?? "");
10305
+ const { root } = path2.parse(directory);
10306
+ stopAt = path2.resolve(directory, toPath(stopAt) ?? root);
10307
+ const isAbsoluteName = path2.isAbsolute(name);
10308
+ while (directory) {
10309
+ const filePath = isAbsoluteName ? name : path2.join(directory, name);
10310
+ try {
10311
+ const stats = fs2.statSync(filePath, { throwIfNoEntry: false });
10312
+ if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) {
10313
+ return filePath;
10314
+ }
10315
+ } catch {
10316
+ }
10317
+ if (directory === stopAt || directory === root) {
10318
+ break;
10319
+ }
10320
+ directory = path2.dirname(directory);
10321
+ }
10322
+ }
10164
10323
  function _resolve2(path3, options = {}) {
10165
10324
  if (options.platform === "auto" || !options.platform)
10166
10325
  options.platform = process2.platform === "win32" ? "win32" : "posix";
@@ -10184,6 +10343,30 @@ function _resolve2(path3, options = {}) {
10184
10343
  function isPackageExists(name, options = {}) {
10185
10344
  return !!resolvePackage(name, options);
10186
10345
  }
10346
+ function getPackageJsonPath(name, options = {}) {
10347
+ const entry = resolvePackage(name, options);
10348
+ if (!entry)
10349
+ return;
10350
+ return searchPackageJSON(entry);
10351
+ }
10352
+ var readFile = quansync2({
10353
+ async: (id) => fs2.promises.readFile(id, "utf8"),
10354
+ sync: (id) => fs2.readFileSync(id, "utf8")
10355
+ });
10356
+ var getPackageInfo = quansync2(function* (name, options = {}) {
10357
+ const packageJsonPath = getPackageJsonPath(name, options);
10358
+ if (!packageJsonPath)
10359
+ return;
10360
+ const packageJson = JSON.parse(yield readFile(packageJsonPath));
10361
+ return {
10362
+ name,
10363
+ version: packageJson.version,
10364
+ rootPath: dirname3(packageJsonPath),
10365
+ packageJsonPath,
10366
+ packageJson
10367
+ };
10368
+ });
10369
+ var getPackageInfoSync = getPackageInfo.sync;
10187
10370
  function resolvePackage(name, options = {}) {
10188
10371
  try {
10189
10372
  return _resolve2(`${name}/package.json`, options);
@@ -10197,6 +10380,37 @@ function resolvePackage(name, options = {}) {
10197
10380
  return false;
10198
10381
  }
10199
10382
  }
10383
+ function searchPackageJSON(dir) {
10384
+ let packageJsonPath;
10385
+ while (true) {
10386
+ if (!dir)
10387
+ return;
10388
+ const newDir = dirname3(dir);
10389
+ if (newDir === dir)
10390
+ return;
10391
+ dir = newDir;
10392
+ packageJsonPath = join2(dir, "package.json");
10393
+ if (fs2.existsSync(packageJsonPath))
10394
+ break;
10395
+ }
10396
+ return packageJsonPath;
10397
+ }
10398
+ var findUp = quansync2({
10399
+ sync: findUpSync,
10400
+ async: findUp$1
10401
+ });
10402
+ var loadPackageJSON = quansync2(function* (cwd = process2.cwd()) {
10403
+ const path3 = yield findUp("package.json", { cwd });
10404
+ if (!path3 || !fs2.existsSync(path3))
10405
+ return null;
10406
+ return JSON.parse(yield readFile(path3));
10407
+ });
10408
+ var loadPackageJSONSync = loadPackageJSON.sync;
10409
+ var isPackageListed = quansync2(function* (name, cwd) {
10410
+ const pkg = (yield loadPackageJSON(cwd)) || {};
10411
+ return name in (pkg.dependencies || {}) || name in (pkg.devDependencies || {});
10412
+ });
10413
+ var isPackageListedSync = isPackageListed.sync;
10200
10414
 
10201
10415
  // node_modules/.pnpm/neverthrow@8.2.0/node_modules/neverthrow/dist/index.es.js
10202
10416
  var defaultErrorConfig = {
@@ -10466,7 +10680,7 @@ var ResultAsync = class _ResultAsync {
10466
10680
  function errAsync(err2) {
10467
10681
  return new ResultAsync(Promise.resolve(new Err(err2)));
10468
10682
  }
10469
- var fromPromise = ResultAsync.fromPromise;
10683
+ var fromPromise2 = ResultAsync.fromPromise;
10470
10684
  var fromSafePromise = ResultAsync.fromSafePromise;
10471
10685
  var fromAsyncThrowable = ResultAsync.fromThrowable;
10472
10686
  var combineResultList = (resultList) => {
@@ -10921,7 +11135,6 @@ async function importPluginReact() {
10921
11135
  }
10922
11136
  async function importPluginReactHooks() {
10923
11137
  const pluginReactHooks = await interopDefault2(
10924
- // @ts-expect-error - bad types
10925
11138
  import("eslint-plugin-react-hooks")
10926
11139
  );
10927
11140
  return {
@@ -10940,7 +11153,6 @@ async function importReactPlugins() {
10940
11153
  const [pluginReact, pluginReactHooks, pluginReactRefresh] = await Promise.all(
10941
11154
  [
10942
11155
  interopDefault2(import("eslint-plugin-react")),
10943
- // @ts-expect-error - bad types
10944
11156
  interopDefault2(import("eslint-plugin-react-hooks")),
10945
11157
  interopDefault2(import("eslint-plugin-react-refresh"))
10946
11158
  ]
@@ -13463,7 +13675,7 @@ async function jsse(options = {}, ...userConfigs) {
13463
13675
  const configs = [];
13464
13676
  if (enableGitignore) {
13465
13677
  if (typeof enableGitignore === "boolean") {
13466
- if (fs2.existsSync(".gitignore")) {
13678
+ if (fs3.existsSync(".gitignore")) {
13467
13679
  configs.push(
13468
13680
  interopDefault2(import("eslint-config-flat-gitignore")).then((r2) => {
13469
13681
  const res = r2();
@@ -13639,7 +13851,7 @@ async function defineConfig(options = {}, ...userConfigs) {
13639
13851
  }
13640
13852
 
13641
13853
  // src/generated/version.ts
13642
- var VERSION = "0.3.0";
13854
+ var VERSION = "0.3.2";
13643
13855
 
13644
13856
  // src/presets.ts
13645
13857
  var jsseReact = (options, ...configs) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsse/eslint-config",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "main": "./dist/index.js",
27
27
  "types": "./dist/index.d.ts",
28
28
  "bin": {
29
- "jsselint": "dist/cli.cjs"
29
+ "jsselint": "dist/cli.js"
30
30
  },
31
31
  "files": [
32
32
  "!**/*.test.*",
@@ -67,25 +67,25 @@
67
67
  "dependencies": {
68
68
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
69
69
  "@eslint/compat": "^1.2.7",
70
- "@eslint/js": "~9.21.0",
71
- "@eslint/markdown": "^6.2.2",
72
- "@stylistic/eslint-plugin": "4.0.1",
73
- "@typescript-eslint/eslint-plugin": "^8.25.0",
74
- "@typescript-eslint/parser": "^8.25.0",
75
- "@vitest/eslint-plugin": "^1.1.31",
70
+ "@eslint/js": "~9.22.0",
71
+ "@eslint/markdown": "^6.3.0",
72
+ "@stylistic/eslint-plugin": "4.2.0",
73
+ "@typescript-eslint/eslint-plugin": "^8.26.1",
74
+ "@typescript-eslint/parser": "^8.26.1",
75
+ "@vitest/eslint-plugin": "^1.1.36",
76
76
  "eslint-config-flat-gitignore": "^2.1.0",
77
77
  "eslint-define-config": "^2.1.0",
78
78
  "eslint-merge-processors": "^2.0.0",
79
- "eslint-plugin-antfu": "^3.1.0",
79
+ "eslint-plugin-antfu": "^3.1.1",
80
80
  "eslint-plugin-command": "^3.1.0",
81
81
  "eslint-plugin-import-x": "^4.6.1",
82
- "eslint-plugin-jsdoc": "^50.6.3",
82
+ "eslint-plugin-jsdoc": "^50.6.4",
83
83
  "eslint-plugin-jsonc": "^2.19.1",
84
- "eslint-plugin-n": "^17.15.1",
84
+ "eslint-plugin-n": "^17.16.2",
85
85
  "eslint-plugin-no-only-tests": "^3.3.0",
86
- "eslint-plugin-perfectionist": "^4.9.0",
86
+ "eslint-plugin-perfectionist": "^4.10.1",
87
87
  "eslint-plugin-react": "~7.37.4",
88
- "eslint-plugin-react-hooks": "~5.1.0",
88
+ "eslint-plugin-react-hooks": "~5.2.0",
89
89
  "eslint-plugin-react-refresh": "~0.4.19",
90
90
  "eslint-plugin-toml": "^0.12.0",
91
91
  "eslint-plugin-tsdoc": "^0.4.0",
@@ -94,20 +94,20 @@
94
94
  "eslint-plugin-yml": "^1.17.0",
95
95
  "jsonc-eslint-parser": "^2.4.0",
96
96
  "toml-eslint-parser": "^0.10.0",
97
- "typescript-eslint": "^8.25.0",
98
- "yaml-eslint-parser": "^1.2.3"
97
+ "typescript-eslint": "^8.26.1",
98
+ "yaml-eslint-parser": "^1.3.0"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@biomejs/biome": "1.9.4",
102
102
  "@changesets/cli": "^2.28.1",
103
103
  "@jsse/prettier-config": "^0.1.0",
104
104
  "@jsse/tsconfig": "^0.2.4",
105
- "@stylistic/eslint-plugin-jsx": "^4.0.1",
105
+ "@stylistic/eslint-plugin-jsx": "^4.2.0",
106
106
  "@types/eslint": "^9.6.1",
107
107
  "@types/fs-extra": "^11.0.4",
108
- "@types/node": "^22.13.5",
108
+ "@types/node": "^22.13.10",
109
109
  "cac": "^6.7.14",
110
- "eslint": "^9.21.0",
110
+ "eslint": "^9.22.0",
111
111
  "eslint-flat-config-utils": "^2.0.1",
112
112
  "eslint-plugin-tailwindcss": "^3.18.0",
113
113
  "eslint-typegen": "^2.0.0",
@@ -115,17 +115,17 @@
115
115
  "fast-glob": "^3.3.3",
116
116
  "fs-extra": "^11.3.0",
117
117
  "globals": "^16.0.0",
118
- "local-pkg": "^1.0.0",
118
+ "local-pkg": "^1.1.1",
119
119
  "neverthrow": "^8.2.0",
120
120
  "picocolors": "^1.1.1",
121
- "prettier": "^3.5.2",
121
+ "prettier": "^3.5.3",
122
122
  "react": "~19.0.0",
123
123
  "rimraf": "^6.0.1",
124
124
  "tailwindcss": "^3.4.17",
125
- "tsup": "^8.3.6",
125
+ "tsup": "^8.4.0",
126
126
  "tsx": "^4.19.3",
127
- "typescript": "5.7.3",
128
- "vitest": "^3.0.7"
127
+ "typescript": "5.8.2",
128
+ "vitest": "^3.0.8"
129
129
  },
130
130
  "prettier": "@jsse/prettier-config",
131
131
  "scripts": {