@jsse/eslint-config 0.2.9 → 0.2.10

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
@@ -2972,12 +2972,12 @@ var require_globals2 = __commonJS({
2972
2972
  });
2973
2973
 
2974
2974
  // src/factory.ts
2975
- import fs2 from "fs";
2976
- import process6 from "process";
2975
+ import fs2 from "node:fs";
2976
+ import process6 from "node:process";
2977
2977
 
2978
2978
  // node_modules/.pnpm/local-pkg@0.5.0/node_modules/local-pkg/dist/index.mjs
2979
- import path3, { dirname as dirname3, win32, join as join2 } from "path";
2980
- import process2 from "process";
2979
+ import path3, { dirname as dirname3, win32, join as join2 } from "node:path";
2980
+ import process2 from "node:process";
2981
2981
 
2982
2982
  // node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/dist/acorn.mjs
2983
2983
  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, 370, 1, 81, 2, 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, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 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, 406, 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, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 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, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
@@ -3787,6 +3787,11 @@ pp$8.parseStatement = function(context, topLevel, exports) {
3787
3787
  }
3788
3788
  }
3789
3789
  return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports);
3790
+ // If the statement does not start with a statement keyword or a
3791
+ // brace, it's an ExpressionStatement or LabeledStatement. We
3792
+ // simply start parsing an expression, and afterwards, if the
3793
+ // next token is a colon and the expression was a simple
3794
+ // Identifier node, we switch to interpreting it as a label.
3790
3795
  default:
