@jsse/eslint-config 0.2.30 → 0.2.32
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/CHANGELOG.md +12 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/esm/configs/ts/requires-type-checking.js +1 -0
- package/dist/esm/fixable.js +0 -1
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/plugins.d.ts +107 -271
- package/dist/index.cjs +50 -33
- package/dist/index.d.cts +1033 -703
- package/dist/index.d.ts +1033 -703
- package/dist/index.js +52 -35
- package/package.json +35 -35
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
8624
|
+
let path3 = input;
|
|
8607
8625
|
let fragment = "";
|
|
8608
8626
|
const fragmentIndex = input.indexOf("#");
|
|
8609
8627
|
if (fragmentIndex >= 0) {
|
|
8610
|
-
|
|
8628
|
+
path3 = input.slice(0, fragmentIndex);
|
|
8611
8629
|
fragment = input.slice(fragmentIndex);
|
|
8612
|
-
if (!
|
|
8630
|
+
if (!path3) {
|
|
8613
8631
|
return fragment;
|
|
8614
8632
|
}
|
|
8615
8633
|
}
|
|
8616
|
-
const [s0, ...s] =
|
|
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@
|
|
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.
|
|
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
|
|
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(
|
|
8651
|
-
return
|
|
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
|
-
(
|
|
8765
|
-
return `Invalid package config ${
|
|
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
|
-
(
|
|
8798
|
-
return `Cannot find ${exactUrl ? "module" : "package"} '${
|
|
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,
|
|
8850
|
-
return `Unknown file extension "${extension}" for ${
|
|
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(
|
|
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 (
|
|
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(
|
|
9240
|
+
function tryStatSync(path3) {
|
|
9223
9241
|
try {
|
|
9224
|
-
return statSync(
|
|
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
|
-
|
|
9333
|
+
{
|
|
9316
9334
|
const real = realpathSync(filePath);
|
|
9317
9335
|
const { search, hash } = resolved;
|
|
9318
|
-
resolved = pathToFileURL$1(real + (filePath.endsWith(
|
|
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
|
|
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.
|
|
9990
|
-
|
|
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(
|
|
10017
|
+
return targetRequire.resolve(path3, { paths });
|
|
10001
10018
|
} catch {
|
|
10002
10019
|
}
|
|
10003
10020
|
}
|
|
10004
|
-
const modulePath = resolvePathSync(
|
|
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.
|
|
13455
|
+
var VERSION = "0.2.32";
|
|
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.
|
|
4
|
+
"version": "0.2.32",
|
|
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.
|
|
71
|
-
"@eslint/js": "~9.
|
|
72
|
-
"@eslint/markdown": "^6.2.
|
|
73
|
-
"@stylistic/eslint-plugin": "
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
75
|
-
"@typescript-eslint/parser": "^8.
|
|
76
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
77
|
-
"eslint-config-flat-gitignore": "^0.
|
|
70
|
+
"@eslint/compat": "^1.2.6",
|
|
71
|
+
"@eslint/js": "~9.19.0",
|
|
72
|
+
"@eslint/markdown": "^6.2.2",
|
|
73
|
+
"@stylistic/eslint-plugin": "3.0.1",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^8.23.0",
|
|
75
|
+
"@typescript-eslint/parser": "^8.23.0",
|
|
76
|
+
"@vitest/eslint-plugin": "^1.1.25",
|
|
77
|
+
"eslint-config-flat-gitignore": "^2.0.0",
|
|
78
78
|
"eslint-define-config": "^2.1.0",
|
|
79
|
-
"eslint-merge-processors": "^
|
|
80
|
-
"eslint-plugin-antfu": "^
|
|
81
|
-
"eslint-plugin-command": "^0.
|
|
82
|
-
"eslint-plugin-import-x": "^4.
|
|
83
|
-
"eslint-plugin-jsdoc": "^50.
|
|
84
|
-
"eslint-plugin-jsonc": "^2.
|
|
85
|
-
"eslint-plugin-n": "^17.
|
|
79
|
+
"eslint-merge-processors": "^1.0.0",
|
|
80
|
+
"eslint-plugin-antfu": "^3.0.0",
|
|
81
|
+
"eslint-plugin-command": "^3.0.0",
|
|
82
|
+
"eslint-plugin-import-x": "^4.6.1",
|
|
83
|
+
"eslint-plugin-jsdoc": "^50.6.3",
|
|
84
|
+
"eslint-plugin-jsonc": "^2.19.1",
|
|
85
|
+
"eslint-plugin-n": "^17.15.1",
|
|
86
86
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
87
|
-
"eslint-plugin-perfectionist": "^4.0
|
|
88
|
-
"eslint-plugin-react": "~7.37.
|
|
87
|
+
"eslint-plugin-perfectionist": "^4.8.0",
|
|
88
|
+
"eslint-plugin-react": "~7.37.4",
|
|
89
89
|
"eslint-plugin-react-hooks": "~5.1.0",
|
|
90
|
-
"eslint-plugin-react-refresh": "~0.4.
|
|
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.
|
|
98
|
+
"typescript-eslint": "^8.23.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.
|
|
103
|
+
"@changesets/cli": "^2.27.12",
|
|
104
104
|
"@jsse/prettier-config": "^0.1.0",
|
|
105
105
|
"@jsse/tsconfig": "^0.2.3",
|
|
106
|
-
"@stylistic/eslint-plugin-jsx": "^
|
|
106
|
+
"@stylistic/eslint-plugin-jsx": "^3.0.1",
|
|
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.
|
|
110
|
+
"@types/node": "^22.13.1",
|
|
111
111
|
"cac": "^6.7.14",
|
|
112
|
-
"eslint": "^9.
|
|
113
|
-
"eslint-flat-config-utils": "^0.
|
|
114
|
-
"eslint-plugin-tailwindcss": "^3.
|
|
115
|
-
"eslint-typegen": "^0.
|
|
112
|
+
"eslint": "^9.19.0",
|
|
113
|
+
"eslint-flat-config-utils": "^2.0.1",
|
|
114
|
+
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
115
|
+
"eslint-typegen": "^1.0.0",
|
|
116
116
|
"execa": "~9.5.1",
|
|
117
|
-
"fast-glob": "^3.3.
|
|
118
|
-
"fs-extra": "^11.
|
|
119
|
-
"globals": "^15.
|
|
120
|
-
"local-pkg": "^0.
|
|
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.
|
|
127
|
-
"tsup": "^8.3.
|
|
126
|
+
"tailwindcss": "^3.4.17",
|
|
127
|
+
"tsup": "^8.3.6",
|
|
128
128
|
"tsx": "^4.19.2",
|
|
129
|
-
"typescript": "5.7.
|
|
130
|
-
"vitest": "^
|
|
129
|
+
"typescript": "5.7.3",
|
|
130
|
+
"vitest": "^3.0.5"
|
|
131
131
|
},
|
|
132
132
|
"prettier": "@jsse/prettier-config",
|
|
133
133
|
"scripts": {
|