@jsse/eslint-config 0.2.29 → 0.2.31

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
@@ -28,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  mod
29
29
  ));
30
30
 
31
- // node_modules/.pnpm/globals@15.12.0/node_modules/globals/globals.json
31
+ // node_modules/.pnpm/globals@15.14.0/node_modules/globals/globals.json
32
32
  var require_globals = __commonJS({
33
- "node_modules/.pnpm/globals@15.12.0/node_modules/globals/globals.json"(exports, module) {
33
+ "node_modules/.pnpm/globals@15.14.0/node_modules/globals/globals.json"(exports, module) {
34
34
  module.exports = {
35
35
  amd: {
36
36
  define: false,
@@ -191,6 +191,7 @@ var require_globals = __commonJS({
191
191
  CSSKeywordValue: false,
192
192
  CSSLayerBlockRule: false,
193
193
  CSSLayerStatementRule: false,
194
+ CSSMarginRule: false,
194
195
  CSSMathClamp: false,
195
196
  CSSMathInvert: false,
196
197
  CSSMathMax: false,
@@ -1156,12 +1157,15 @@ var require_globals = __commonJS({
1156
1157
  XRDepthInformation: false,
1157
1158
  XRDOMOverlayState: false,
1158
1159
  XRFrame: false,
1160
+ XRHand: false,
1159
1161
  XRHitTestResult: false,
1160
1162
  XRHitTestSource: false,
1161
1163
  XRInputSource: false,
1162
1164
  XRInputSourceArray: false,
1163
1165
  XRInputSourceEvent: false,
1164
1166
  XRInputSourcesChangeEvent: false,
1167
+ XRJointPose: false,
1168
+ XRJointSpace: false,
1165
1169
  XRLayer: false,
1166
1170
  XRLightEstimate: false,
1167
1171
  XRLightProbe: false,
@@ -2685,6 +2689,24 @@ var require_globals = __commonJS({
2685
2689
  uniq: false,
2686
2690
  which: false
2687
2691
  },
2692
+ vitest: {
2693
+ afterAll: false,
2694
+ afterEach: false,
2695
+ assert: false,
2696
+ assertType: false,
2697
+ beforeAll: false,
2698
+ beforeEach: false,
2699
+ describe: false,
2700
+ expect: false,
2701
+ expectTypeOf: false,
2702
+ it: false,
2703
+ onTestFailed: false,
2704
+ onTestFinished: false,
2705
+ suite: false,
2706
+ test: false,
2707
+ vi: false,
2708
+ vitest: false
2709
+ },
2688
2710
  webextensions: {
2689
2711
  browser: false,
2690
2712
  chrome: false,
@@ -2801,6 +2823,10 @@ var require_globals = __commonJS({
2801
2823
  GPUUncapturedErrorEvent: false,
2802
2824
  GPUValidationError: false,
2803
2825
  Headers: false,
2826
+ HID: false,
2827
+ HIDConnectionEvent: false,
2828
+ HIDDevice: false,
2829
+ HIDInputReportEvent: false,
2804
2830
  IDBCursor: false,
2805
2831
  IDBCursorWithValue: false,
2806
2832
  IDBDatabase: false,
@@ -3006,9 +3032,9 @@ var require_globals = __commonJS({
3006
3032
  }
3007
3033
  });
3008
3034
 
3009
- // node_modules/.pnpm/globals@15.12.0/node_modules/globals/index.js
3035
+ // node_modules/.pnpm/globals@15.14.0/node_modules/globals/index.js
3010
3036
  var require_globals2 = __commonJS({
3011
- "node_modules/.pnpm/globals@15.12.0/node_modules/globals/index.js"(exports, module) {
3037
+ "node_modules/.pnpm/globals@15.14.0/node_modules/globals/index.js"(exports, module) {
3012
3038
  "use strict";
3013
3039
  module.exports = require_globals();
3014
3040
  }
@@ -3042,9 +3068,9 @@ var SLOW_RULES = [
3042
3068
  import fs2 from "node:fs";
3043
3069
  import process6 from "node:process";
3044
3070
 
3045
- // node_modules/.pnpm/local-pkg@0.5.1/node_modules/local-pkg/dist/index.mjs
3071
+ // node_modules/.pnpm/local-pkg@1.0.0/node_modules/local-pkg/dist/index.mjs
3046
3072
  import { createRequire as createRequire2 } from "node:module";
3047
- import path3, { dirname as dirname3, win32, join as join2 } from "node:path";
3073
+ import path2, { dirname as dirname3, win32, join as join2 } from "node:path";
3048
3074
  import process2 from "node:process";
3049
3075
 
3050
3076
  // node_modules/.pnpm/acorn@8.14.0/node_modules/acorn/dist/acorn.mjs
@@ -8574,7 +8600,7 @@ Parser.acorn = {
8574
8600
  nonASCIIwhitespace
8575
8601
  };
8576
8602
 
8577
- // node_modules/.pnpm/mlly@1.7.3/node_modules/mlly/dist/index.mjs
8603
+ // node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
8578
8604
  import { builtinModules, createRequire } from "node:module";
8579
8605
  import fs, { realpathSync, statSync, promises } from "node:fs";
8580
8606
 
@@ -8595,17 +8621,17 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
8595
8621
  if (hasTrailingSlash(input, true)) {
8596
8622
  return input || "/";
8597
8623
  }
8598
- let path4 = input;
8624
+ let path3 = input;
8599
8625
  let fragment = "";
8600
8626
  const fragmentIndex = input.indexOf("#");
8601
8627
  if (fragmentIndex >= 0) {
8602
- path4 = input.slice(0, fragmentIndex);
8628
+ path3 = input.slice(0, fragmentIndex);
8603
8629
  fragment = input.slice(fragmentIndex);
8604
- if (!path4) {
8630
+ if (!path3) {
8605
8631
  return fragment;
8606
8632
  }
8607
8633
  }
8608
- const [s0, ...s] = path4.split("?");
8634
+ const [s0, ...s] = path3.split("?");
8609
8635
  return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
8610
8636
  }
8611
8637
  function isNonEmptyURL(url) {
@@ -8625,22 +8651,22 @@ function joinURL(base, ...input) {
8625
8651
  }
8626
8652
  var protocolRelative = Symbol.for("ufo:protocolRelative");
8627
8653
 
8628
- // node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.mjs
8654
+ // node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.mjs
8629
8655
  var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
8630
8656
  var isAbsolute = function(p) {
8631
8657
  return _IS_ABSOLUTE_RE.test(p);
8632
8658
  };
8633
8659
 
8634
- // node_modules/.pnpm/mlly@1.7.3/node_modules/mlly/dist/index.mjs
8660
+ // node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
8635
8661
  import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
8636
8662
  import assert from "node:assert";
8637
8663
  import process$1 from "node:process";
8638
- import path2, { dirname as dirname2 } from "node:path";
8664
+ import path, { dirname as dirname2 } from "node:path";
8639
8665
  import v8 from "node:v8";
8640
8666
  import { format as format2, inspect } from "node:util";
8641
8667
  var BUILTIN_MODULES = new Set(builtinModules);
8642
- function normalizeSlash(path4) {
8643
- return path4.replace(/\\/g, "/");
8668
+ function normalizeSlash(path3) {
8669
+ return path3.replace(/\\/g, "/");
8644
8670
  }
8645
8671
  var own$1 = {}.hasOwnProperty;
8646
8672
  var classRegExp = /^([A-Z][a-z\d]*)+$/;
@@ -8753,8 +8779,8 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
8753
8779
  * @param {string} [base]
8754
8780
  * @param {string} [message]
8755
8781
  */
8756
- (path4, base, message) => {
8757
- return `Invalid package config ${path4}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
8782
+ (path3, base, message) => {
8783
+ return `Invalid package config ${path3}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
8758
8784
  },
8759
8785
  Error
8760
8786
  );
@@ -8786,8 +8812,8 @@ codes.ERR_MODULE_NOT_FOUND = createError(
8786
8812
  * @param {string} base
8787
8813
  * @param {boolean} [exactUrl]
8788
8814
  */
8789
- (path4, base, exactUrl = false) => {
8790
- return `Cannot find ${exactUrl ? "module" : "package"} '${path4}' imported from ${base}`;
8815
+ (path3, base, exactUrl = false) => {
8816
+ return `Cannot find ${exactUrl ? "module" : "package"} '${path3}' imported from ${base}`;
8791
8817
  },
8792
8818
  Error
8793
8819
  );
@@ -8838,8 +8864,8 @@ codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
8838
8864
  * @param {string} extension
8839
8865
  * @param {string} path
8840
8866
  */
8841
- (extension, path4) => {
8842
- return `Unknown file extension "${extension}" for ${path4}`;
8867
+ (extension, path3) => {
8868
+ return `Unknown file extension "${extension}" for ${path3}`;
8843
8869
  },
8844
8870
  TypeError
8845
8871
  );
@@ -8984,7 +9010,7 @@ function read(jsonPath, { base, specifier }) {
8984
9010
  }
8985
9011
  let string;
8986
9012
  try {
8987
- string = fs.readFileSync(path2.toNamespacedPath(jsonPath), "utf8");
9013
+ string = fs.readFileSync(path.toNamespacedPath(jsonPath), "utf8");
8988
9014
  } catch (error) {
8989
9015
  const exception = (
8990
9016
  /** @type {ErrnoException} */
@@ -9200,7 +9226,7 @@ Default "index" lookups for the main are deprecated for ES modules.`,
9200
9226
  "DeprecationWarning",
9201
9227
  "DEP0151"
9202
9228
  );
9203
- } else if (path2.resolve(packagePath, main) !== urlPath) {
9229
+ } else if (path.resolve(packagePath, main) !== urlPath) {
9204
9230
  process$1.emitWarning(
9205
9231
  `Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
9206
9232
  packagePath.length
@@ -9211,9 +9237,9 @@ Default "index" lookups for the main are deprecated for ES modules.`,
9211
9237
  );
9212
9238
  }
9213
9239
  }
9214
- function tryStatSync(path4) {
9240
+ function tryStatSync(path3) {
9215
9241
  try {
9216
- return statSync(path4);
9242
+ return statSync(path3);
9217
9243
  } catch {
9218
9244
  }
9219
9245
  }
@@ -9304,10 +9330,10 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
9304
9330
  error.url = String(resolved);
9305
9331
  throw error;
9306
9332
  }
9307
- if (!preserveSymlinks) {
9333
+ {
9308
9334
  const real = realpathSync(filePath);
9309
9335
  const { search, hash } = resolved;
9310
- resolved = pathToFileURL$1(real + (filePath.endsWith(path2.sep) ? "/" : ""));
9336
+ resolved = pathToFileURL$1(real + (filePath.endsWith(path.sep) ? "/" : ""));
9311
9337
  resolved.search = search;
9312
9338
  resolved.hash = hash;
9313
9339
  }
@@ -9851,7 +9877,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
9851
9877
  if (resolved.protocol !== "file:") {
9852
9878
  return resolved;
9853
9879
  }
9854
- return finalizeResolution(resolved, base, preserveSymlinks);
9880
+ return finalizeResolution(resolved, base);
9855
9881
  }
9856
9882
  function fileURLToPath(id) {
9857
9883
  if (typeof id === "string" && !id.startsWith("file://")) {
@@ -9978,9 +10004,8 @@ function resolvePathSync(id, options) {
9978
10004
  return fileURLToPath(resolveSync(id, options));
9979
10005
  }
9980
10006
 
9981
- // node_modules/.pnpm/local-pkg@0.5.1/node_modules/local-pkg/dist/index.mjs
9982
- var findUpStop = Symbol("findUpStop");
9983
- function _resolve2(path4, options = {}) {
10007
+ // node_modules/.pnpm/local-pkg@1.0.0/node_modules/local-pkg/dist/index.mjs
10008
+ function _resolve2(path3, options = {}) {
9984
10009
  if (options.platform === "auto" || !options.platform)
9985
10010
  options.platform = process2.platform === "win32" ? "win32" : "posix";
9986
10011
  if (process2.versions.pnp) {
@@ -9989,11 +10014,11 @@ function _resolve2(path4, options = {}) {
9989
10014
  paths.push(process2.cwd());
9990
10015
  const targetRequire = createRequire2(import.meta.url);
9991
10016
  try {
9992
- return targetRequire.resolve(path4, { paths });
10017
+ return targetRequire.resolve(path3, { paths });
9993
10018
  } catch {
9994
10019
  }
9995
10020
  }
9996
- const modulePath = resolvePathSync(path4, {
10021
+ const modulePath = resolvePathSync(path3, {
9997
10022
  url: options.paths
9998
10023
  });
9999
10024
  if (options.platform === "win32")
@@ -10717,7 +10742,6 @@ async function importPluginReactHooks() {
10717
10742
  }
10718
10743
  async function importPluginReactRefresh() {
10719
10744
  const pluginReactRefresh = await interopDefault2(
10720
- // @ts-expect-error - bad types
10721
10745
  import("eslint-plugin-react-refresh")
10722
10746
  );
10723
10747
  return {
@@ -10730,7 +10754,6 @@ async function importReactPlugins() {
10730
10754
  interopDefault2(import("eslint-plugin-react")),
10731
10755
  // @ts-expect-error - bad types
10732
10756
  interopDefault2(import("eslint-plugin-react-hooks")),
10733
- // @ts-expect-error - bad types
10734
10757
  interopDefault2(import("eslint-plugin-react-refresh"))
10735
10758
  ]
10736
10759
  );
@@ -13429,7 +13452,7 @@ async function defineConfig(options = {}, ...userConfigs) {
13429
13452
  }
13430
13453
 
13431
13454
  // src/generated/version.ts
13432
- var VERSION = "0.2.29";
13455
+ var VERSION = "0.2.31";
13433
13456
 
13434
13457
  // src/presets.ts
13435
13458
  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.2.29",
4
+ "version": "0.2.31",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -67,67 +67,67 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
70
- "@eslint/compat": "^1.2.3",
71
- "@eslint/js": "~9.15.0",
70
+ "@eslint/compat": "^1.2.5",
71
+ "@eslint/js": "~9.18.0",
72
72
  "@eslint/markdown": "^6.2.1",
73
- "@stylistic/eslint-plugin": "2.11.0",
74
- "@typescript-eslint/eslint-plugin": "^8.15.0",
75
- "@typescript-eslint/parser": "^8.15.0",
76
- "@vitest/eslint-plugin": "^1.1.10",
77
- "eslint-config-flat-gitignore": "^0.3.0",
73
+ "@stylistic/eslint-plugin": "2.13.0",
74
+ "@typescript-eslint/eslint-plugin": "^8.21.0",
75
+ "@typescript-eslint/parser": "^8.21.0",
76
+ "@vitest/eslint-plugin": "^1.1.25",
77
+ "eslint-config-flat-gitignore": "^1.0.0",
78
78
  "eslint-define-config": "^2.1.0",
79
- "eslint-merge-processors": "^0.1.0",
79
+ "eslint-merge-processors": "^1.0.0",
80
80
  "eslint-plugin-antfu": "^2.7.0",
81
- "eslint-plugin-command": "^0.2.6",
82
- "eslint-plugin-import-x": "^4.4.2",
83
- "eslint-plugin-jsdoc": "^50.5.0",
81
+ "eslint-plugin-command": "^2.1.0",
82
+ "eslint-plugin-import-x": "^4.6.1",
83
+ "eslint-plugin-jsdoc": "^50.6.2",
84
84
  "eslint-plugin-jsonc": "^2.18.1",
85
- "eslint-plugin-n": "^17.13.1",
85
+ "eslint-plugin-n": "^17.15.1",
86
86
  "eslint-plugin-no-only-tests": "^3.3.0",
87
- "eslint-plugin-perfectionist": "^4.0.3",
88
- "eslint-plugin-react": "~7.37.2",
89
- "eslint-plugin-react-hooks": "~5.0.0",
90
- "eslint-plugin-react-refresh": "~0.4.14",
91
- "eslint-plugin-toml": "^0.11.1",
92
- "eslint-plugin-tsdoc": "^0.3.0",
87
+ "eslint-plugin-perfectionist": "^4.7.0",
88
+ "eslint-plugin-react": "~7.37.4",
89
+ "eslint-plugin-react-hooks": "~5.1.0",
90
+ "eslint-plugin-react-refresh": "~0.4.18",
91
+ "eslint-plugin-toml": "^0.12.0",
92
+ "eslint-plugin-tsdoc": "^0.4.0",
93
93
  "eslint-plugin-unicorn": "^56.0.1",
94
94
  "eslint-plugin-unused-imports": "^4.1.4",
95
95
  "eslint-plugin-yml": "^1.15.0",
96
96
  "jsonc-eslint-parser": "^2.4.0",
97
97
  "toml-eslint-parser": "^0.10.0",
98
- "typescript-eslint": "^8.15.0",
98
+ "typescript-eslint": "^8.21.0",
99
99
  "yaml-eslint-parser": "^1.2.3"
100
100
  },
101
101
  "devDependencies": {
102
102
  "@biomejs/biome": "1.9.4",
103
- "@changesets/cli": "^2.27.9",
103
+ "@changesets/cli": "^2.27.11",
104
104
  "@jsse/prettier-config": "^0.1.0",
105
105
  "@jsse/tsconfig": "^0.2.3",
106
- "@stylistic/eslint-plugin-jsx": "^2.11.0",
106
+ "@stylistic/eslint-plugin-jsx": "^2.13.0",
107
107
  "@types/eslint": "^9.6.1",
108
108
  "@types/eslint__js": "~8.42.3",
109
109
  "@types/fs-extra": "^11.0.4",
110
- "@types/node": "^22.9.1",
110
+ "@types/node": "^22.10.7",
111
111
  "cac": "^6.7.14",
112
- "eslint": "^9.15.0",
113
- "eslint-flat-config-utils": "^0.4.0",
114
- "eslint-plugin-tailwindcss": "^3.17.5",
115
- "eslint-typegen": "^0.3.2",
112
+ "eslint": "^9.18.0",
113
+ "eslint-flat-config-utils": "^1.0.0",
114
+ "eslint-plugin-tailwindcss": "^3.18.0",
115
+ "eslint-typegen": "^1.0.0",
116
116
  "execa": "~9.5.1",
117
- "fast-glob": "^3.3.2",
118
- "fs-extra": "^11.2.0",
119
- "globals": "^15.12.0",
120
- "local-pkg": "^0.5.1",
117
+ "fast-glob": "^3.3.3",
118
+ "fs-extra": "^11.3.0",
119
+ "globals": "^15.14.0",
120
+ "local-pkg": "^1.0.0",
121
121
  "neverthrow": "^8.1.1",
122
122
  "picocolors": "^1.1.1",
123
123
  "prettier": "^3.3.3",
124
- "react": "~18.3.1",
124
+ "react": "~19.0.0",
125
125
  "rimraf": "^6.0.1",
126
- "tailwindcss": "^3.4.15",
126
+ "tailwindcss": "^3.4.17",
127
127
  "tsup": "^8.3.5",
128
128
  "tsx": "^4.19.2",
129
- "typescript": "5.6.3",
130
- "vitest": "^2.1.5"
129
+ "typescript": "5.7.3",
130
+ "vitest": "^3.0.3"
131
131
  },
132
132
  "prettier": "@jsse/prettier-config",
133
133
  "scripts": {