3791
3796
  if (this.isAsyncFunction()) {
3792
3797
  if (context) {
@@ -7840,8 +7845,11 @@ pp.readToken_numberSign = function() {
7840
7845
  };
7841
7846
  pp.getTokenFromCode = function(code) {
7842
7847
  switch (code) {
7848
+ // The interpretation of a dot depends on whether it is followed
7849
+ // by a digit or another two dots.
7843
7850
  case 46:
7844
7851
  return this.readToken_dot();
7852
+ // Punctuation tokens.
7845
7853
  case 40:
7846
7854
  ++this.pos;
7847
7855
  return this.finishToken(types$1.parenL);
@@ -7888,6 +7896,8 @@ pp.getTokenFromCode = function(code) {
7888
7896
  return this.readRadixNumber(2);
7889
7897
  }
7890
7898
  }
7899
+ // Anything else beginning with a digit is an integer, octal
7900
+ // number, or float.
7891
7901
  case 49:
7892
7902
  case 50:
7893
7903
  case 51:
@@ -7898,9 +7908,14 @@ pp.getTokenFromCode = function(code) {
7898
7908
  case 56:
7899
7909
  case 57:
7900
7910
  return this.readNumber(false);
7911
+ // Quotes produce strings.
7901
7912
  case 34:
7902
7913
  case 39:
7903
7914
  return this.readString(code);
7915
+ // Operators are parsed inline in tiny state machines. '=' (61) is
7916
+ // often referred to. `finishOp` simply skips the amount of
7917
+ // characters it is given as second argument, and returns a token
7918
+ // of the type given by its first argument.
7904
7919
  case 47:
7905
7920
  return this.readToken_slash();
7906
7921
  case 37:
@@ -8216,12 +8231,14 @@ pp.readInvalidTemplateToken = function() {
8216
8231
  if (this.input[this.pos + 1] !== "{") {
8217
8232
  break;
8218
8233
  }
8234
+ // fall through
8219
8235
  case "`":
8220
8236
  return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
8221
8237
  case "\r":
8222
8238
  if (this.input[this.pos + 1] === "\n") {
8223
8239
  ++this.pos;
8224
8240
  }
8241
+ // fall through
8225
8242
  case "\n":
8226
8243
  case "\u2028":
8227
8244
  case "\u2029":
@@ -8238,24 +8255,33 @@ pp.readEscapedChar = function(inTemplate) {
8238
8255
  switch (ch) {
8239
8256
  case 110:
8240
8257
  return "\n";
8258
+ // 'n' -> '\n'
8241
8259
  case 114:
8242
8260
  return "\r";
8261
+ // 'r' -> '\r'
8243
8262
  case 120:
8244
8263
  return String.fromCharCode(this.readHexChar(2));
8264
+ // 'x'
8245
8265
  case 117:
8246
8266
  return codePointToString(this.readCodePoint());
8267
+ // 'u'
8247
8268
  case 116:
8248
8269
  return " ";
8270
+ // 't' -> '\t'
8249
8271
  case 98:
8250
8272
  return "\b";
8273
+ // 'b' -> '\b'
8251
8274
  case 118:
8252
8275
  return "\v";
8276
+ // 'v' -> '\u000b'
8253
8277
  case 102:
8254
8278
  return "\f";
8279
+ // 'f' -> '\f'
8255
8280
  case 13:
8256
8281
  if (this.input.charCodeAt(this.pos) === 10) {
8257
8282
  ++this.pos;
8258
8283
  }
8284
+ // '\r\n'
8259
8285
  case 10:
8260
8286
  if (this.options.locations) {
8261
8287
  this.lineStart = this.pos;
@@ -8374,8 +8400,8 @@ Parser.acorn = {
8374
8400
  };
8375
8401
 
8376
8402
  // node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
8377
- import { builtinModules, createRequire } from "module";
8378
- import fs, { realpathSync, statSync, promises } from "fs";
8403
+ import { builtinModules, createRequire } from "node:module";
8404
+ import fs, { realpathSync, statSync, promises } from "node:fs";
8379
8405
 
8380
8406
  // node_modules/.pnpm/ufo@1.5.3/node_modules/ufo/dist/index.mjs
8381
8407
  var r = String.fromCharCode;
@@ -8431,12 +8457,12 @@ var isAbsolute = function(p) {
8431
8457
  };
8432
8458
 
8433
8459
  // node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
8434
- import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "url";
8435
- import assert from "assert";
8436
- import process$1 from "process";
8437
- import path2, { dirname as dirname2 } from "path";
8438
- import v8 from "v8";
8439
- import { format as format2, inspect } from "util";
8460
+ import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
8461
+ import assert from "node:assert";
8462
+ import process$1 from "node:process";
8463
+ import path2, { dirname as dirname2 } from "node:path";
8464
+ import v8 from "node:v8";
8465
+ import { format as format2, inspect } from "node:util";
8440
8466
  var BUILTIN_MODULES = new Set(builtinModules);
8441
8467
  function normalizeSlash(path4) {
8442
8468
  return path4.replace(/\\/g, "/");
@@ -9959,7 +9985,7 @@ var GLOB_EXCLUDE = [
9959
9985
  ];
9960
9986
 
9961
9987
  // src/utils.ts
9962
- import process3 from "process";
9988
+ import process3 from "node:process";
9963
9989
  async function combine(...configs) {
9964
9990
  const resolved = await Promise.all(configs);
9965
9991
  return resolved.flat();
@@ -11259,7 +11285,7 @@ var prettier = async () => {
11259
11285
  };
11260
11286
 
11261
11287
  // src/configs/ts/typescript-language-options.ts
11262
- import process4 from "process";
11288
+ import process4 from "node:process";
11263
11289
  function typescriptLanguageOptions(options) {
11264
11290
  const { componentExts = [], react: react2, tsconfig } = options || {};
11265
11291
  const tsOptions = tsconfig ? {
@@ -11847,7 +11873,7 @@ var tailwind = async (options) => {
11847
11873
  };
11848
11874
 
11849
11875
  // src/configs/ts/parser.ts
11850
- import process5 from "process";
11876
+ import process5 from "node:process";
11851
11877
  function autoUseParserService(options) {
11852
11878
  if (options.useProjectService !== void 0) {
11853
11879
  return options.useProjectService;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsse/eslint-config",
3
3
  "type": "module",
4
- "version": "0.2.9",
4
+ "version": "0.2.10",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  "eslint-plugin-react-hooks": "^4.6.0",
36
36
  "eslint-plugin-react-refresh": "^0.4.4",
37
37
  "eslint-plugin-tailwindcss": "^3.15.1",
38
- "tailwind": "^3.4.2"
38
+ "tailwindcss": "^3.4.10"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "eslint": {
@@ -53,55 +53,55 @@
53
53
  "eslint-plugin-tailwindcss": {
54
54
  "optional": true
55
55
  },
56
- "tailwind": {
56
+ "tailwindcss": {
57
57
  "optional": true
58
58
  }
59
59
  },
60
60
  "dependencies": {
61
- "@eslint/js": "~9.9.1",
62
- "@stylistic/eslint-plugin": "2.7.2",
63
- "@typescript-eslint/eslint-plugin": "^8.4.0",
64
- "@typescript-eslint/parser": "^8.4.0",
61
+ "@eslint/js": "~9.10.0",
62
+ "@stylistic/eslint-plugin": "2.8.0",
63
+ "@typescript-eslint/eslint-plugin": "^8.6.0",
64
+ "@typescript-eslint/parser": "^8.6.0",
65
65
  "eslint-config-flat-gitignore": "^0.3.0",
66
66
  "eslint-define-config": "^2.1.0",
67
- "eslint-plugin-antfu": "^2.3.6",
67
+ "eslint-plugin-antfu": "^2.6.0",
68
68
  "eslint-plugin-eslint-comments": "^3.2.0",
69
- "eslint-plugin-import-x": "^4.1.1",
70
- "eslint-plugin-jsdoc": "^50.2.2",
69
+ "eslint-plugin-import-x": "^4.2.1",
70
+ "eslint-plugin-jsdoc": "^50.2.3",
71
71
  "eslint-plugin-jsonc": "^2.16.0",
72
72
  "eslint-plugin-markdown": "^5.1.0",
73
- "eslint-plugin-n": "^17.10.2",
73
+ "eslint-plugin-n": "^17.10.3",
74
74
  "eslint-plugin-no-only-tests": "^3.3.0",
75
- "eslint-plugin-perfectionist": "^3.3.0",
76
- "eslint-plugin-react": "~7.35.0",
75
+ "eslint-plugin-perfectionist": "^3.6.0",
76
+ "eslint-plugin-react": "~7.36.1",
77
77
  "eslint-plugin-react-hooks": "~4.6.2",
78
- "eslint-plugin-react-refresh": "~0.4.11",
78
+ "eslint-plugin-react-refresh": "~0.4.12",
79
79
  "eslint-plugin-toml": "^0.11.1",
80
80
  "eslint-plugin-tsdoc": "^0.3.0",
81
81
  "eslint-plugin-unicorn": "^55.0.0",
82
- "eslint-plugin-unused-imports": "^4.1.3",
82
+ "eslint-plugin-unused-imports": "^4.1.4",
83
83
  "eslint-plugin-vitest": "0.5.4",
84
84
  "eslint-plugin-yml": "^1.14.0",
85
85
  "jsonc-eslint-parser": "^2.4.0",
86
- "picocolors": "^1.0.1",
86
+ "picocolors": "^1.1.0",
87
87
  "toml-eslint-parser": "^0.10.0",
88
- "typescript-eslint": "^8.4.0",
88
+ "typescript-eslint": "^8.6.0",
89
89
  "yaml-eslint-parser": "^1.2.3"
90
90
  },
91
91
  "devDependencies": {
92
- "@biomejs/biome": "1.8.3",
93
- "@changesets/cli": "^2.27.7",
92
+ "@biomejs/biome": "1.9.1",
93
+ "@changesets/cli": "^2.27.8",
94
94
  "@jsse/prettier-config": "^0.1.0",
95
95
  "@types/eslint": "^9.6.1",
96
96
  "@types/eslint__js": "~8.42.3",
97
97
  "@types/fs-extra": "^11.0.4",
98
- "@types/node": "^22.5.2",
98
+ "@types/node": "^22.5.5",
99
99
  "cac": "^6.7.14",
100
- "eslint": "^9.9.1",
101
- "eslint-flat-config-utils": "^0.3.1",
100
+ "eslint": "^9.10.0",
101
+ "eslint-flat-config-utils": "^0.4.0",
102
102
  "eslint-plugin-tailwindcss": "^3.17.4",
103
- "eslint-typegen": "^0.3.1",
104
- "execa": "~9.3.1",
103
+ "eslint-typegen": "^0.3.2",
104
+ "execa": "~9.4.0",
105
105
  "fast-glob": "^3.3.2",
106
106
  "fs-extra": "^11.2.0",
107
107
  "globals": "^15.9.0",
@@ -109,11 +109,11 @@
109
109
  "prettier": "^3.3.3",
110
110
  "react": "~18.3.1",
111
111
  "rimraf": "^6.0.1",
112
- "tailwindcss": "^3.4.10",
113
- "tsup": "^8.2.4",
114
- "tsx": "^4.19.0",
115
- "typescript": "~5.5.4",
116
- "vitest": "^2.0.5"
112
+ "tailwindcss": "^3.4.12",
113
+ "tsup": "^8.3.0",
114
+ "tsx": "^4.19.1",
115
+ "typescript": "~5.6.2",
116
+ "vitest": "^2.1.1"
117
117
  },
118
118
  "prettier": "@jsse/prettier-config",
119
119
  "scripts": {