@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/CHANGELOG.md +6 -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 +106 -268
- package/dist/index.cjs +47 -30
- package/dist/index.d.cts +974 -700
- package/dist/index.d.ts +974 -700
- package/dist/index.js +52 -35
- package/package.json +31 -31
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,
|
|
@@ -2691,6 +2691,24 @@ var require_globals = __commonJS({
|
|
|
2691
2691
|
uniq: false,
|
|
2692
2692
|
which: false
|
|
2693
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
|
+
},
|
|
2694
2712
|
webextensions: {
|
|
2695
2713
|
browser: false,
|
|
2696
2714
|
chrome: false,
|
|
@@ -3016,9 +3034,9 @@ var require_globals = __commonJS({
|
|
|
3016
3034
|
}
|
|
3017
3035
|
});
|
|
3018
3036
|
|
|
3019
|
-
// node_modules/.pnpm/globals@15.
|
|
3037
|
+
// node_modules/.pnpm/globals@15.14.0/node_modules/globals/index.js
|
|
3020
3038
|
var require_globals2 = __commonJS({
|
|
3021
|
-
"node_modules/.pnpm/globals@15.
|
|
3039
|
+
"node_modules/.pnpm/globals@15.14.0/node_modules/globals/index.js"(exports2, module2) {
|
|
3022
3040
|
"use strict";
|
|
3023
3041
|
module2.exports = require_globals();
|
|
3024
3042
|
}
|
|
@@ -3100,7 +3118,7 @@ var SLOW_RULES = [
|
|
|
3100
3118
|
var import_node_fs3 = __toESM(require("fs"), 1);
|
|
3101
3119
|
var import_node_process6 = __toESM(require("process"), 1);
|
|
3102
3120
|
|
|
3103
|
-
// node_modules/.pnpm/local-pkg@0.
|
|
3121
|
+
// node_modules/.pnpm/local-pkg@1.0.0/node_modules/local-pkg/dist/index.mjs
|
|
3104
3122
|
var import_node_fs2 = __toESM(require("fs"), 1);
|
|
3105
3123
|
var import_promises = __toESM(require("fs/promises"), 1);
|
|
3106
3124
|
var import_node_module2 = require("module");
|
|
@@ -8635,7 +8653,7 @@ Parser.acorn = {
|
|
|
8635
8653
|
nonASCIIwhitespace
|
|
8636
8654
|
};
|
|
8637
8655
|
|
|
8638
|
-
// node_modules/.pnpm/mlly@1.7.
|
|
8656
|
+
// node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
8639
8657
|
var import_node_module = require("module");
|
|
8640
8658
|
var import_node_fs = __toESM(require("fs"), 1);
|
|
8641
8659
|
|
|
@@ -8656,17 +8674,17 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
8656
8674
|
if (hasTrailingSlash(input, true)) {
|
|
8657
8675
|
return input || "/";
|
|
8658
8676
|
}
|
|
8659
|
-
let
|
|
8677
|
+
let path3 = input;
|
|
8660
8678
|
let fragment = "";
|
|
8661
8679
|
const fragmentIndex = input.indexOf("#");
|
|
8662
8680
|
if (fragmentIndex >= 0) {
|
|
8663
|
-
|
|
8681
|
+
path3 = input.slice(0, fragmentIndex);
|
|
8664
8682
|
fragment = input.slice(fragmentIndex);
|
|
8665
|
-
if (!
|
|
8683
|
+
if (!path3) {
|
|
8666
8684
|
return fragment;
|
|
8667
8685
|
}
|
|
8668
8686
|
}
|
|
8669
|
-
const [s0, ...s] =
|
|
8687
|
+
const [s0, ...s] = path3.split("?");
|
|
8670
8688
|
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
8671
8689
|
}
|
|
8672
8690
|
function isNonEmptyURL(url) {
|
|
@@ -8686,13 +8704,13 @@ function joinURL(base, ...input) {
|
|
|
8686
8704
|
}
|
|
8687
8705
|
var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
8688
8706
|
|
|
8689
|
-
// node_modules/.pnpm/pathe@
|
|
8707
|
+
// node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.mjs
|
|
8690
8708
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
8691
8709
|
var isAbsolute = function(p) {
|
|
8692
8710
|
return _IS_ABSOLUTE_RE.test(p);
|
|
8693
8711
|
};
|
|
8694
8712
|
|
|
8695
|
-
// node_modules/.pnpm/mlly@1.7.
|
|
8713
|
+
// node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
8696
8714
|
var import_node_url = require("url");
|
|
8697
8715
|
var import_node_assert = __toESM(require("assert"), 1);
|
|
8698
8716
|
var import_node_process = __toESM(require("process"), 1);
|
|
@@ -8700,8 +8718,8 @@ var import_node_path = __toESM(require("path"), 1);
|
|
|
8700
8718
|
var import_node_v8 = __toESM(require("v8"), 1);
|
|
8701
8719
|
var import_node_util = require("util");
|
|
8702
8720
|
var BUILTIN_MODULES = new Set(import_node_module.builtinModules);
|
|
8703
|
-
function normalizeSlash(
|
|
8704
|
-
return
|
|
8721
|
+
function normalizeSlash(path3) {
|
|
8722
|
+
return path3.replace(/\\/g, "/");
|
|
8705
8723
|
}
|
|
8706
8724
|
var own$1 = {}.hasOwnProperty;
|
|
8707
8725
|
var classRegExp = /^([A-Z][a-z\d]*)+$/;
|
|
@@ -8814,8 +8832,8 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
|
8814
8832
|
* @param {string} [base]
|
|
8815
8833
|
* @param {string} [message]
|
|
8816
8834
|
*/
|
|
8817
|
-
(
|
|
8818
|
-
return `Invalid package config ${
|
|
8835
|
+
(path3, base, message) => {
|
|
8836
|
+
return `Invalid package config ${path3}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
|
|
8819
8837
|
},
|
|
8820
8838
|
Error
|
|
8821
8839
|
);
|
|
@@ -8847,8 +8865,8 @@ codes.ERR_MODULE_NOT_FOUND = createError(
|
|
|
8847
8865
|
* @param {string} base
|
|
8848
8866
|
* @param {boolean} [exactUrl]
|
|
8849
8867
|
*/
|
|
8850
|
-
(
|
|
8851
|
-
return `Cannot find ${exactUrl ? "module" : "package"} '${
|
|
8868
|
+
(path3, base, exactUrl = false) => {
|
|
8869
|
+
return `Cannot find ${exactUrl ? "module" : "package"} '${path3}' imported from ${base}`;
|
|
8852
8870
|
},
|
|
8853
8871
|
Error
|
|
8854
8872
|
);
|
|
@@ -8899,8 +8917,8 @@ codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
|
8899
8917
|
* @param {string} extension
|
|
8900
8918
|
* @param {string} path
|
|
8901
8919
|
*/
|
|
8902
|
-
(extension,
|
|
8903
|
-
return `Unknown file extension "${extension}" for ${
|
|
8920
|
+
(extension, path3) => {
|
|
8921
|
+
return `Unknown file extension "${extension}" for ${path3}`;
|
|
8904
8922
|
},
|
|
8905
8923
|
TypeError
|
|
8906
8924
|
);
|
|
@@ -9272,9 +9290,9 @@ Default "index" lookups for the main are deprecated for ES modules.`,
|
|
|
9272
9290
|
);
|
|
9273
9291
|
}
|
|
9274
9292
|
}
|
|
9275
|
-
function tryStatSync(
|
|
9293
|
+
function tryStatSync(path3) {
|
|
9276
9294
|
try {
|
|
9277
|
-
return (0, import_node_fs.statSync)(
|
|
9295
|
+
return (0, import_node_fs.statSync)(path3);
|
|
9278
9296
|
} catch {
|
|
9279
9297
|
}
|
|
9280
9298
|
}
|
|
@@ -9365,7 +9383,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
9365
9383
|
error.url = String(resolved);
|
|
9366
9384
|
throw error;
|
|
9367
9385
|
}
|
|
9368
|
-
|
|
9386
|
+
{
|
|
9369
9387
|
const real = (0, import_node_fs.realpathSync)(filePath);
|
|
9370
9388
|
const { search, hash } = resolved;
|
|
9371
9389
|
resolved = (0, import_node_url.pathToFileURL)(real + (filePath.endsWith(import_node_path.default.sep) ? "/" : ""));
|
|
@@ -9912,7 +9930,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
9912
9930
|
if (resolved.protocol !== "file:") {
|
|
9913
9931
|
return resolved;
|
|
9914
9932
|
}
|
|
9915
|
-
return finalizeResolution(resolved, base
|
|
9933
|
+
return finalizeResolution(resolved, base);
|
|
9916
9934
|
}
|
|
9917
9935
|
function fileURLToPath(id) {
|
|
9918
9936
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
@@ -10039,10 +10057,9 @@ function resolvePathSync(id, options) {
|
|
|
10039
10057
|
return fileURLToPath(resolveSync(id, options));
|
|
10040
10058
|
}
|
|
10041
10059
|
|
|
10042
|
-
// node_modules/.pnpm/local-pkg@0.
|
|
10060
|
+
// node_modules/.pnpm/local-pkg@1.0.0/node_modules/local-pkg/dist/index.mjs
|
|
10043
10061
|
var import_meta = {};
|
|
10044
|
-
|
|
10045
|
-
function _resolve2(path4, options = {}) {
|
|
10062
|
+
function _resolve2(path3, options = {}) {
|
|
10046
10063
|
if (options.platform === "auto" || !options.platform)
|
|
10047
10064
|
options.platform = import_node_process2.default.platform === "win32" ? "win32" : "posix";
|
|
10048
10065
|
if (import_node_process2.default.versions.pnp) {
|
|
@@ -10051,11 +10068,11 @@ function _resolve2(path4, options = {}) {
|
|
|
10051
10068
|
paths.push(import_node_process2.default.cwd());
|
|
10052
10069
|
const targetRequire = (0, import_node_module2.createRequire)(import_meta.url);
|
|
10053
10070
|
try {
|
|
10054
|
-
return targetRequire.resolve(
|
|
10071
|
+
return targetRequire.resolve(path3, { paths });
|
|
10055
10072
|
} catch {
|
|
10056
10073
|
}
|
|
10057
10074
|
}
|
|
10058
|
-
const modulePath = resolvePathSync(
|
|
10075
|
+
const modulePath = resolvePathSync(path3, {
|
|
10059
10076
|
url: options.paths
|
|
10060
10077
|
});
|
|
10061
10078
|
if (options.platform === "win32")
|
|
@@ -13489,7 +13506,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
13489
13506
|
}
|
|
13490
13507
|
|
|
13491
13508
|
// src/generated/version.ts
|
|
13492
|
-
var VERSION = "0.2.
|
|
13509
|
+
var VERSION = "0.2.31";
|
|
13493
13510
|
|
|
13494
13511
|
// src/presets.ts
|
|
13495
13512
|
var jsseReact = (options, ...configs) => {
|