@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/CHANGELOG.md +12 -0
- package/dist/cli.cjs +8 -8
- package/dist/cli.js +8 -8
- package/dist/esm/cli.js +3 -3
- package/dist/esm/configs/ts/requires-type-checking.js +1 -0
- package/dist/esm/fixable.js +1 -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 -269
- package/dist/esm/plugins.js +1 -4
- package/dist/index.cjs +55 -32
- package/dist/index.d.cts +1087 -632
- package/dist/index.d.ts +1087 -632
- package/dist/index.js +60 -37
- package/package.json +35 -35
package/dist/index.cjs
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/globals@15.
|
|
33
|
+
// node_modules/.pnpm/globals@15.14.0/node_modules/globals/globals.json
|
|
34
34
|
var require_globals = __commonJS({
|
|
35
|
-
"node_modules/.pnpm/globals@15.
|
|
35
|
+
"node_modules/.pnpm/globals@15.14.0/node_modules/globals/globals.json"(exports2, module2) {
|
|
36
36
|
module2.exports = {
|
|
37
37
|
amd: {
|
|
38
38
|
define: false,
|
|
@@ -193,6 +193,7 @@ var require_globals = __commonJS({
|
|
|
193
193
|
CSSKeywordValue: false,
|
|
194
194
|
CSSLayerBlockRule: false,
|
|
195
195
|
CSSLayerStatementRule: false,
|
|
196
|
+
CSSMarginRule: false,
|
|
196
197
|
CSSMathClamp: false,
|
|
197
198
|
CSSMathInvert: false,
|
|
198
199
|
CSSMathMax: false,
|
|
@@ -1158,12 +1159,15 @@ var require_globals = __commonJS({
|
|
|
1158
1159
|
XRDepthInformation: false,
|
|
1159
1160
|
XRDOMOverlayState: false,
|
|
1160
1161
|
XRFrame: false,
|
|
1162
|
+
XRHand: false,
|
|
1161
1163
|
XRHitTestResult: false,
|
|
1162
1164
|
XRHitTestSource: false,
|
|
1163
1165
|
XRInputSource: false,
|
|
1164
1166
|
XRInputSourceArray: false,
|
|
1165
1167
|
XRInputSourceEvent: false,
|
|
1166
1168
|
XRInputSourcesChangeEvent: false,
|
|
1169
|
+
XRJointPose: false,
|
|
1170
|
+
XRJointSpace: false,
|
|
1167
1171
|
XRLayer: false,
|
|
1168
1172
|
XRLightEstimate: false,
|
|
1169
1173
|
XRLightProbe: false,
|
|
@@ -2687,6 +2691,24 @@ var require_globals = __commonJS({
|
|
|
2687
2691
|
uniq: false,
|
|
2688
2692
|
which: false
|
|
2689
2693
|
},
|
|
2694
|
+
vitest: {
|
|
2695
|
+
afterAll: false,
|
|
2696
|
+
afterEach: false,
|
|
2697
|
+
assert: false,
|
|
2698
|
+
assertType: false,
|
|
2699
|
+
beforeAll: false,
|
|
2700
|
+
beforeEach: false,
|
|
2701
|
+
describe: false,
|
|
2702
|
+
expect: false,
|
|
2703
|
+
expectTypeOf: false,
|
|
2704
|
+
it: false,
|
|
2705
|
+
onTestFailed: false,
|
|
2706
|
+
onTestFinished: false,
|
|
2707
|
+
suite: false,
|
|
2708
|
+
test: false,
|
|
2709
|
+
vi: false,
|
|
2710
|
+
vitest: false
|
|
2711
|
+
},
|
|
2690
2712
|
webextensions: {
|
|
2691
2713
|
browser: false,
|
|
2692
2714
|
chrome: false,
|
|
@@ -2803,6 +2825,10 @@ var require_globals = __commonJS({
|
|
|
2803
2825
|
GPUUncapturedErrorEvent: false,
|
|
2804
2826
|
GPUValidationError: false,
|
|
2805
2827
|
Headers: false,
|
|
2828
|
+
HID: false,
|
|
2829
|
+
HIDConnectionEvent: false,
|
|
2830
|
+
HIDDevice: false,
|
|
2831
|
+
HIDInputReportEvent: false,
|
|
2806
2832
|
IDBCursor: false,
|
|
2807
2833
|
IDBCursorWithValue: false,
|
|
2808
2834
|
IDBDatabase: false,
|
|
@@ -3008,9 +3034,9 @@ var require_globals = __commonJS({
|
|
|
3008
3034
|
}
|
|
3009
3035
|
});
|
|
3010
3036
|
|
|
3011
|
-
// node_modules/.pnpm/globals@15.
|
|
3037
|
+
// node_modules/.pnpm/globals@15.14.0/node_modules/globals/index.js
|
|
3012
3038
|
var require_globals2 = __commonJS({
|
|
3013
|
-
"node_modules/.pnpm/globals@15.
|
|
3039
|
+
"node_modules/.pnpm/globals@15.14.0/node_modules/globals/index.js"(exports2, module2) {
|
|
3014
3040
|
"use strict";
|
|
3015
3041
|
module2.exports = require_globals();
|
|
3016
3042
|
}
|
|
@@ -3092,7 +3118,7 @@ var SLOW_RULES = [
|
|
|
3092
3118
|
var import_node_fs3 = __toESM(require("fs"), 1);
|
|
3093
3119
|
var import_node_process6 = __toESM(require("process"), 1);
|
|
3094
3120
|
|
|
3095
|
-
// node_modules/.pnpm/local-pkg@0.
|
|
3121
|
+
// node_modules/.pnpm/local-pkg@1.0.0/node_modules/local-pkg/dist/index.mjs
|
|
3096
3122
|
var import_node_fs2 = __toESM(require("fs"), 1);
|
|
3097
3123
|
var import_promises = __toESM(require("fs/promises"), 1);
|
|
3098
3124
|
var import_node_module2 = require("module");
|
|
@@ -8627,7 +8653,7 @@ Parser.acorn = {
|
|
|
8627
8653
|
nonASCIIwhitespace
|
|
8628
8654
|
};
|
|
8629
8655
|
|
|
8630
|
-
// node_modules/.pnpm/mlly@1.7.
|
|
8656
|
+
// node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
8631
8657
|
var import_node_module = require("module");
|
|
8632
8658
|
var import_node_fs = __toESM(require("fs"), 1);
|
|
8633
8659
|
|
|
@@ -8648,17 +8674,17 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
8648
8674
|
if (hasTrailingSlash(input, true)) {
|
|
8649
8675
|
return input || "/";
|
|
8650
8676
|
}
|
|
8651
|
-
let
|
|
8677
|
+
let path3 = input;
|
|
8652
8678
|
let fragment = "";
|
|
8653
8679
|
const fragmentIndex = input.indexOf("#");
|
|
8654
8680
|
if (fragmentIndex >= 0) {
|
|
8655
|
-
|
|
8681
|
+
path3 = input.slice(0, fragmentIndex);
|
|
8656
8682
|
fragment = input.slice(fragmentIndex);
|
|
8657
|
-
if (!
|
|
8683
|
+
if (!path3) {
|
|
8658
8684
|
return fragment;
|
|
8659
8685
|
}
|
|
8660
8686
|
}
|
|
8661
|
-
const [s0, ...s] =
|
|
8687
|
+
const [s0, ...s] = path3.split("?");
|
|
8662
8688
|
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
8663
8689
|
}
|
|
8664
8690
|
function isNonEmptyURL(url) {
|
|
@@ -8678,13 +8704,13 @@ function joinURL(base, ...input) {
|
|
|
8678
8704
|
}
|
|
8679
8705
|
var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
8680
8706
|
|
|
8681
|
-
// node_modules/.pnpm/pathe@
|
|
8707
|
+
// node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.mjs
|
|
8682
8708
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
8683
8709
|
var isAbsolute = function(p) {
|
|
8684
8710
|
return _IS_ABSOLUTE_RE.test(p);
|
|
8685
8711
|
};
|
|
8686
8712
|
|
|
8687
|
-
// node_modules/.pnpm/mlly@1.7.
|
|
8713
|
+
// node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
8688
8714
|
var import_node_url = require("url");
|
|
8689
8715
|
var import_node_assert = __toESM(require("assert"), 1);
|
|
8690
8716
|
var import_node_process = __toESM(require("process"), 1);
|
|
@@ -8692,8 +8718,8 @@ var import_node_path = __toESM(require("path"), 1);
|
|
|
8692
8718
|
var import_node_v8 = __toESM(require("v8"), 1);
|
|
8693
8719
|
var import_node_util = require("util");
|
|
8694
8720
|
var BUILTIN_MODULES = new Set(import_node_module.builtinModules);
|
|
8695
|
-
function normalizeSlash(
|
|
8696
|
-
return
|
|
8721
|
+
function normalizeSlash(path3) {
|
|
8722
|
+
return path3.replace(/\\/g, "/");
|
|
8697
8723
|
}
|
|
8698
8724
|
var own$1 = {}.hasOwnProperty;
|
|
8699
8725
|
var classRegExp = /^([A-Z][a-z\d]*)+$/;
|
|
@@ -8806,8 +8832,8 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
|
8806
8832
|
* @param {string} [base]
|
|
8807
8833
|
* @param {string} [message]
|
|
8808
8834
|
*/
|
|
8809
|
-
(
|
|
8810
|
-
return `Invalid package config ${
|
|
8835
|
+
(path3, base, message) => {
|
|
8836
|
+
return `Invalid package config ${path3}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
|
|
8811
8837
|
},
|
|
8812
8838
|
Error
|
|
8813
8839
|
);
|
|
@@ -8839,8 +8865,8 @@ codes.ERR_MODULE_NOT_FOUND = createError(
|
|
|
8839
8865
|
* @param {string} base
|
|
8840
8866
|
* @param {boolean} [exactUrl]
|
|
8841
8867
|
*/
|
|
8842
|
-
(
|
|
8843
|
-
return `Cannot find ${exactUrl ? "module" : "package"} '${
|
|
8868
|
+
(path3, base, exactUrl = false) => {
|
|
8869
|
+
return `Cannot find ${exactUrl ? "module" : "package"} '${path3}' imported from ${base}`;
|
|
8844
8870
|
},
|
|
8845
8871
|
Error
|
|
8846
8872
|
);
|
|
@@ -8891,8 +8917,8 @@ codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
|
8891
8917
|
* @param {string} extension
|
|
8892
8918
|
* @param {string} path
|
|
8893
8919
|
*/
|
|
8894
|
-
(extension,
|
|
8895
|
-
return `Unknown file extension "${extension}" for ${
|
|
8920
|
+
(extension, path3) => {
|
|
8921
|
+
return `Unknown file extension "${extension}" for ${path3}`;
|
|
8896
8922
|
},
|
|
8897
8923
|
TypeError
|
|
8898
8924
|
);
|
|
@@ -9264,9 +9290,9 @@ Default "index" lookups for the main are deprecated for ES modules.`,
|
|
|
9264
9290
|
);
|
|
9265
9291
|
}
|
|
9266
9292
|
}
|
|
9267
|
-
function tryStatSync(
|
|
9293
|
+
function tryStatSync(path3) {
|
|
9268
9294
|
try {
|
|
9269
|
-
return (0, import_node_fs.statSync)(
|
|
9295
|
+
return (0, import_node_fs.statSync)(path3);
|
|
9270
9296
|
} catch {
|
|
9271
9297
|
}
|
|
9272
9298
|
}
|
|
@@ -9357,7 +9383,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
9357
9383
|
error.url = String(resolved);
|
|
9358
9384
|
throw error;
|
|
9359
9385
|
}
|
|
9360
|
-
|
|
9386
|
+
{
|
|
9361
9387
|
const real = (0, import_node_fs.realpathSync)(filePath);
|
|
9362
9388
|
const { search, hash } = resolved;
|
|
9363
9389
|
resolved = (0, import_node_url.pathToFileURL)(real + (filePath.endsWith(import_node_path.default.sep) ? "/" : ""));
|
|
@@ -9904,7 +9930,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
9904
9930
|
if (resolved.protocol !== "file:") {
|
|
9905
9931
|
return resolved;
|
|
9906
9932
|
}
|
|
9907
|
-
return finalizeResolution(resolved, base
|
|
9933
|
+
return finalizeResolution(resolved, base);
|
|
9908
9934
|
}
|
|
9909
9935
|
function fileURLToPath(id) {
|
|
9910
9936
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
@@ -10031,10 +10057,9 @@ function resolvePathSync(id, options) {
|
|
|
10031
10057
|
return fileURLToPath(resolveSync(id, options));
|
|
10032
10058
|
}
|
|
10033
10059
|
|
|
10034
|
-
// node_modules/.pnpm/local-pkg@0.
|
|
10060
|
+
// node_modules/.pnpm/local-pkg@1.0.0/node_modules/local-pkg/dist/index.mjs
|
|
10035
10061
|
var import_meta = {};
|
|
10036
|
-
|
|
10037
|
-
function _resolve2(path4, options = {}) {
|
|
10062
|
+
function _resolve2(path3, options = {}) {
|
|
10038
10063
|
if (options.platform === "auto" || !options.platform)
|
|
10039
10064
|
options.platform = import_node_process2.default.platform === "win32" ? "win32" : "posix";
|
|
10040
10065
|
if (import_node_process2.default.versions.pnp) {
|
|
@@ -10043,11 +10068,11 @@ function _resolve2(path4, options = {}) {
|
|
|
10043
10068
|
paths.push(import_node_process2.default.cwd());
|
|
10044
10069
|
const targetRequire = (0, import_node_module2.createRequire)(import_meta.url);
|
|
10045
10070
|
try {
|
|
10046
|
-
return targetRequire.resolve(
|
|
10071
|
+
return targetRequire.resolve(path3, { paths });
|
|
10047
10072
|
} catch {
|
|
10048
10073
|
}
|
|
10049
10074
|
}
|
|
10050
|
-
const modulePath = resolvePathSync(
|
|
10075
|
+
const modulePath = resolvePathSync(path3, {
|
|
10051
10076
|
url: options.paths
|
|
10052
10077
|
});
|
|
10053
10078
|
if (options.platform === "win32")
|
|
@@ -10771,7 +10796,6 @@ async function importPluginReactHooks() {
|
|
|
10771
10796
|
}
|
|
10772
10797
|
async function importPluginReactRefresh() {
|
|
10773
10798
|
const pluginReactRefresh = await interopDefault2(
|
|
10774
|
-
// @ts-expect-error - bad types
|
|
10775
10799
|
import("eslint-plugin-react-refresh")
|
|
10776
10800
|
);
|
|
10777
10801
|
return {
|
|
@@ -10784,7 +10808,6 @@ async function importReactPlugins() {
|
|
|
10784
10808
|
interopDefault2(import("eslint-plugin-react")),
|
|
10785
10809
|
// @ts-expect-error - bad types
|
|
10786
10810
|
interopDefault2(import("eslint-plugin-react-hooks")),
|
|
10787
|
-
// @ts-expect-error - bad types
|
|
10788
10811
|
interopDefault2(import("eslint-plugin-react-refresh"))
|
|
10789
10812
|
]
|
|
10790
10813
|
);
|
|
@@ -13483,7 +13506,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
13483
13506
|
}
|
|
13484
13507
|
|
|
13485
13508
|
// src/generated/version.ts
|
|
13486
|
-
var VERSION = "0.2.
|
|
13509
|
+
var VERSION = "0.2.31";
|
|
13487
13510
|
|
|
13488
13511
|
// src/presets.ts
|
|
13489
13512
|
var jsseReact = (options, ...configs) => {
|