@jsse/eslint-config 0.4.0 → 0.4.1
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.js +1 -1
- package/dist/esm/config-fns.d.ts +5 -0
- package/dist/esm/config-fns.js +6 -0
- package/dist/esm/configs/pnpm.d.ts +2 -0
- package/dist/esm/configs/pnpm.js +34 -0
- package/dist/esm/configs/tailwind.d.ts +1 -2
- package/dist/esm/configs/tailwind.js +81 -48
- package/dist/esm/define-config.js +11 -2
- package/dist/esm/fixable.d.ts +1 -1
- package/dist/esm/generated/fixable-rules-map.js +8 -1
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/plugins-all.d.ts +1 -1
- package/dist/esm/plugins-all.js +6 -2
- package/dist/esm/plugins.d.ts +1 -6
- package/dist/esm/plugins.js +1 -18
- package/dist/esm/presets.js +0 -32
- package/dist/esm/types.d.ts +13 -0
- package/dist/index.d.ts +405 -159
- package/dist/index.js +99 -637
- package/package.json +23 -24
package/dist/index.js
CHANGED
|
@@ -4,13 +4,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var
|
|
8
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
-
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
-
});
|
|
13
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
14
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
9
|
};
|
|
16
10
|
var __export = (target, all) => {
|
|
@@ -34,96 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
28
|
mod
|
|
35
29
|
));
|
|
36
30
|
|
|
37
|
-
// node_modules/.pnpm/
|
|
38
|
-
var require_rules = __commonJS({
|
|
39
|
-
"node_modules/.pnpm/eslint-plugin-tailwindcss@3.18.0_tailwindcss@3.4.17/node_modules/eslint-plugin-tailwindcss/lib/config/rules.js"(exports, module) {
|
|
40
|
-
"use strict";
|
|
41
|
-
module.exports = {
|
|
42
|
-
"tailwindcss/classnames-order": "warn",
|
|
43
|
-
"tailwindcss/enforces-negative-arbitrary-values": "warn",
|
|
44
|
-
"tailwindcss/enforces-shorthand": "warn",
|
|
45
|
-
"tailwindcss/migration-from-tailwind-2": "warn",
|
|
46
|
-
"tailwindcss/no-arbitrary-value": "off",
|
|
47
|
-
"tailwindcss/no-custom-classname": "warn",
|
|
48
|
-
"tailwindcss/no-contradicting-classname": "error",
|
|
49
|
-
"tailwindcss/no-unnecessary-arbitrary-value": "warn"
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
// node_modules/.pnpm/eslint-plugin-tailwindcss@3.18.0_tailwindcss@3.4.17/node_modules/eslint-plugin-tailwindcss/lib/config/recommended.js
|
|
55
|
-
var require_recommended = __commonJS({
|
|
56
|
-
"node_modules/.pnpm/eslint-plugin-tailwindcss@3.18.0_tailwindcss@3.4.17/node_modules/eslint-plugin-tailwindcss/lib/config/recommended.js"(exports, module) {
|
|
57
|
-
"use strict";
|
|
58
|
-
var rules = require_rules();
|
|
59
|
-
module.exports = {
|
|
60
|
-
plugins: ["tailwindcss"],
|
|
61
|
-
parserOptions: {
|
|
62
|
-
ecmaFeatures: {
|
|
63
|
-
jsx: true
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
rules
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
// node_modules/.pnpm/eslint-plugin-tailwindcss@3.18.0_tailwindcss@3.4.17/node_modules/eslint-plugin-tailwindcss/lib/config/flat-recommended.js
|
|
72
|
-
var require_flat_recommended = __commonJS({
|
|
73
|
-
"node_modules/.pnpm/eslint-plugin-tailwindcss@3.18.0_tailwindcss@3.4.17/node_modules/eslint-plugin-tailwindcss/lib/config/flat-recommended.js"(exports, module) {
|
|
74
|
-
"use strict";
|
|
75
|
-
var rules = require_rules();
|
|
76
|
-
module.exports = [
|
|
77
|
-
{
|
|
78
|
-
name: "tailwindcss:base",
|
|
79
|
-
plugins: {
|
|
80
|
-
get tailwindcss() {
|
|
81
|
-
return require_lib();
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
languageOptions: {
|
|
85
|
-
parserOptions: {
|
|
86
|
-
ecmaFeatures: {
|
|
87
|
-
jsx: true
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: "tailwindcss:rules",
|
|
94
|
-
rules
|
|
95
|
-
}
|
|
96
|
-
];
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
// node_modules/.pnpm/eslint-plugin-tailwindcss@3.18.0_tailwindcss@3.4.17/node_modules/eslint-plugin-tailwindcss/lib/index.js
|
|
101
|
-
var require_lib = __commonJS({
|
|
102
|
-
"node_modules/.pnpm/eslint-plugin-tailwindcss@3.18.0_tailwindcss@3.4.17/node_modules/eslint-plugin-tailwindcss/lib/index.js"(exports, module) {
|
|
103
|
-
"use strict";
|
|
104
|
-
var base = __dirname + "/rules/";
|
|
105
|
-
module.exports = {
|
|
106
|
-
rules: {
|
|
107
|
-
"classnames-order": __require(base + "classnames-order"),
|
|
108
|
-
"enforces-negative-arbitrary-values": __require(base + "enforces-negative-arbitrary-values"),
|
|
109
|
-
"enforces-shorthand": __require(base + "enforces-shorthand"),
|
|
110
|
-
"migration-from-tailwind-2": __require(base + "migration-from-tailwind-2"),
|
|
111
|
-
"no-arbitrary-value": __require(base + "no-arbitrary-value"),
|
|
112
|
-
"no-contradicting-classname": __require(base + "no-contradicting-classname"),
|
|
113
|
-
"no-custom-classname": __require(base + "no-custom-classname"),
|
|
114
|
-
"no-unnecessary-arbitrary-value": __require(base + "no-unnecessary-arbitrary-value")
|
|
115
|
-
},
|
|
116
|
-
configs: {
|
|
117
|
-
recommended: require_recommended(),
|
|
118
|
-
"flat/recommended": require_flat_recommended()
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
// node_modules/.pnpm/globals@16.1.0/node_modules/globals/globals.json
|
|
31
|
+
// node_modules/.pnpm/globals@16.2.0/node_modules/globals/globals.json
|
|
125
32
|
var require_globals = __commonJS({
|
|
126
|
-
"node_modules/.pnpm/globals@16.
|
|
33
|
+
"node_modules/.pnpm/globals@16.2.0/node_modules/globals/globals.json"(exports, module) {
|
|
127
34
|
module.exports = {
|
|
128
35
|
amd: {
|
|
129
36
|
define: false,
|
|
@@ -2153,12 +2060,14 @@ var require_globals = __commonJS({
|
|
|
2153
2060
|
GM_addStyle: false,
|
|
2154
2061
|
GM_addValueChangeListener: false,
|
|
2155
2062
|
GM_deleteValue: false,
|
|
2063
|
+
GM_deleteValues: false,
|
|
2156
2064
|
GM_download: false,
|
|
2157
2065
|
GM_getResourceText: false,
|
|
2158
2066
|
GM_getResourceURL: false,
|
|
2159
2067
|
GM_getTab: false,
|
|
2160
2068
|
GM_getTabs: false,
|
|
2161
2069
|
GM_getValue: false,
|
|
2070
|
+
GM_getValues: false,
|
|
2162
2071
|
GM_info: false,
|
|
2163
2072
|
GM_listValues: false,
|
|
2164
2073
|
GM_log: false,
|
|
@@ -2169,6 +2078,7 @@ var require_globals = __commonJS({
|
|
|
2169
2078
|
GM_saveTab: false,
|
|
2170
2079
|
GM_setClipboard: false,
|
|
2171
2080
|
GM_setValue: false,
|
|
2081
|
+
GM_setValues: false,
|
|
2172
2082
|
GM_unregisterMenuCommand: false,
|
|
2173
2083
|
GM_xmlhttpRequest: false,
|
|
2174
2084
|
unsafeWindow: false
|
|
@@ -3341,9 +3251,9 @@ var require_globals = __commonJS({
|
|
|
3341
3251
|
}
|
|
3342
3252
|
});
|
|
3343
3253
|
|
|
3344
|
-
// node_modules/.pnpm/globals@16.
|
|
3254
|
+
// node_modules/.pnpm/globals@16.2.0/node_modules/globals/index.js
|
|
3345
3255
|
var require_globals2 = __commonJS({
|
|
3346
|
-
"node_modules/.pnpm/globals@16.
|
|
3256
|
+
"node_modules/.pnpm/globals@16.2.0/node_modules/globals/index.js"(exports, module) {
|
|
3347
3257
|
"use strict";
|
|
3348
3258
|
module.exports = require_globals();
|
|
3349
3259
|
}
|
|
@@ -6566,11 +6476,11 @@ pp$4.raise = function(pos, message) {
|
|
|
6566
6476
|
if (this.sourceFile) {
|
|
6567
6477
|
message += " in " + this.sourceFile;
|
|
6568
6478
|
}
|
|
6569
|
-
var
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
throw
|
|
6479
|
+
var err = new SyntaxError(message);
|
|
6480
|
+
err.pos = pos;
|
|
6481
|
+
err.loc = loc;
|
|
6482
|
+
err.raisedAt = this.pos;
|
|
6483
|
+
throw err;
|
|
6574
6484
|
};
|
|
6575
6485
|
pp$4.raiseRecoverable = pp$4.raise;
|
|
6576
6486
|
pp$4.curPosition = function() {
|
|
@@ -8681,11 +8591,11 @@ pp.tryReadTemplateToken = function() {
|
|
|
8681
8591
|
this.inTemplateElement = true;
|
|
8682
8592
|
try {
|
|
8683
8593
|
this.readTmplToken();
|
|
8684
|
-
} catch (
|
|
8685
|
-
if (
|
|
8594
|
+
} catch (err) {
|
|
8595
|
+
if (err === INVALID_TEMPLATE_ESCAPE_ERROR) {
|
|
8686
8596
|
this.readInvalidTemplateToken();
|
|
8687
8597
|
} else {
|
|
8688
|
-
throw
|
|
8598
|
+
throw err;
|
|
8689
8599
|
}
|
|
8690
8600
|
}
|
|
8691
8601
|
this.inTemplateElement = false;
|
|
@@ -8928,7 +8838,7 @@ Parser.acorn = {
|
|
|
8928
8838
|
import { builtinModules, createRequire } from "module";
|
|
8929
8839
|
import fs, { realpathSync, statSync, promises } from "fs";
|
|
8930
8840
|
|
|
8931
|
-
// node_modules/.pnpm/ufo@1.
|
|
8841
|
+
// node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.mjs
|
|
8932
8842
|
var r = String.fromCharCode;
|
|
8933
8843
|
var TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
|
|
8934
8844
|
var JOIN_LEADING_SLASH_RE = /^\.?\//;
|
|
@@ -8948,7 +8858,7 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
8948
8858
|
let path3 = input;
|
|
8949
8859
|
let fragment = "";
|
|
8950
8860
|
const fragmentIndex = input.indexOf("#");
|
|
8951
|
-
if (fragmentIndex
|
|
8861
|
+
if (fragmentIndex !== -1) {
|
|
8952
8862
|
path3 = input.slice(0, fragmentIndex);
|
|
8953
8863
|
fragment = input.slice(fragmentIndex);
|
|
8954
8864
|
if (!path3) {
|
|
@@ -10328,7 +10238,7 @@ function resolvePathSync(id, options) {
|
|
|
10328
10238
|
return fileURLToPath(resolveSync(id, options));
|
|
10329
10239
|
}
|
|
10330
10240
|
|
|
10331
|
-
// node_modules/.pnpm/quansync@0.2.
|
|
10241
|
+
// node_modules/.pnpm/quansync@0.2.10/node_modules/quansync/dist/index.mjs
|
|
10332
10242
|
var GET_IS_ASYNC = Symbol.for("quansync.getIsAsync");
|
|
10333
10243
|
var QuansyncError = class extends Error {
|
|
10334
10244
|
constructor(message = "Unexpected promise in sync context") {
|
|
@@ -10378,49 +10288,54 @@ function unwrapYield(value, isAsync) {
|
|
|
10378
10288
|
throw new QuansyncError();
|
|
10379
10289
|
return value;
|
|
10380
10290
|
}
|
|
10381
|
-
|
|
10291
|
+
var DEFAULT_ON_YIELD = (value) => value;
|
|
10292
|
+
function iterateSync(generator, onYield = DEFAULT_ON_YIELD) {
|
|
10382
10293
|
let current2 = generator.next();
|
|
10383
10294
|
while (!current2.done) {
|
|
10384
10295
|
try {
|
|
10385
|
-
current2 = generator.next(unwrapYield(current2.value));
|
|
10386
|
-
} catch (
|
|
10387
|
-
current2 = generator.throw(
|
|
10296
|
+
current2 = generator.next(unwrapYield(onYield(current2.value, false)));
|
|
10297
|
+
} catch (err) {
|
|
10298
|
+
current2 = generator.throw(err);
|
|
10388
10299
|
}
|
|
10389
10300
|
}
|
|
10390
10301
|
return unwrapYield(current2.value);
|
|
10391
10302
|
}
|
|
10392
|
-
async function iterateAsync(generator) {
|
|
10303
|
+
async function iterateAsync(generator, onYield = DEFAULT_ON_YIELD) {
|
|
10393
10304
|
let current2 = generator.next();
|
|
10394
10305
|
while (!current2.done) {
|
|
10395
10306
|
try {
|
|
10396
|
-
current2 = generator.next(await unwrapYield(current2.value, true));
|
|
10397
|
-
} catch (
|
|
10398
|
-
current2 = generator.throw(
|
|
10307
|
+
current2 = generator.next(await unwrapYield(onYield(current2.value, true), true));
|
|
10308
|
+
} catch (err) {
|
|
10309
|
+
current2 = generator.throw(err);
|
|
10399
10310
|
}
|
|
10400
10311
|
}
|
|
10401
10312
|
return current2.value;
|
|
10402
10313
|
}
|
|
10403
|
-
function fromGeneratorFn(generatorFn) {
|
|
10314
|
+
function fromGeneratorFn(generatorFn, options) {
|
|
10404
10315
|
return fromObject({
|
|
10405
10316
|
name: generatorFn.name,
|
|
10406
10317
|
async(...args) {
|
|
10407
|
-
return iterateAsync(generatorFn.apply(this, args));
|
|
10318
|
+
return iterateAsync(generatorFn.apply(this, args), options?.onYield);
|
|
10408
10319
|
},
|
|
10409
10320
|
sync(...args) {
|
|
10410
|
-
return iterateSync(generatorFn.apply(this, args));
|
|
10321
|
+
return iterateSync(generatorFn.apply(this, args), options?.onYield);
|
|
10411
10322
|
}
|
|
10412
10323
|
});
|
|
10413
10324
|
}
|
|
10414
|
-
function quansync(options) {
|
|
10415
|
-
if (isThenable(
|
|
10416
|
-
return fromPromise(
|
|
10417
|
-
if (typeof
|
|
10418
|
-
return fromGeneratorFn(options);
|
|
10325
|
+
function quansync(input, options) {
|
|
10326
|
+
if (isThenable(input))
|
|
10327
|
+
return fromPromise(input);
|
|
10328
|
+
if (typeof input === "function")
|
|
10329
|
+
return fromGeneratorFn(input, options);
|
|
10419
10330
|
else
|
|
10420
|
-
return fromObject(
|
|
10331
|
+
return fromObject(input);
|
|
10421
10332
|
}
|
|
10333
|
+
var getIsAsync = quansync({
|
|
10334
|
+
async: () => Promise.resolve(true),
|
|
10335
|
+
sync: () => false
|
|
10336
|
+
});
|
|
10422
10337
|
|
|
10423
|
-
// node_modules/.pnpm/quansync@0.2.
|
|
10338
|
+
// node_modules/.pnpm/quansync@0.2.10/node_modules/quansync/dist/macro.mjs
|
|
10424
10339
|
var quansync2 = quansync;
|
|
10425
10340
|
|
|
10426
10341
|
// node_modules/.pnpm/local-pkg@1.1.1/node_modules/local-pkg/dist/index.mjs
|
|
@@ -10565,482 +10480,6 @@ var isPackageListed = quansync2(function* (name, cwd) {
|
|
|
10565
10480
|
});
|
|
10566
10481
|
var isPackageListedSync = isPackageListed.sync;
|
|
10567
10482
|
|
|
10568
|
-
// node_modules/.pnpm/neverthrow@8.2.0/node_modules/neverthrow/dist/index.es.js
|
|
10569
|
-
var defaultErrorConfig = {
|
|
10570
|
-
withStackTrace: false
|
|
10571
|
-
};
|
|
10572
|
-
var createNeverThrowError = (message, result, config = defaultErrorConfig) => {
|
|
10573
|
-
const data2 = result.isOk() ? { type: "Ok", value: result.value } : { type: "Err", value: result.error };
|
|
10574
|
-
const maybeStack = config.withStackTrace ? new Error().stack : void 0;
|
|
10575
|
-
return {
|
|
10576
|
-
data: data2,
|
|
10577
|
-
message,
|
|
10578
|
-
stack: maybeStack
|
|
10579
|
-
};
|
|
10580
|
-
};
|
|
10581
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
10582
|
-
function adopt(value) {
|
|
10583
|
-
return value instanceof P ? value : new P(function(resolve2) {
|
|
10584
|
-
resolve2(value);
|
|
10585
|
-
});
|
|
10586
|
-
}
|
|
10587
|
-
return new (P || (P = Promise))(function(resolve2, reject) {
|
|
10588
|
-
function fulfilled(value) {
|
|
10589
|
-
try {
|
|
10590
|
-
step(generator.next(value));
|
|
10591
|
-
} catch (e) {
|
|
10592
|
-
reject(e);
|
|
10593
|
-
}
|
|
10594
|
-
}
|
|
10595
|
-
function rejected(value) {
|
|
10596
|
-
try {
|
|
10597
|
-
step(generator["throw"](value));
|
|
10598
|
-
} catch (e) {
|
|
10599
|
-
reject(e);
|
|
10600
|
-
}
|
|
10601
|
-
}
|
|
10602
|
-
function step(result) {
|
|
10603
|
-
result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
10604
|
-
}
|
|
10605
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10606
|
-
});
|
|
10607
|
-
}
|
|
10608
|
-
function __values(o) {
|
|
10609
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
10610
|
-
if (m) return m.call(o);
|
|
10611
|
-
if (o && typeof o.length === "number") return {
|
|
10612
|
-
next: function() {
|
|
10613
|
-
if (o && i >= o.length) o = void 0;
|
|
10614
|
-
return { value: o && o[i++], done: !o };
|
|
10615
|
-
}
|
|
10616
|
-
};
|
|
10617
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
10618
|
-
}
|
|
10619
|
-
function __await(v) {
|
|
10620
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
10621
|
-
}
|
|
10622
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
10623
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
10624
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
10625
|
-
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
|
|
10626
|
-
return this;
|
|
10627
|
-
}, i;
|
|
10628
|
-
function awaitReturn(f) {
|
|
10629
|
-
return function(v) {
|
|
10630
|
-
return Promise.resolve(v).then(f, reject);
|
|
10631
|
-
};
|
|
10632
|
-
}
|
|
10633
|
-
function verb(n2, f) {
|
|
10634
|
-
if (g[n2]) {
|
|
10635
|
-
i[n2] = function(v) {
|
|
10636
|
-
return new Promise(function(a, b) {
|
|
10637
|
-
q.push([n2, v, a, b]) > 1 || resume(n2, v);
|
|
10638
|
-
});
|
|
10639
|
-
};
|
|
10640
|
-
if (f) i[n2] = f(i[n2]);
|
|
10641
|
-
}
|
|
10642
|
-
}
|
|
10643
|
-
function resume(n2, v) {
|
|
10644
|
-
try {
|
|
10645
|
-
step(g[n2](v));
|
|
10646
|
-
} catch (e) {
|
|
10647
|
-
settle(q[0][3], e);
|
|
10648
|
-
}
|
|
10649
|
-
}
|
|
10650
|
-
function step(r2) {
|
|
10651
|
-
r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q[0][2], r2);
|
|
10652
|
-
}
|
|
10653
|
-
function fulfill(value) {
|
|
10654
|
-
resume("next", value);
|
|
10655
|
-
}
|
|
10656
|
-
function reject(value) {
|
|
10657
|
-
resume("throw", value);
|
|
10658
|
-
}
|
|
10659
|
-
function settle(f, v) {
|
|
10660
|
-
if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
|
|
10661
|
-
}
|
|
10662
|
-
}
|
|
10663
|
-
function __asyncDelegator(o) {
|
|
10664
|
-
var i, p;
|
|
10665
|
-
return i = {}, verb("next"), verb("throw", function(e) {
|
|
10666
|
-
throw e;
|
|
10667
|
-
}), verb("return"), i[Symbol.iterator] = function() {
|
|
10668
|
-
return this;
|
|
10669
|
-
}, i;
|
|
10670
|
-
function verb(n2, f) {
|
|
10671
|
-
i[n2] = o[n2] ? function(v) {
|
|
10672
|
-
return (p = !p) ? { value: __await(o[n2](v)), done: false } : f ? f(v) : v;
|
|
10673
|
-
} : f;
|
|
10674
|
-
}
|
|
10675
|
-
}
|
|
10676
|
-
function __asyncValues(o) {
|
|
10677
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
10678
|
-
var m = o[Symbol.asyncIterator], i;
|
|
10679
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
10680
|
-
return this;
|
|
10681
|
-
}, i);
|
|
10682
|
-
function verb(n2) {
|
|
10683
|
-
i[n2] = o[n2] && function(v) {
|
|
10684
|
-
return new Promise(function(resolve2, reject) {
|
|
10685
|
-
v = o[n2](v), settle(resolve2, reject, v.done, v.value);
|
|
10686
|
-
});
|
|
10687
|
-
};
|
|
10688
|
-
}
|
|
10689
|
-
function settle(resolve2, reject, d, v) {
|
|
10690
|
-
Promise.resolve(v).then(function(v2) {
|
|
10691
|
-
resolve2({ value: v2, done: d });
|
|
10692
|
-
}, reject);
|
|
10693
|
-
}
|
|
10694
|
-
}
|
|
10695
|
-
var ResultAsync = class _ResultAsync {
|
|
10696
|
-
constructor(res) {
|
|
10697
|
-
this._promise = res;
|
|
10698
|
-
}
|
|
10699
|
-
static fromSafePromise(promise) {
|
|
10700
|
-
const newPromise = promise.then((value) => new Ok(value));
|
|
10701
|
-
return new _ResultAsync(newPromise);
|
|
10702
|
-
}
|
|
10703
|
-
static fromPromise(promise, errorFn) {
|
|
10704
|
-
const newPromise = promise.then((value) => new Ok(value)).catch((e) => new Err(errorFn(e)));
|
|
10705
|
-
return new _ResultAsync(newPromise);
|
|
10706
|
-
}
|
|
10707
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10708
|
-
static fromThrowable(fn, errorFn) {
|
|
10709
|
-
return (...args) => {
|
|
10710
|
-
return new _ResultAsync((() => __awaiter(this, void 0, void 0, function* () {
|
|
10711
|
-
try {
|
|
10712
|
-
return new Ok(yield fn(...args));
|
|
10713
|
-
} catch (error) {
|
|
10714
|
-
return new Err(errorFn ? errorFn(error) : error);
|
|
10715
|
-
}
|
|
10716
|
-
}))());
|
|
10717
|
-
};
|
|
10718
|
-
}
|
|
10719
|
-
static combine(asyncResultList) {
|
|
10720
|
-
return combineResultAsyncList(asyncResultList);
|
|
10721
|
-
}
|
|
10722
|
-
static combineWithAllErrors(asyncResultList) {
|
|
10723
|
-
return combineResultAsyncListWithAllErrors(asyncResultList);
|
|
10724
|
-
}
|
|
10725
|
-
map(f) {
|
|
10726
|
-
return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
10727
|
-
if (res.isErr()) {
|
|
10728
|
-
return new Err(res.error);
|
|
10729
|
-
}
|
|
10730
|
-
return new Ok(yield f(res.value));
|
|
10731
|
-
})));
|
|
10732
|
-
}
|
|
10733
|
-
andThrough(f) {
|
|
10734
|
-
return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
10735
|
-
if (res.isErr()) {
|
|
10736
|
-
return new Err(res.error);
|
|
10737
|
-
}
|
|
10738
|
-
const newRes = yield f(res.value);
|
|
10739
|
-
if (newRes.isErr()) {
|
|
10740
|
-
return new Err(newRes.error);
|
|
10741
|
-
}
|
|
10742
|
-
return new Ok(res.value);
|
|
10743
|
-
})));
|
|
10744
|
-
}
|
|
10745
|
-
andTee(f) {
|
|
10746
|
-
return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
10747
|
-
if (res.isErr()) {
|
|
10748
|
-
return new Err(res.error);
|
|
10749
|
-
}
|
|
10750
|
-
try {
|
|
10751
|
-
yield f(res.value);
|
|
10752
|
-
} catch (e) {
|
|
10753
|
-
}
|
|
10754
|
-
return new Ok(res.value);
|
|
10755
|
-
})));
|
|
10756
|
-
}
|
|
10757
|
-
orTee(f) {
|
|
10758
|
-
return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
10759
|
-
if (res.isOk()) {
|
|
10760
|
-
return new Ok(res.value);
|
|
10761
|
-
}
|
|
10762
|
-
try {
|
|
10763
|
-
yield f(res.error);
|
|
10764
|
-
} catch (e) {
|
|
10765
|
-
}
|
|
10766
|
-
return new Err(res.error);
|
|
10767
|
-
})));
|
|
10768
|
-
}
|
|
10769
|
-
mapErr(f) {
|
|
10770
|
-
return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
10771
|
-
if (res.isOk()) {
|
|
10772
|
-
return new Ok(res.value);
|
|
10773
|
-
}
|
|
10774
|
-
return new Err(yield f(res.error));
|
|
10775
|
-
})));
|
|
10776
|
-
}
|
|
10777
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10778
|
-
andThen(f) {
|
|
10779
|
-
return new _ResultAsync(this._promise.then((res) => {
|
|
10780
|
-
if (res.isErr()) {
|
|
10781
|
-
return new Err(res.error);
|
|
10782
|
-
}
|
|
10783
|
-
const newValue = f(res.value);
|
|
10784
|
-
return newValue instanceof _ResultAsync ? newValue._promise : newValue;
|
|
10785
|
-
}));
|
|
10786
|
-
}
|
|
10787
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10788
|
-
orElse(f) {
|
|
10789
|
-
return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
10790
|
-
if (res.isErr()) {
|
|
10791
|
-
return f(res.error);
|
|
10792
|
-
}
|
|
10793
|
-
return new Ok(res.value);
|
|
10794
|
-
})));
|
|
10795
|
-
}
|
|
10796
|
-
match(ok2, _err) {
|
|
10797
|
-
return this._promise.then((res) => res.match(ok2, _err));
|
|
10798
|
-
}
|
|
10799
|
-
unwrapOr(t) {
|
|
10800
|
-
return this._promise.then((res) => res.unwrapOr(t));
|
|
10801
|
-
}
|
|
10802
|
-
/**
|
|
10803
|
-
* @deprecated will be removed in 9.0.0.
|
|
10804
|
-
*
|
|
10805
|
-
* You can use `safeTry` without this method.
|
|
10806
|
-
* @example
|
|
10807
|
-
* ```typescript
|
|
10808
|
-
* safeTry(async function* () {
|
|
10809
|
-
* const okValue = yield* yourResult
|
|
10810
|
-
* })
|
|
10811
|
-
* ```
|
|
10812
|
-
* Emulates Rust's `?` operator in `safeTry`'s body. See also `safeTry`.
|
|
10813
|
-
*/
|
|
10814
|
-
safeUnwrap() {
|
|
10815
|
-
return __asyncGenerator(this, arguments, function* safeUnwrap_1() {
|
|
10816
|
-
return yield __await(yield __await(yield* __asyncDelegator(__asyncValues(yield __await(this._promise.then((res) => res.safeUnwrap()))))));
|
|
10817
|
-
});
|
|
10818
|
-
}
|
|
10819
|
-
// Makes ResultAsync implement PromiseLike<Result>
|
|
10820
|
-
then(successCallback, failureCallback) {
|
|
10821
|
-
return this._promise.then(successCallback, failureCallback);
|
|
10822
|
-
}
|
|
10823
|
-
[Symbol.asyncIterator]() {
|
|
10824
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
10825
|
-
const result = yield __await(this._promise);
|
|
10826
|
-
if (result.isErr()) {
|
|
10827
|
-
yield yield __await(errAsync(result.error));
|
|
10828
|
-
}
|
|
10829
|
-
return yield __await(result.value);
|
|
10830
|
-
});
|
|
10831
|
-
}
|
|
10832
|
-
};
|
|
10833
|
-
function errAsync(err2) {
|
|
10834
|
-
return new ResultAsync(Promise.resolve(new Err(err2)));
|
|
10835
|
-
}
|
|
10836
|
-
var fromPromise2 = ResultAsync.fromPromise;
|
|
10837
|
-
var fromSafePromise = ResultAsync.fromSafePromise;
|
|
10838
|
-
var fromAsyncThrowable = ResultAsync.fromThrowable;
|
|
10839
|
-
var combineResultList = (resultList) => {
|
|
10840
|
-
let acc = ok([]);
|
|
10841
|
-
for (const result of resultList) {
|
|
10842
|
-
if (result.isErr()) {
|
|
10843
|
-
acc = err(result.error);
|
|
10844
|
-
break;
|
|
10845
|
-
} else {
|
|
10846
|
-
acc.map((list) => list.push(result.value));
|
|
10847
|
-
}
|
|
10848
|
-
}
|
|
10849
|
-
return acc;
|
|
10850
|
-
};
|
|
10851
|
-
var combineResultAsyncList = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultList);
|
|
10852
|
-
var combineResultListWithAllErrors = (resultList) => {
|
|
10853
|
-
let acc = ok([]);
|
|
10854
|
-
for (const result of resultList) {
|
|
10855
|
-
if (result.isErr() && acc.isErr()) {
|
|
10856
|
-
acc.error.push(result.error);
|
|
10857
|
-
} else if (result.isErr() && acc.isOk()) {
|
|
10858
|
-
acc = err([result.error]);
|
|
10859
|
-
} else if (result.isOk() && acc.isOk()) {
|
|
10860
|
-
acc.value.push(result.value);
|
|
10861
|
-
}
|
|
10862
|
-
}
|
|
10863
|
-
return acc;
|
|
10864
|
-
};
|
|
10865
|
-
var combineResultAsyncListWithAllErrors = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultListWithAllErrors);
|
|
10866
|
-
var Result;
|
|
10867
|
-
(function(Result2) {
|
|
10868
|
-
function fromThrowable2(fn, errorFn) {
|
|
10869
|
-
return (...args) => {
|
|
10870
|
-
try {
|
|
10871
|
-
const result = fn(...args);
|
|
10872
|
-
return ok(result);
|
|
10873
|
-
} catch (e) {
|
|
10874
|
-
return err(errorFn ? errorFn(e) : e);
|
|
10875
|
-
}
|
|
10876
|
-
};
|
|
10877
|
-
}
|
|
10878
|
-
Result2.fromThrowable = fromThrowable2;
|
|
10879
|
-
function combine2(resultList) {
|
|
10880
|
-
return combineResultList(resultList);
|
|
10881
|
-
}
|
|
10882
|
-
Result2.combine = combine2;
|
|
10883
|
-
function combineWithAllErrors(resultList) {
|
|
10884
|
-
return combineResultListWithAllErrors(resultList);
|
|
10885
|
-
}
|
|
10886
|
-
Result2.combineWithAllErrors = combineWithAllErrors;
|
|
10887
|
-
})(Result || (Result = {}));
|
|
10888
|
-
function ok(value) {
|
|
10889
|
-
return new Ok(value);
|
|
10890
|
-
}
|
|
10891
|
-
function err(err2) {
|
|
10892
|
-
return new Err(err2);
|
|
10893
|
-
}
|
|
10894
|
-
var Ok = class {
|
|
10895
|
-
constructor(value) {
|
|
10896
|
-
this.value = value;
|
|
10897
|
-
}
|
|
10898
|
-
isOk() {
|
|
10899
|
-
return true;
|
|
10900
|
-
}
|
|
10901
|
-
isErr() {
|
|
10902
|
-
return !this.isOk();
|
|
10903
|
-
}
|
|
10904
|
-
map(f) {
|
|
10905
|
-
return ok(f(this.value));
|
|
10906
|
-
}
|
|
10907
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10908
|
-
mapErr(_f) {
|
|
10909
|
-
return ok(this.value);
|
|
10910
|
-
}
|
|
10911
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10912
|
-
andThen(f) {
|
|
10913
|
-
return f(this.value);
|
|
10914
|
-
}
|
|
10915
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10916
|
-
andThrough(f) {
|
|
10917
|
-
return f(this.value).map((_value) => this.value);
|
|
10918
|
-
}
|
|
10919
|
-
andTee(f) {
|
|
10920
|
-
try {
|
|
10921
|
-
f(this.value);
|
|
10922
|
-
} catch (e) {
|
|
10923
|
-
}
|
|
10924
|
-
return ok(this.value);
|
|
10925
|
-
}
|
|
10926
|
-
orTee(_f) {
|
|
10927
|
-
return ok(this.value);
|
|
10928
|
-
}
|
|
10929
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10930
|
-
orElse(_f) {
|
|
10931
|
-
return ok(this.value);
|
|
10932
|
-
}
|
|
10933
|
-
asyncAndThen(f) {
|
|
10934
|
-
return f(this.value);
|
|
10935
|
-
}
|
|
10936
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10937
|
-
asyncAndThrough(f) {
|
|
10938
|
-
return f(this.value).map(() => this.value);
|
|
10939
|
-
}
|
|
10940
|
-
asyncMap(f) {
|
|
10941
|
-
return ResultAsync.fromSafePromise(f(this.value));
|
|
10942
|
-
}
|
|
10943
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10944
|
-
unwrapOr(_v) {
|
|
10945
|
-
return this.value;
|
|
10946
|
-
}
|
|
10947
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10948
|
-
match(ok2, _err) {
|
|
10949
|
-
return ok2(this.value);
|
|
10950
|
-
}
|
|
10951
|
-
safeUnwrap() {
|
|
10952
|
-
const value = this.value;
|
|
10953
|
-
return function* () {
|
|
10954
|
-
return value;
|
|
10955
|
-
}();
|
|
10956
|
-
}
|
|
10957
|
-
_unsafeUnwrap(_) {
|
|
10958
|
-
return this.value;
|
|
10959
|
-
}
|
|
10960
|
-
_unsafeUnwrapErr(config) {
|
|
10961
|
-
throw createNeverThrowError("Called `_unsafeUnwrapErr` on an Ok", this, config);
|
|
10962
|
-
}
|
|
10963
|
-
// eslint-disable-next-line @typescript-eslint/no-this-alias, require-yield
|
|
10964
|
-
*[Symbol.iterator]() {
|
|
10965
|
-
return this.value;
|
|
10966
|
-
}
|
|
10967
|
-
};
|
|
10968
|
-
var Err = class {
|
|
10969
|
-
constructor(error) {
|
|
10970
|
-
this.error = error;
|
|
10971
|
-
}
|
|
10972
|
-
isOk() {
|
|
10973
|
-
return false;
|
|
10974
|
-
}
|
|
10975
|
-
isErr() {
|
|
10976
|
-
return !this.isOk();
|
|
10977
|
-
}
|
|
10978
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10979
|
-
map(_f) {
|
|
10980
|
-
return err(this.error);
|
|
10981
|
-
}
|
|
10982
|
-
mapErr(f) {
|
|
10983
|
-
return err(f(this.error));
|
|
10984
|
-
}
|
|
10985
|
-
andThrough(_f) {
|
|
10986
|
-
return err(this.error);
|
|
10987
|
-
}
|
|
10988
|
-
andTee(_f) {
|
|
10989
|
-
return err(this.error);
|
|
10990
|
-
}
|
|
10991
|
-
orTee(f) {
|
|
10992
|
-
try {
|
|
10993
|
-
f(this.error);
|
|
10994
|
-
} catch (e) {
|
|
10995
|
-
}
|
|
10996
|
-
return err(this.error);
|
|
10997
|
-
}
|
|
10998
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10999
|
-
andThen(_f) {
|
|
11000
|
-
return err(this.error);
|
|
11001
|
-
}
|
|
11002
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
11003
|
-
orElse(f) {
|
|
11004
|
-
return f(this.error);
|
|
11005
|
-
}
|
|
11006
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11007
|
-
asyncAndThen(_f) {
|
|
11008
|
-
return errAsync(this.error);
|
|
11009
|
-
}
|
|
11010
|
-
asyncAndThrough(_f) {
|
|
11011
|
-
return errAsync(this.error);
|
|
11012
|
-
}
|
|
11013
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11014
|
-
asyncMap(_f) {
|
|
11015
|
-
return errAsync(this.error);
|
|
11016
|
-
}
|
|
11017
|
-
unwrapOr(v) {
|
|
11018
|
-
return v;
|
|
11019
|
-
}
|
|
11020
|
-
match(_ok, err2) {
|
|
11021
|
-
return err2(this.error);
|
|
11022
|
-
}
|
|
11023
|
-
safeUnwrap() {
|
|
11024
|
-
const error = this.error;
|
|
11025
|
-
return function* () {
|
|
11026
|
-
yield err(error);
|
|
11027
|
-
throw new Error("Do not use this generator out of `safeTry`");
|
|
11028
|
-
}();
|
|
11029
|
-
}
|
|
11030
|
-
_unsafeUnwrap(config) {
|
|
11031
|
-
throw createNeverThrowError("Called `_unsafeUnwrap` on an Err", this, config);
|
|
11032
|
-
}
|
|
11033
|
-
_unsafeUnwrapErr(_) {
|
|
11034
|
-
return this.error;
|
|
11035
|
-
}
|
|
11036
|
-
*[Symbol.iterator]() {
|
|
11037
|
-
const self = this;
|
|
11038
|
-
yield self;
|
|
11039
|
-
return self;
|
|
11040
|
-
}
|
|
11041
|
-
};
|
|
11042
|
-
var fromThrowable = Result.fromThrowable;
|
|
11043
|
-
|
|
11044
10483
|
// src/utils.ts
|
|
11045
10484
|
import process3 from "process";
|
|
11046
10485
|
|
|
@@ -11275,8 +10714,9 @@ import { default as default5 } from "eslint-plugin-de-morgan";
|
|
|
11275
10714
|
import * as pluginImport from "eslint-plugin-import-x";
|
|
11276
10715
|
import { default as default6 } from "eslint-plugin-n";
|
|
11277
10716
|
import { default as default7 } from "eslint-plugin-perfectionist";
|
|
11278
|
-
import { default as default8 } from "eslint-plugin-
|
|
11279
|
-
import { default as default9 } from "eslint-plugin-
|
|
10717
|
+
import { default as default8 } from "eslint-plugin-pnpm";
|
|
10718
|
+
import { default as default9 } from "eslint-plugin-unicorn";
|
|
10719
|
+
import { default as default10 } from "eslint-plugin-unused-imports";
|
|
11280
10720
|
async function importPluginUnicorn() {
|
|
11281
10721
|
const pluginUnicorn = await interopDefault2(import("eslint-plugin-unicorn"));
|
|
11282
10722
|
return {
|
|
@@ -11365,22 +10805,6 @@ async function importPluginStylistic() {
|
|
|
11365
10805
|
);
|
|
11366
10806
|
return { pluginStylistic };
|
|
11367
10807
|
}
|
|
11368
|
-
async function importPluginTailwind() {
|
|
11369
|
-
const pluginTailwind = await interopDefault2(
|
|
11370
|
-
// @ts-expect-error - bad types
|
|
11371
|
-
Promise.resolve().then(() => __toESM(require_lib(), 1))
|
|
11372
|
-
);
|
|
11373
|
-
return { pluginTailwind };
|
|
11374
|
-
}
|
|
11375
|
-
async function safeImportPluginTailwind() {
|
|
11376
|
-
try {
|
|
11377
|
-
const plugin = await importPluginTailwind();
|
|
11378
|
-
return ok(plugin);
|
|
11379
|
-
} catch (e) {
|
|
11380
|
-
const msg = (e instanceof Error ? e.message : String(e)) || `unknown error ${String(e)}`;
|
|
11381
|
-
return err(new Error(msg));
|
|
11382
|
-
}
|
|
11383
|
-
}
|
|
11384
10808
|
|
|
11385
10809
|
// src/configs/antfu.ts
|
|
11386
10810
|
var antfu = async (options) => {
|
|
@@ -11628,7 +11052,7 @@ var javascript = async (options) => {
|
|
|
11628
11052
|
name: "jsse/javascript",
|
|
11629
11053
|
plugins: {
|
|
11630
11054
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
11631
|
-
"unused-imports":
|
|
11055
|
+
"unused-imports": default10
|
|
11632
11056
|
},
|
|
11633
11057
|
rules: {
|
|
11634
11058
|
...eslintjs.configs.recommended.rules,
|
|
@@ -12566,6 +11990,41 @@ var perfectionist = async () => {
|
|
|
12566
11990
|
];
|
|
12567
11991
|
};
|
|
12568
11992
|
|
|
11993
|
+
// src/configs/pnpm.ts
|
|
11994
|
+
var pnpm = async () => {
|
|
11995
|
+
return [
|
|
11996
|
+
{
|
|
11997
|
+
files: ["package.json", "**/package.json"],
|
|
11998
|
+
languageOptions: {
|
|
11999
|
+
parser: await import("jsonc-eslint-parser")
|
|
12000
|
+
},
|
|
12001
|
+
name: "jsse/pnpm/package-json",
|
|
12002
|
+
plugins: {
|
|
12003
|
+
pnpm: default8
|
|
12004
|
+
},
|
|
12005
|
+
rules: {
|
|
12006
|
+
"pnpm/json-enforce-catalog": "error",
|
|
12007
|
+
"pnpm/json-prefer-workspace-settings": "error",
|
|
12008
|
+
"pnpm/json-valid-catalog": "error"
|
|
12009
|
+
}
|
|
12010
|
+
},
|
|
12011
|
+
{
|
|
12012
|
+
files: ["pnpm-workspace.yaml"],
|
|
12013
|
+
languageOptions: {
|
|
12014
|
+
parser: await import("yaml-eslint-parser")
|
|
12015
|
+
},
|
|
12016
|
+
name: "jsse/pnpm/pnpm-workspace-yaml",
|
|
12017
|
+
plugins: {
|
|
12018
|
+
pnpm: default8
|
|
12019
|
+
},
|
|
12020
|
+
rules: {
|
|
12021
|
+
"pnpm/yaml-no-duplicate-catalog-item": "error",
|
|
12022
|
+
"pnpm/yaml-no-unused-catalog-item": "error"
|
|
12023
|
+
}
|
|
12024
|
+
}
|
|
12025
|
+
];
|
|
12026
|
+
};
|
|
12027
|
+
|
|
12569
12028
|
// src/configs/prettier.ts
|
|
12570
12029
|
function eslintConfigPrettierRules() {
|
|
12571
12030
|
return {
|
|
@@ -13517,10 +12976,10 @@ var unicorn = async () => {
|
|
|
13517
12976
|
name: "jsse/unicorn",
|
|
13518
12977
|
plugins: {
|
|
13519
12978
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
13520
|
-
unicorn:
|
|
12979
|
+
unicorn: default9
|
|
13521
12980
|
},
|
|
13522
12981
|
rules: {
|
|
13523
|
-
...unicornRecommended(
|
|
12982
|
+
...unicornRecommended(default9),
|
|
13524
12983
|
...unicornOff(),
|
|
13525
12984
|
"unicorn/better-regex": "error",
|
|
13526
12985
|
"unicorn/consistent-empty-array-spread": "error",
|
|
@@ -13712,6 +13171,7 @@ function defaultOptions2() {
|
|
|
13712
13171
|
markdown: false,
|
|
13713
13172
|
off: [],
|
|
13714
13173
|
overrides: {},
|
|
13174
|
+
pnpm: false,
|
|
13715
13175
|
prettier: true,
|
|
13716
13176
|
react: false,
|
|
13717
13177
|
reportUnusedDisableDirectives: true,
|
|
@@ -13761,6 +13221,7 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
13761
13221
|
markdown: enableMarkdown,
|
|
13762
13222
|
off,
|
|
13763
13223
|
overrides = {},
|
|
13224
|
+
pnpm: enablePnpm,
|
|
13764
13225
|
prettier: enablePrettier,
|
|
13765
13226
|
react: enableReact,
|
|
13766
13227
|
reportUnusedDisableDirectives,
|
|
@@ -13825,6 +13286,9 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
13825
13286
|
if (enableCommand) {
|
|
13826
13287
|
configs.push(command());
|
|
13827
13288
|
}
|
|
13289
|
+
if (enablePnpm) {
|
|
13290
|
+
configs.push(pnpm());
|
|
13291
|
+
}
|
|
13828
13292
|
if (typescriptOptions) {
|
|
13829
13293
|
const tscfg = typescript({
|
|
13830
13294
|
...typeof typescriptOptions === "boolean" ? {} : typescriptOptions,
|
|
@@ -13950,28 +13414,28 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
13950
13414
|
}
|
|
13951
13415
|
|
|
13952
13416
|
// src/generated/version.ts
|
|
13953
|
-
var VERSION = "0.4.
|
|
13417
|
+
var VERSION = "0.4.1";
|
|
13954
13418
|
|
|
13955
13419
|
// src/presets.ts
|
|
13956
13420
|
var makePresetFn = (cfgFunctions) => {
|
|
13957
13421
|
return async () => {
|
|
13958
13422
|
const results = await Promise.allSettled(cfgFunctions.map((fn) => fn()));
|
|
13959
|
-
const
|
|
13960
|
-
const
|
|
13423
|
+
const ok = [];
|
|
13424
|
+
const err = [];
|
|
13961
13425
|
for (const result of results) {
|
|
13962
13426
|
if (result.status === "fulfilled") {
|
|
13963
|
-
|
|
13427
|
+
ok.push(...result.value);
|
|
13964
13428
|
} else {
|
|
13965
|
-
|
|
13429
|
+
err.push(result.reason);
|
|
13966
13430
|
}
|
|
13967
13431
|
}
|
|
13968
|
-
if (
|
|
13969
|
-
const errorMessage = `Some preset functions failed: ${
|
|
13432
|
+
if (err.length > 0) {
|
|
13433
|
+
const errorMessage = `Some preset functions failed: ${err.map((e) => {
|
|
13970
13434
|
return e instanceof Error ? e.message : JSON.stringify(e);
|
|
13971
13435
|
}).join(", ")}`;
|
|
13972
13436
|
throw new Error(errorMessage);
|
|
13973
13437
|
}
|
|
13974
|
-
return
|
|
13438
|
+
return ok;
|
|
13975
13439
|
};
|
|
13976
13440
|
};
|
|
13977
13441
|
var jsseReact = (options, ...configs) => {
|
|
@@ -13979,7 +13443,6 @@ var jsseReact = (options, ...configs) => {
|
|
|
13979
13443
|
{
|
|
13980
13444
|
react: true,
|
|
13981
13445
|
reactRefresh: true,
|
|
13982
|
-
tailwind: true,
|
|
13983
13446
|
typescript: {
|
|
13984
13447
|
tsconfig: ["./tsconfig.json", "./tsconfig.eslint.json"]
|
|
13985
13448
|
},
|
|
@@ -14030,7 +13493,6 @@ export {
|
|
|
14030
13493
|
importPluginReactHooks,
|
|
14031
13494
|
importPluginReactRefresh,
|
|
14032
13495
|
importPluginStylistic,
|
|
14033
|
-
importPluginTailwind,
|
|
14034
13496
|
importPluginTsdoc,
|
|
14035
13497
|
importPluginUnicorn,
|
|
14036
13498
|
importReactPlugins,
|
|
@@ -14048,11 +13510,11 @@ export {
|
|
|
14048
13510
|
pluginImport,
|
|
14049
13511
|
default6 as pluginN,
|
|
14050
13512
|
default7 as pluginPerfectionist,
|
|
13513
|
+
default8 as pluginPnpm,
|
|
14051
13514
|
default3 as pluginTs,
|
|
14052
|
-
|
|
14053
|
-
|
|
13515
|
+
default9 as pluginUnicorn,
|
|
13516
|
+
default10 as pluginUnusedImports,
|
|
14054
13517
|
renameRules,
|
|
14055
|
-
safeImportPluginTailwind,
|
|
14056
13518
|
turnOffRules,
|
|
14057
13519
|
uniqueStrings,
|
|
14058
13520
|
warn2error
|