@jsse/eslint-config 0.2.24 → 0.2.26
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 +189 -0
- package/LICENSE +1 -1
- package/dist/cli.cjs +28 -5
- package/dist/cli.js +28 -5
- package/dist/esm/cli.js +30 -4
- package/dist/esm/config-fns.d.ts +2 -0
- package/dist/esm/config-fns.js +4 -0
- package/dist/esm/configs/command.d.ts +10 -0
- package/dist/esm/configs/command.js +17 -0
- package/dist/esm/configs/react.js +0 -1
- package/dist/esm/configs/sort-tsconfig.js +0 -1
- package/dist/esm/configs/tailwind.js +1 -1
- package/dist/esm/const.js +15 -0
- package/dist/esm/define-config.js +7 -3
- package/dist/esm/generated/version.d.ts +1 -0
- package/dist/esm/generated/version.js +1 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/lager.d.ts +0 -1
- package/dist/esm/lager.js +0 -1
- package/dist/esm/log.d.ts +2 -0
- package/dist/esm/log.js +2 -0
- package/dist/esm/plugins.d.ts +744 -2
- package/dist/esm/types.d.ts +6 -0
- package/dist/esm/utils.js +1 -1
- package/dist/index.cjs +122 -70
- package/dist/index.d.cts +994 -144
- package/dist/index.d.ts +994 -144
- package/dist/index.js +124 -45
- package/package.json +30 -28
package/dist/index.js
CHANGED
|
@@ -7,6 +7,10 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
7
7
|
var __commonJS = (cb, mod) => function __require() {
|
|
8
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
9
|
};
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
10
14
|
var __copyProps = (to, from, except, desc) => {
|
|
11
15
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
16
|
for (let key of __getOwnPropNames(from))
|
|
@@ -24,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
28
|
mod
|
|
25
29
|
));
|
|
26
30
|
|
|
27
|
-
// node_modules/.pnpm/globals@15.
|
|
31
|
+
// node_modules/.pnpm/globals@15.12.0/node_modules/globals/globals.json
|
|
28
32
|
var require_globals = __commonJS({
|
|
29
|
-
"node_modules/.pnpm/globals@15.
|
|
33
|
+
"node_modules/.pnpm/globals@15.12.0/node_modules/globals/globals.json"(exports, module) {
|
|
30
34
|
module.exports = {
|
|
31
35
|
amd: {
|
|
32
36
|
define: false,
|
|
@@ -198,6 +202,7 @@ var require_globals = __commonJS({
|
|
|
198
202
|
CSSMatrixComponent: false,
|
|
199
203
|
CSSMediaRule: false,
|
|
200
204
|
CSSNamespaceRule: false,
|
|
205
|
+
CSSNestedDeclarations: false,
|
|
201
206
|
CSSNumericArray: false,
|
|
202
207
|
CSSNumericValue: false,
|
|
203
208
|
CSSPageDescriptors: false,
|
|
@@ -498,7 +503,6 @@ var require_globals = __commonJS({
|
|
|
498
503
|
IntersectionObserver: false,
|
|
499
504
|
IntersectionObserverEntry: false,
|
|
500
505
|
isSecureContext: false,
|
|
501
|
-
Iterator: false,
|
|
502
506
|
Keyboard: false,
|
|
503
507
|
KeyboardEvent: false,
|
|
504
508
|
KeyboardLayoutMap: false,
|
|
@@ -1212,6 +1216,7 @@ var require_globals = __commonJS({
|
|
|
1212
1216
|
Intl: false,
|
|
1213
1217
|
isFinite: false,
|
|
1214
1218
|
isNaN: false,
|
|
1219
|
+
Iterator: false,
|
|
1215
1220
|
JSON: false,
|
|
1216
1221
|
Map: false,
|
|
1217
1222
|
Math: false,
|
|
@@ -1923,6 +1928,7 @@ var require_globals = __commonJS({
|
|
|
1923
1928
|
Intl: false,
|
|
1924
1929
|
isFinite: false,
|
|
1925
1930
|
isNaN: false,
|
|
1931
|
+
Iterator: false,
|
|
1926
1932
|
JSON: false,
|
|
1927
1933
|
Map: false,
|
|
1928
1934
|
Math: false,
|
|
@@ -2222,6 +2228,7 @@ var require_globals = __commonJS({
|
|
|
2222
2228
|
clearImmediate: false,
|
|
2223
2229
|
clearInterval: false,
|
|
2224
2230
|
clearTimeout: false,
|
|
2231
|
+
CloseEvent: false,
|
|
2225
2232
|
CompressionStream: false,
|
|
2226
2233
|
console: false,
|
|
2227
2234
|
CountQueuingStrategy: false,
|
|
@@ -2239,7 +2246,6 @@ var require_globals = __commonJS({
|
|
|
2239
2246
|
FormData: false,
|
|
2240
2247
|
global: false,
|
|
2241
2248
|
Headers: false,
|
|
2242
|
-
Iterator: false,
|
|
2243
2249
|
MessageChannel: false,
|
|
2244
2250
|
MessageEvent: false,
|
|
2245
2251
|
MessagePort: false,
|
|
@@ -2296,6 +2302,7 @@ var require_globals = __commonJS({
|
|
|
2296
2302
|
clearImmediate: false,
|
|
2297
2303
|
clearInterval: false,
|
|
2298
2304
|
clearTimeout: false,
|
|
2305
|
+
CloseEvent: false,
|
|
2299
2306
|
CompressionStream: false,
|
|
2300
2307
|
console: false,
|
|
2301
2308
|
CountQueuingStrategy: false,
|
|
@@ -2312,7 +2319,6 @@ var require_globals = __commonJS({
|
|
|
2312
2319
|
FormData: false,
|
|
2313
2320
|
global: false,
|
|
2314
2321
|
Headers: false,
|
|
2315
|
-
Iterator: false,
|
|
2316
2322
|
MessageChannel: false,
|
|
2317
2323
|
MessageEvent: false,
|
|
2318
2324
|
MessagePort: false,
|
|
@@ -2589,6 +2595,7 @@ var require_globals = __commonJS({
|
|
|
2589
2595
|
ByteLengthQueuingStrategy: false,
|
|
2590
2596
|
clearInterval: false,
|
|
2591
2597
|
clearTimeout: false,
|
|
2598
|
+
CloseEvent: false,
|
|
2592
2599
|
CompressionStream: false,
|
|
2593
2600
|
console: false,
|
|
2594
2601
|
CountQueuingStrategy: false,
|
|
@@ -2604,7 +2611,6 @@ var require_globals = __commonJS({
|
|
|
2604
2611
|
File: false,
|
|
2605
2612
|
FormData: false,
|
|
2606
2613
|
Headers: false,
|
|
2607
|
-
Iterator: false,
|
|
2608
2614
|
MessageChannel: false,
|
|
2609
2615
|
MessageEvent: false,
|
|
2610
2616
|
MessagePort: false,
|
|
@@ -2816,7 +2822,6 @@ var require_globals = __commonJS({
|
|
|
2816
2822
|
importScripts: false,
|
|
2817
2823
|
indexedDB: false,
|
|
2818
2824
|
isSecureContext: false,
|
|
2819
|
-
Iterator: false,
|
|
2820
2825
|
location: false,
|
|
2821
2826
|
Lock: false,
|
|
2822
2827
|
LockManager: false,
|
|
@@ -2876,6 +2881,7 @@ var require_globals = __commonJS({
|
|
|
2876
2881
|
Request: false,
|
|
2877
2882
|
requestAnimationFrame: false,
|
|
2878
2883
|
Response: false,
|
|
2884
|
+
RTCDataChannel: false,
|
|
2879
2885
|
RTCEncodedAudioFrame: false,
|
|
2880
2886
|
RTCEncodedVideoFrame: false,
|
|
2881
2887
|
scheduler: false,
|
|
@@ -3000,9 +3006,9 @@ var require_globals = __commonJS({
|
|
|
3000
3006
|
}
|
|
3001
3007
|
});
|
|
3002
3008
|
|
|
3003
|
-
// node_modules/.pnpm/globals@15.
|
|
3009
|
+
// node_modules/.pnpm/globals@15.12.0/node_modules/globals/index.js
|
|
3004
3010
|
var require_globals2 = __commonJS({
|
|
3005
|
-
"node_modules/.pnpm/globals@15.
|
|
3011
|
+
"node_modules/.pnpm/globals@15.12.0/node_modules/globals/index.js"(exports, module) {
|
|
3006
3012
|
"use strict";
|
|
3007
3013
|
module.exports = require_globals();
|
|
3008
3014
|
}
|
|
@@ -3011,10 +3017,24 @@ var require_globals2 = __commonJS({
|
|
|
3011
3017
|
// src/const.ts
|
|
3012
3018
|
var SLOW_RULES = [
|
|
3013
3019
|
"@typescript-eslint/no-misused-promises",
|
|
3020
|
+
"@typescript-eslint/no-redeclare",
|
|
3014
3021
|
"@typescript-eslint/no-unsafe-assignment",
|
|
3015
3022
|
"@typescript-eslint/no-unsafe-call",
|
|
3016
3023
|
"@typescript-eslint/no-unsafe-member-access",
|
|
3017
3024
|
"@typescript-eslint/no-unsafe-return",
|
|
3025
|
+
"import/no-duplicates",
|
|
3026
|
+
"import/no-self-import",
|
|
3027
|
+
"jsdoc/check-access",
|
|
3028
|
+
"jsdoc/check-alignment",
|
|
3029
|
+
"jsdoc/check-property-names",
|
|
3030
|
+
"jsdoc/check-types",
|
|
3031
|
+
"jsdoc/empty-tags",
|
|
3032
|
+
"jsdoc/multiline-blocks",
|
|
3033
|
+
"jsdoc/no-multi-asterisks",
|
|
3034
|
+
"jsdoc/require-property-description",
|
|
3035
|
+
"jsdoc/require-property-name",
|
|
3036
|
+
"jsdoc/require-property",
|
|
3037
|
+
"unicorn/expiring-todo-comments",
|
|
3018
3038
|
"unicorn/no-unnecessary-polyfills"
|
|
3019
3039
|
];
|
|
3020
3040
|
|
|
@@ -9879,7 +9899,7 @@ function resolvePackage(name, options = {}) {
|
|
|
9879
9899
|
}
|
|
9880
9900
|
}
|
|
9881
9901
|
|
|
9882
|
-
// node_modules/.pnpm/neverthrow@8.
|
|
9902
|
+
// node_modules/.pnpm/neverthrow@8.1.1/node_modules/neverthrow/dist/index.es.js
|
|
9883
9903
|
var defaultErrorConfig = {
|
|
9884
9904
|
withStackTrace: false
|
|
9885
9905
|
};
|
|
@@ -9916,7 +9936,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
9916
9936
|
function step(result) {
|
|
9917
9937
|
result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
9918
9938
|
}
|
|
9919
|
-
step((generator = generator.apply(thisArg, [])).next());
|
|
9939
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9920
9940
|
});
|
|
9921
9941
|
}
|
|
9922
9942
|
function __values(o) {
|
|
@@ -9936,16 +9956,24 @@ function __await(v) {
|
|
|
9936
9956
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
9937
9957
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
9938
9958
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
9939
|
-
return i =
|
|
9959
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
|
|
9940
9960
|
return this;
|
|
9941
9961
|
}, i;
|
|
9942
|
-
function
|
|
9943
|
-
|
|
9944
|
-
return
|
|
9945
|
-
q.push([n2, v, a, b]) > 1 || resume(n2, v);
|
|
9946
|
-
});
|
|
9962
|
+
function awaitReturn(f) {
|
|
9963
|
+
return function(v) {
|
|
9964
|
+
return Promise.resolve(v).then(f, reject);
|
|
9947
9965
|
};
|
|
9948
9966
|
}
|
|
9967
|
+
function verb(n2, f) {
|
|
9968
|
+
if (g[n2]) {
|
|
9969
|
+
i[n2] = function(v) {
|
|
9970
|
+
return new Promise(function(a, b) {
|
|
9971
|
+
q.push([n2, v, a, b]) > 1 || resume(n2, v);
|
|
9972
|
+
});
|
|
9973
|
+
};
|
|
9974
|
+
if (f) i[n2] = f(i[n2]);
|
|
9975
|
+
}
|
|
9976
|
+
}
|
|
9949
9977
|
function resume(n2, v) {
|
|
9950
9978
|
try {
|
|
9951
9979
|
step(g[n2](v));
|
|
@@ -9975,7 +10003,7 @@ function __asyncDelegator(o) {
|
|
|
9975
10003
|
}, i;
|
|
9976
10004
|
function verb(n2, f) {
|
|
9977
10005
|
i[n2] = o[n2] ? function(v) {
|
|
9978
|
-
return (p = !p) ? { value: __await(o[n2](v)), done:
|
|
10006
|
+
return (p = !p) ? { value: __await(o[n2](v)), done: false } : f ? f(v) : v;
|
|
9979
10007
|
} : f;
|
|
9980
10008
|
}
|
|
9981
10009
|
}
|
|
@@ -10094,6 +10122,15 @@ var ResultAsync = class _ResultAsync {
|
|
|
10094
10122
|
return this._promise.then((res) => res.unwrapOr(t));
|
|
10095
10123
|
}
|
|
10096
10124
|
/**
|
|
10125
|
+
* @deprecated will be removed in 9.0.0.
|
|
10126
|
+
*
|
|
10127
|
+
* You can use `safeTry` without this method.
|
|
10128
|
+
* @example
|
|
10129
|
+
* ```typescript
|
|
10130
|
+
* safeTry(async function* () {
|
|
10131
|
+
* const okValue = yield* yourResult
|
|
10132
|
+
* })
|
|
10133
|
+
* ```
|
|
10097
10134
|
* Emulates Rust's `?` operator in `safeTry`'s body. See also `safeTry`.
|
|
10098
10135
|
*/
|
|
10099
10136
|
safeUnwrap() {
|
|
@@ -10105,6 +10142,15 @@ var ResultAsync = class _ResultAsync {
|
|
|
10105
10142
|
then(successCallback, failureCallback) {
|
|
10106
10143
|
return this._promise.then(successCallback, failureCallback);
|
|
10107
10144
|
}
|
|
10145
|
+
[Symbol.asyncIterator]() {
|
|
10146
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
10147
|
+
const result = yield __await(this._promise);
|
|
10148
|
+
if (result.isErr()) {
|
|
10149
|
+
yield yield __await(errAsync(result.error));
|
|
10150
|
+
}
|
|
10151
|
+
return yield __await(result.value);
|
|
10152
|
+
});
|
|
10153
|
+
}
|
|
10108
10154
|
};
|
|
10109
10155
|
var errAsync = (err2) => new ResultAsync(Promise.resolve(new Err(err2)));
|
|
10110
10156
|
var fromPromise = ResultAsync.fromPromise;
|
|
@@ -10229,6 +10275,10 @@ var Ok = class {
|
|
|
10229
10275
|
_unsafeUnwrapErr(config) {
|
|
10230
10276
|
throw createNeverThrowError("Called `_unsafeUnwrapErr` on an Ok", this, config);
|
|
10231
10277
|
}
|
|
10278
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias, require-yield
|
|
10279
|
+
*[Symbol.iterator]() {
|
|
10280
|
+
return this.value;
|
|
10281
|
+
}
|
|
10232
10282
|
};
|
|
10233
10283
|
var Err = class {
|
|
10234
10284
|
constructor(error) {
|
|
@@ -10291,6 +10341,11 @@ var Err = class {
|
|
|
10291
10341
|
_unsafeUnwrapErr(_) {
|
|
10292
10342
|
return this.error;
|
|
10293
10343
|
}
|
|
10344
|
+
*[Symbol.iterator]() {
|
|
10345
|
+
const self = this;
|
|
10346
|
+
yield self;
|
|
10347
|
+
return self;
|
|
10348
|
+
}
|
|
10294
10349
|
};
|
|
10295
10350
|
var fromThrowable = Result.fromThrowable;
|
|
10296
10351
|
|
|
@@ -10370,6 +10425,8 @@ var Lager = class {
|
|
|
10370
10425
|
}
|
|
10371
10426
|
}
|
|
10372
10427
|
};
|
|
10428
|
+
|
|
10429
|
+
// src/log.ts
|
|
10373
10430
|
var log = new Lager();
|
|
10374
10431
|
|
|
10375
10432
|
// src/utils.ts
|
|
@@ -10662,6 +10719,17 @@ var antfu = async (options) => {
|
|
|
10662
10719
|
];
|
|
10663
10720
|
};
|
|
10664
10721
|
|
|
10722
|
+
// src/configs/command.ts
|
|
10723
|
+
import createCommand from "eslint-plugin-command/config";
|
|
10724
|
+
var command = async () => {
|
|
10725
|
+
return [
|
|
10726
|
+
{
|
|
10727
|
+
...createCommand(),
|
|
10728
|
+
name: "jsse/command/rules"
|
|
10729
|
+
}
|
|
10730
|
+
];
|
|
10731
|
+
};
|
|
10732
|
+
|
|
10665
10733
|
// src/configs/comments.ts
|
|
10666
10734
|
var comments = async () => [
|
|
10667
10735
|
{
|
|
@@ -10680,6 +10748,34 @@ var comments = async () => [
|
|
|
10680
10748
|
];
|
|
10681
10749
|
|
|
10682
10750
|
// src/globs.ts
|
|
10751
|
+
var globs_exports = {};
|
|
10752
|
+
__export(globs_exports, {
|
|
10753
|
+
GLOB_ALL_SRC: () => GLOB_ALL_SRC,
|
|
10754
|
+
GLOB_CSS: () => GLOB_CSS,
|
|
10755
|
+
GLOB_EXCLUDE: () => GLOB_EXCLUDE,
|
|
10756
|
+
GLOB_GRAPHQL: () => GLOB_GRAPHQL,
|
|
10757
|
+
GLOB_HTML: () => GLOB_HTML,
|
|
10758
|
+
GLOB_JS: () => GLOB_JS,
|
|
10759
|
+
GLOB_JSON: () => GLOB_JSON,
|
|
10760
|
+
GLOB_JSON5: () => GLOB_JSON5,
|
|
10761
|
+
GLOB_JSONC: () => GLOB_JSONC,
|
|
10762
|
+
GLOB_JSX: () => GLOB_JSX,
|
|
10763
|
+
GLOB_JS_SRC_EXT: () => GLOB_JS_SRC_EXT,
|
|
10764
|
+
GLOB_LESS: () => GLOB_LESS,
|
|
10765
|
+
GLOB_MARKDOWN: () => GLOB_MARKDOWN,
|
|
10766
|
+
GLOB_MARKDOWN_CODE: () => GLOB_MARKDOWN_CODE,
|
|
10767
|
+
GLOB_MARKDOWN_IN_MARKDOWN: () => GLOB_MARKDOWN_IN_MARKDOWN,
|
|
10768
|
+
GLOB_SCSS: () => GLOB_SCSS,
|
|
10769
|
+
GLOB_SRC: () => GLOB_SRC,
|
|
10770
|
+
GLOB_SRC_EXT: () => GLOB_SRC_EXT,
|
|
10771
|
+
GLOB_STYLE: () => GLOB_STYLE,
|
|
10772
|
+
GLOB_TESTS: () => GLOB_TESTS,
|
|
10773
|
+
GLOB_TOML: () => GLOB_TOML,
|
|
10774
|
+
GLOB_TS: () => GLOB_TS,
|
|
10775
|
+
GLOB_TSCONFIG: () => GLOB_TSCONFIG,
|
|
10776
|
+
GLOB_TSX: () => GLOB_TSX,
|
|
10777
|
+
GLOB_YAML: () => GLOB_YAML
|
|
10778
|
+
});
|
|
10683
10779
|
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
10684
10780
|
var GLOB_JS_SRC_EXT = "?([cm])js?(x)";
|
|
10685
10781
|
var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
@@ -12198,7 +12294,6 @@ var react = async (options) => {
|
|
|
12198
12294
|
rules: {
|
|
12199
12295
|
...reactRecomendedRules(),
|
|
12200
12296
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
12201
|
-
// @ts-expect-error index access
|
|
12202
12297
|
...pluginReact.configs["jsx-runtime"].rules,
|
|
12203
12298
|
...reactRules()
|
|
12204
12299
|
},
|
|
@@ -12972,6 +13067,7 @@ var DEBUG = ["1", "true", "t", "on", "yes", "y"].includes(
|
|
|
12972
13067
|
);
|
|
12973
13068
|
function defaultOptions2() {
|
|
12974
13069
|
return {
|
|
13070
|
+
command: true,
|
|
12975
13071
|
componentExts: [],
|
|
12976
13072
|
debug: DEBUG && process6.env.TEST !== "true",
|
|
12977
13073
|
fast: false,
|
|
@@ -13029,7 +13125,7 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
13029
13125
|
typeAware,
|
|
13030
13126
|
typescript: enableTypeScript
|
|
13031
13127
|
} = normalizedOptions;
|
|
13032
|
-
if (debug) {
|
|
13128
|
+
if (debug || process6.argv.includes("--debug")) {
|
|
13033
13129
|
log.level = "debug";
|
|
13034
13130
|
}
|
|
13035
13131
|
log.debug("@jsse/eslint-config debug=true");
|
|
@@ -13076,6 +13172,9 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
13076
13172
|
antfu(),
|
|
13077
13173
|
perfectionist()
|
|
13078
13174
|
);
|
|
13175
|
+
if (normalizedOptions.command) {
|
|
13176
|
+
configs.push(command());
|
|
13177
|
+
}
|
|
13079
13178
|
if (enableTypeScript) {
|
|
13080
13179
|
const tscfg = typescript({
|
|
13081
13180
|
...typeof enableTypeScript === "boolean" ? {} : enableTypeScript,
|
|
@@ -13211,6 +13310,9 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
13211
13310
|
return jsse(options, ...userConfigs);
|
|
13212
13311
|
}
|
|
13213
13312
|
|
|
13313
|
+
// src/generated/version.ts
|
|
13314
|
+
var VERSION = "0.2.26";
|
|
13315
|
+
|
|
13214
13316
|
// src/presets.ts
|
|
13215
13317
|
var jsseReact = (options, ...configs) => {
|
|
13216
13318
|
return jsse(
|
|
@@ -13227,38 +13329,15 @@ var jsseReact = (options, ...configs) => {
|
|
|
13227
13329
|
);
|
|
13228
13330
|
};
|
|
13229
13331
|
export {
|
|
13230
|
-
GLOB_ALL_SRC,
|
|
13231
|
-
GLOB_CSS,
|
|
13232
|
-
GLOB_EXCLUDE,
|
|
13233
|
-
GLOB_GRAPHQL,
|
|
13234
|
-
GLOB_HTML,
|
|
13235
|
-
GLOB_JS,
|
|
13236
|
-
GLOB_JSON,
|
|
13237
|
-
GLOB_JSON5,
|
|
13238
|
-
GLOB_JSONC,
|
|
13239
|
-
GLOB_JSX,
|
|
13240
|
-
GLOB_JS_SRC_EXT,
|
|
13241
|
-
GLOB_LESS,
|
|
13242
|
-
GLOB_MARKDOWN,
|
|
13243
|
-
GLOB_MARKDOWN_CODE,
|
|
13244
|
-
GLOB_MARKDOWN_IN_MARKDOWN,
|
|
13245
|
-
GLOB_SCSS,
|
|
13246
|
-
GLOB_SRC,
|
|
13247
|
-
GLOB_SRC_EXT,
|
|
13248
|
-
GLOB_STYLE,
|
|
13249
|
-
GLOB_TESTS,
|
|
13250
|
-
GLOB_TOML,
|
|
13251
|
-
GLOB_TS,
|
|
13252
|
-
GLOB_TSCONFIG,
|
|
13253
|
-
GLOB_TSX,
|
|
13254
|
-
GLOB_YAML,
|
|
13255
13332
|
SLOW_RULES,
|
|
13333
|
+
VERSION,
|
|
13256
13334
|
changeRuleEntrySeverity,
|
|
13257
13335
|
combine,
|
|
13258
13336
|
combineAsync,
|
|
13259
13337
|
jsse as default,
|
|
13260
13338
|
defineConfig,
|
|
13261
13339
|
error2warn,
|
|
13340
|
+
globs_exports as globs,
|
|
13262
13341
|
importJsoncLibs,
|
|
13263
13342
|
importParserJsonc,
|
|
13264
13343
|
importPluginJsdoc,
|
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.26",
|
|
5
5
|
"description": "@jsse/eslint-config ~ WYSIWYG",
|
|
6
6
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"files": [
|
|
33
33
|
"!**/*.test.*",
|
|
34
34
|
"!**/*.tsbuildinfo",
|
|
35
|
+
"CHANGELOG.md",
|
|
35
36
|
"README.md",
|
|
36
37
|
"dist"
|
|
37
38
|
],
|
|
@@ -65,74 +66,75 @@
|
|
|
65
66
|
}
|
|
66
67
|
},
|
|
67
68
|
"dependencies": {
|
|
68
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.
|
|
69
|
-
"@eslint/compat": "^1.2.
|
|
70
|
-
"@eslint/js": "~9.
|
|
69
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
70
|
+
"@eslint/compat": "^1.2.3",
|
|
71
|
+
"@eslint/js": "~9.14.0",
|
|
71
72
|
"@eslint/markdown": "^6.2.1",
|
|
72
|
-
"@stylistic/eslint-plugin": "2.
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
74
|
-
"@typescript-eslint/parser": "^8.
|
|
75
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
73
|
+
"@stylistic/eslint-plugin": "2.10.1",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^8.14.0",
|
|
75
|
+
"@typescript-eslint/parser": "^8.14.0",
|
|
76
|
+
"@vitest/eslint-plugin": "^1.1.10",
|
|
76
77
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
77
78
|
"eslint-define-config": "^2.1.0",
|
|
78
79
|
"eslint-merge-processors": "^0.1.0",
|
|
79
80
|
"eslint-plugin-antfu": "^2.7.0",
|
|
80
|
-
"eslint-plugin-
|
|
81
|
-
"eslint-plugin-
|
|
82
|
-
"eslint-plugin-
|
|
83
|
-
"eslint-plugin-
|
|
81
|
+
"eslint-plugin-command": "^0.2.6",
|
|
82
|
+
"eslint-plugin-import-x": "^4.4.2",
|
|
83
|
+
"eslint-plugin-jsdoc": "^50.5.0",
|
|
84
|
+
"eslint-plugin-jsonc": "^2.18.1",
|
|
85
|
+
"eslint-plugin-n": "^17.13.1",
|
|
84
86
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
85
87
|
"eslint-plugin-perfectionist": "^3.9.1",
|
|
86
|
-
"eslint-plugin-react": "~7.37.
|
|
88
|
+
"eslint-plugin-react": "~7.37.2",
|
|
87
89
|
"eslint-plugin-react-hooks": "~5.0.0",
|
|
88
|
-
"eslint-plugin-react-refresh": "~0.4.
|
|
90
|
+
"eslint-plugin-react-refresh": "~0.4.14",
|
|
89
91
|
"eslint-plugin-toml": "^0.11.1",
|
|
90
92
|
"eslint-plugin-tsdoc": "^0.3.0",
|
|
91
93
|
"eslint-plugin-unicorn": "^56.0.0",
|
|
92
94
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
93
|
-
"eslint-plugin-yml": "^1.
|
|
95
|
+
"eslint-plugin-yml": "^1.15.0",
|
|
94
96
|
"jsonc-eslint-parser": "^2.4.0",
|
|
95
97
|
"toml-eslint-parser": "^0.10.0",
|
|
96
|
-
"typescript-eslint": "^8.
|
|
98
|
+
"typescript-eslint": "^8.14.0",
|
|
97
99
|
"yaml-eslint-parser": "^1.2.3"
|
|
98
100
|
},
|
|
99
101
|
"devDependencies": {
|
|
100
102
|
"@biomejs/biome": "1.9.4",
|
|
101
103
|
"@changesets/cli": "^2.27.9",
|
|
102
104
|
"@jsse/prettier-config": "^0.1.0",
|
|
103
|
-
"@jsse/tsconfig": "^0.2.
|
|
104
|
-
"@stylistic/eslint-plugin-jsx": "^2.
|
|
105
|
+
"@jsse/tsconfig": "^0.2.3",
|
|
106
|
+
"@stylistic/eslint-plugin-jsx": "^2.10.1",
|
|
105
107
|
"@types/eslint": "^9.6.1",
|
|
106
108
|
"@types/eslint__js": "~8.42.3",
|
|
107
109
|
"@types/fs-extra": "^11.0.4",
|
|
108
|
-
"@types/node": "^22.
|
|
110
|
+
"@types/node": "^22.9.0",
|
|
109
111
|
"cac": "^6.7.14",
|
|
110
|
-
"eslint": "^9.
|
|
112
|
+
"eslint": "^9.14.0",
|
|
111
113
|
"eslint-flat-config-utils": "^0.4.0",
|
|
112
114
|
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
113
115
|
"eslint-typegen": "^0.3.2",
|
|
114
|
-
"execa": "~9.
|
|
116
|
+
"execa": "~9.5.1",
|
|
115
117
|
"fast-glob": "^3.3.2",
|
|
116
118
|
"fs-extra": "^11.2.0",
|
|
117
|
-
"globals": "^15.
|
|
119
|
+
"globals": "^15.12.0",
|
|
118
120
|
"local-pkg": "^0.5.0",
|
|
119
|
-
"neverthrow": "^8.
|
|
121
|
+
"neverthrow": "^8.1.1",
|
|
120
122
|
"picocolors": "^1.1.1",
|
|
121
123
|
"prettier": "^3.3.3",
|
|
122
124
|
"react": "~18.3.1",
|
|
123
125
|
"rimraf": "^6.0.1",
|
|
124
|
-
"tailwindcss": "^3.4.
|
|
125
|
-
"tsup": "^8.3.
|
|
126
|
-
"tsx": "^4.19.
|
|
126
|
+
"tailwindcss": "^3.4.15",
|
|
127
|
+
"tsup": "^8.3.5",
|
|
128
|
+
"tsx": "^4.19.2",
|
|
127
129
|
"typescript": "5.6.3",
|
|
128
|
-
"vitest": "^2.1.
|
|
130
|
+
"vitest": "^2.1.5"
|
|
129
131
|
},
|
|
130
132
|
"prettier": "@jsse/prettier-config",
|
|
131
133
|
"scripts": {
|
|
132
134
|
"build": "pnpm gen && pnpm build-fast --dts && pnpm build:tsc && eslint .",
|
|
133
135
|
"build:tsc": "tsc -b tsconfig.build.json",
|
|
134
136
|
"build-fast": "tsup src/index.ts src/cli.ts --format esm,cjs --clean",
|
|
135
|
-
"gen": "tsx scripts/gen.ts && prettier -w src",
|
|
137
|
+
"gen": "tsx scripts/gen.ts && prettier -w --cache src",
|
|
136
138
|
"dev": "tsup src/index.ts --format esm,cjs --watch",
|
|
137
139
|
"fmt": "prettier -w .",
|
|
138
140
|
"fmtc": "prettier --check .",
|