@jsse/eslint-config 0.2.30 → 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.13.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.13.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,
@@ -2689,6 +2689,24 @@ var require_globals = __commonJS({
2689
2689
  uniq: false,
2690
2690
  which: false
2691
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
+ },
2692
2710
  webextensions: {
2693
2711
  browser: false,
2694
2712
  chrome: false,
@@ -3014,9 +3032,9 @@ var require_globals = __commonJS({
3014
3032
  }
3015
3033
  });
3016
3034
 
3017
- // node_modules/.pnpm/globals@15.13.0/node_modules/globals/index.js
3035
+ // node_modules/.pnpm/globals@15.14.0/node_modules/globals/index.js
3018
3036
  var require_globals2 = __commonJS({
3019
- "node_modules/.pnpm/globals@15.13.0/node_modules/globals/index.js"(exports, module) {
3037
+ "node_modules/.pnpm/globals@15.14.0/node_modules/globals/index.js"(exports, module) {
3020
3038
  "use strict";
3021
3039
  module.exports = require_globals();
3022
3040
  }
@@ -3050,9 +3068,9 @@ var SLOW_RULES = [
3050
3068
  import fs2 from "node:fs";
3051
3069
  import process6 from "node:process";
3052
3070
 
3053
- // 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
3054
3072
  import { createRequire as createRequire2 } from "node:module";
3055
- 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";
3056
3074
  import process2 from "node:process";
3057
3075
 
3058
3076
  // node_modules/.pnpm/acorn@8.14.0/node_modules/acorn/dist/acorn.mjs
@@ -8582,7 +8600,7 @@ Parser.acorn = {
8582
8600
  nonASCIIwhitespace
8583
8601
  };
8584
8602
 
8585
- // 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
8586
8604
  import { builtinModules, createRequire } from "node:module";
8587
8605
  import fs, { realpathSync, statSync, promises } from "node:fs";
8588
8606
 
@@ -8603,17 +8621,17 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
8603
8621
  if (hasTrailingSlash(input, true)) {
8604
8622
  return input || "/";
8605
8623
  }
8606
- let path4 = input;
8624
+ let path3 = input;
8607
8625
  let fragment = "";
8608
8626
  const fragmentIndex = input.indexOf("#");
8609
8627
  if (fragmentIndex >= 0) {
8610
- path4 = input.slice(0, fragmentIndex);
8628
+ path3 = input.slice(0, fragmentIndex);
8611
8629
  fragment = input.slice(fragmentIndex);
8612
- if (!path4) {
8630
+ if (!path3) {
8613
8631
  return fragment;
8614
8632
  }
8615
8633
  }
8616
- const [s0, ...s] = path4.split("?");
8634
+ const [s0, ...s] = path3.split("?");
8617
8635
  return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
8618
8636
  }
8619
8637
  function isNonEmptyURL(url) {
@@ -8633,22 +8651,22 @@ function joinURL(base, ...input) {
8633
8651
  }
8634
8652
  var protocolRelative = Symbol.for("ufo:protocolRelative");
8635
8653
 
8636
- // 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
8637
8655
  var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
8638
8656
  var isAbsolute = function(p) {
8639
8657
  return _IS_ABSOLUTE_RE.test(p);
8640
8658
  };
8641
8659
 
8642
- // 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
8643
8661
  import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
8644
8662
  import assert from "node:assert";
8645
8663
  import process$1 from "node:process";
8646
- import path2, { dirname as dirname2 } from "node:path";
8664
+ import path, { dirname as dirname2 } from "node:path";
8647
8665
  import v8 from "node:v8";
8648
8666
  import { format as format2, inspect } from "node:util";
8649
8667
  var BUILTIN_MODULES = new Set(builtinModules);
8650
- function normalizeSlash(path4) {
8651
- return path4.replace(/\\/g, "/");
8668
+ function normalizeSlash(path3) {
8669
+ return path3.replace(/\\/g, "/");
8652
8670
  }
8653
8671
  var own$1 = {}.hasOwnProperty;
8654
8672
  var classRegExp = /^([A-Z][a-z\d]*)+$/;
@@ -8761,8 +8779,8 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
8761
8779
  * @param {string} [base]
8762
8780
  * @param {string} [message]
8763
8781
  */
8764
- (path4, base, message) => {
8765
- 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}` : ""}`;
8766
8784
  },
8767
8785
  Error
8768
8786
  );
@@ -8794,8 +8812,8 @@ codes.ERR_MODULE_NOT_FOUND = createError(
8794
8812
  * @param {string} base
8795
8813
  * @param {boolean} [exactUrl]
8796
8814
  */
8797
- (path4, base, exactUrl = false) => {
8798
- 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}`;
8799
8817
  },
8800
8818
  Error
8801
8819
  );
@@ -8846,8 +8864,8 @@ codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
8846
8864
  * @param {string} extension
8847
8865
  * @param {string} path
8848
8866
  */
8849
- (extension, path4) => {
8850
- return `Unknown file extension "${extension}" for ${path4}`;
8867
+ (extension, path3) => {
8868
+ return `Unknown file extension "${extension}" for ${path3}`;
8851
8869
  },
8852
8870
  TypeError
8853
8871
  );
@@ -8992,7 +9010,7 @@ function read(jsonPath, { base, specifier }) {
8992
9010
  }
8993
9011
  let string;
8994
9012
  try {
8995
- string = fs.readFileSync(path2.toNamespacedPath(jsonPath), "utf8");
9013
+ string = fs.readFileSync(path.toNamespacedPath(jsonPath), "utf8");
8996
9014
  } catch (error) {
8997
9015
  const exception = (
8998
9016
  /** @type {ErrnoException} */
@@ -9208,7 +9226,7 @@ Default "index" lookups for the main are deprecated for ES modules.`,
9208
9226
  "DeprecationWarning",
9209
9227
  "DEP0151"
9210
9228
  );
9211
- } else if (path2.resolve(packagePath, main) !== urlPath) {
9229
+ } else if (path.resolve(packagePath, main) !== urlPath) {
9212
9230
  process$1.emitWarning(
9213
9231
  `Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
9214
9232
  packagePath.length
@@ -9219,9 +9237,9 @@ Default "index" lookups for the main are deprecated for ES modules.`,
9219
9237
  );
9220
9238
  }
9221
9239
  }
9222
- function tryStatSync(path4) {
9240
+ function tryStatSync(path3) {
9223
9241
  try {
9224
- return statSync(path4);
9242
+ return statSync(path3);
9225
9243
  } catch {
9226
9244
  }
9227
9245
  }
@@ -9312,10 +9330,10 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
9312
9330
  error.url = String(resolved);
9313
9331
  throw error;
9314
9332
  }
9315
- if (!preserveSymlinks) {
9333
+ {
9316
9334
  const real = realpathSync(filePath);
9317
9335
  const { search, hash } = resolved;
9318
- resolved = pathToFileURL$1(real + (filePath.endsWith(path2.sep) ? "/" : ""));
9336
+ resolved = pathToFileURL$1(real + (filePath.endsWith(path.sep) ? "/" : ""));
9319
9337
  resolved.search = search;
9320
9338
  resolved.hash = hash;
9321
9339
  }
@@ -9859,7 +9877,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
9859
9877
  if (resolved.protocol !== "file:") {
9860
9878
  return resolved;
9861
9879
  }
9862
- return finalizeResolution(resolved, base, preserveSymlinks);
9880
+ return finalizeResolution(resolved, base);
9863
9881
  }
9864
9882
  function fileURLToPath(id) {
9865
9883
  if (typeof id === "string" && !id.startsWith("file://")) {
@@ -9986,9 +10004,8 @@ function resolvePathSync(id, options) {
9986
10004
  return fileURLToPath(resolveSync(id, options));
9987
10005
  }
9988
10006
 
9989
- // node_modules/.pnpm/local-pkg@0.5.1/node_modules/local-pkg/dist/index.mjs
9990
- var findUpStop = Symbol("findUpStop");
9991
- 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 = {}) {
9992
10009
  if (options.platform === "auto" || !options.platform)
9993
10010
  options.platform = process2.platform === "win32" ? "win32" : "posix";
9994
10011
  if (process2.versions.pnp) {
@@ -9997,11 +10014,11 @@ function _resolve2(path4, options = {}) {
9997
10014
  paths.push(process2.cwd());
9998
10015
  const targetRequire = createRequire2(import.meta.url);
9999
10016
  try {
10000
- return targetRequire.resolve(path4, { paths });
10017
+ return targetRequire.resolve(path3, { paths });
10001
10018
  } catch {
10002
10019
  }
10003
10020
  }
10004
- const modulePath = resolvePathSync(path4, {
10021
+ const modulePath = resolvePathSync(path3, {
10005
10022
  url: options.paths
10006
10023
  });
10007
10024
  if (options.platform === "win32")
@@ -13435,7 +13452,7 @@ async function defineConfig(options = {}, ...userConfigs) {
13435
13452
  }
13436
13453
 
13437
13454
  // src/generated/version.ts
13438
- var VERSION = "0.2.30";
13455
+ var VERSION = "0.2.31";
13439
13456
 
13440
13457
  // src/presets.ts
13441
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.30",
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,27 +67,27 @@
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.17.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.12.1",
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",
87
+ "eslint-plugin-perfectionist": "^4.7.0",
88
+ "eslint-plugin-react": "~7.37.4",
89
89
  "eslint-plugin-react-hooks": "~5.1.0",
90
- "eslint-plugin-react-refresh": "~0.4.14",
90
+ "eslint-plugin-react-refresh": "~0.4.18",
91
91
  "eslint-plugin-toml": "^0.12.0",
92
92
  "eslint-plugin-tsdoc": "^0.4.0",
93
93
  "eslint-plugin-unicorn": "^56.0.1",
@@ -95,39 +95,39 @@
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.3",
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
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.7.2",
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": {