@jsse/eslint-config 0.2.33 → 0.3.0
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 +11 -0
- package/dist/cli.js +1 -1
- package/dist/esm/configs/unicorn.js +2 -3
- package/dist/esm/fixable.js +4 -1
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/plugins.d.ts +14 -1
- package/dist/esm/plugins.js +6 -0
- package/dist/esm/types.d.ts +1 -0
- package/dist/index.d.ts +179 -213
- package/dist/index.js +216 -29
- package/package.json +24 -26
- package/dist/cli.cjs +0 -723
- package/dist/cli.d.cts +0 -2
- package/dist/index.cjs +0 -13570
- package/dist/index.d.cts +0 -25888
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@
|
|
31
|
+
// node_modules/.pnpm/globals@16.0.0/node_modules/globals/globals.json
|
|
32
32
|
var require_globals = __commonJS({
|
|
33
|
-
"node_modules/.pnpm/globals@
|
|
33
|
+
"node_modules/.pnpm/globals@16.0.0/node_modules/globals/globals.json"(exports, module) {
|
|
34
34
|
module.exports = {
|
|
35
35
|
amd: {
|
|
36
36
|
define: false,
|
|
@@ -2467,9 +2467,17 @@ var require_globals = __commonJS({
|
|
|
2467
2467
|
version: false
|
|
2468
2468
|
},
|
|
2469
2469
|
serviceworker: {
|
|
2470
|
+
AbortController: false,
|
|
2471
|
+
AbortPaymentEvent: false,
|
|
2472
|
+
AbortSignal: false,
|
|
2470
2473
|
addEventListener: false,
|
|
2471
|
-
applicationCache: false,
|
|
2472
2474
|
atob: false,
|
|
2475
|
+
BackgroundFetchEvent: false,
|
|
2476
|
+
BackgroundFetchManager: false,
|
|
2477
|
+
BackgroundFetchRecord: false,
|
|
2478
|
+
BackgroundFetchRegistration: false,
|
|
2479
|
+
BackgroundFetchUpdateUIEvent: false,
|
|
2480
|
+
BarcodeDetector: false,
|
|
2473
2481
|
Blob: false,
|
|
2474
2482
|
BroadcastChannel: false,
|
|
2475
2483
|
btoa: false,
|
|
@@ -2477,29 +2485,100 @@ var require_globals = __commonJS({
|
|
|
2477
2485
|
Cache: false,
|
|
2478
2486
|
caches: false,
|
|
2479
2487
|
CacheStorage: false,
|
|
2488
|
+
CanMakePaymentEvent: false,
|
|
2489
|
+
CanvasGradient: false,
|
|
2490
|
+
CanvasPattern: false,
|
|
2480
2491
|
clearInterval: false,
|
|
2481
2492
|
clearTimeout: false,
|
|
2482
2493
|
Client: false,
|
|
2483
2494
|
clients: false,
|
|
2484
2495
|
Clients: false,
|
|
2485
|
-
|
|
2496
|
+
CloseEvent: false,
|
|
2486
2497
|
CompressionStream: false,
|
|
2487
2498
|
console: false,
|
|
2499
|
+
cookieStore: false,
|
|
2500
|
+
CookieStore: false,
|
|
2501
|
+
CookieStoreManager: false,
|
|
2488
2502
|
CountQueuingStrategy: false,
|
|
2503
|
+
createImageBitmap: false,
|
|
2504
|
+
CropTarget: false,
|
|
2505
|
+
crossOriginIsolated: false,
|
|
2489
2506
|
crypto: false,
|
|
2490
2507
|
Crypto: false,
|
|
2491
2508
|
CryptoKey: false,
|
|
2509
|
+
CSSSkewX: false,
|
|
2510
|
+
CSSSkewY: false,
|
|
2492
2511
|
CustomEvent: false,
|
|
2493
2512
|
DecompressionStream: false,
|
|
2513
|
+
dispatchEvent: false,
|
|
2514
|
+
DOMException: false,
|
|
2515
|
+
DOMMatrix: false,
|
|
2516
|
+
DOMMatrixReadOnly: false,
|
|
2517
|
+
DOMPoint: false,
|
|
2518
|
+
DOMPointReadOnly: false,
|
|
2519
|
+
DOMQuad: false,
|
|
2520
|
+
DOMRect: false,
|
|
2521
|
+
DOMRectReadOnly: false,
|
|
2522
|
+
DOMStringList: false,
|
|
2494
2523
|
ErrorEvent: false,
|
|
2495
2524
|
Event: false,
|
|
2525
|
+
EventSource: false,
|
|
2526
|
+
EventTarget: false,
|
|
2527
|
+
ExtendableCookieChangeEvent: false,
|
|
2496
2528
|
ExtendableEvent: false,
|
|
2497
2529
|
ExtendableMessageEvent: false,
|
|
2498
2530
|
fetch: false,
|
|
2499
2531
|
FetchEvent: false,
|
|
2500
2532
|
File: false,
|
|
2501
|
-
|
|
2533
|
+
FileList: false,
|
|
2534
|
+
FileReader: false,
|
|
2535
|
+
FileSystemDirectoryHandle: false,
|
|
2536
|
+
FileSystemFileHandle: false,
|
|
2537
|
+
FileSystemHandle: false,
|
|
2538
|
+
FileSystemWritableFileStream: false,
|
|
2539
|
+
FontFace: false,
|
|
2540
|
+
fonts: false,
|
|
2502
2541
|
FormData: false,
|
|
2542
|
+
GPU: false,
|
|
2543
|
+
GPUAdapter: false,
|
|
2544
|
+
GPUAdapterInfo: false,
|
|
2545
|
+
GPUBindGroup: false,
|
|
2546
|
+
GPUBindGroupLayout: false,
|
|
2547
|
+
GPUBuffer: false,
|
|
2548
|
+
GPUBufferUsage: false,
|
|
2549
|
+
GPUCanvasContext: false,
|
|
2550
|
+
GPUColorWrite: false,
|
|
2551
|
+
GPUCommandBuffer: false,
|
|
2552
|
+
GPUCommandEncoder: false,
|
|
2553
|
+
GPUCompilationInfo: false,
|
|
2554
|
+
GPUCompilationMessage: false,
|
|
2555
|
+
GPUComputePassEncoder: false,
|
|
2556
|
+
GPUComputePipeline: false,
|
|
2557
|
+
GPUDevice: false,
|
|
2558
|
+
GPUDeviceLostInfo: false,
|
|
2559
|
+
GPUError: false,
|
|
2560
|
+
GPUExternalTexture: false,
|
|
2561
|
+
GPUInternalError: false,
|
|
2562
|
+
GPUMapMode: false,
|
|
2563
|
+
GPUOutOfMemoryError: false,
|
|
2564
|
+
GPUPipelineError: false,
|
|
2565
|
+
GPUPipelineLayout: false,
|
|
2566
|
+
GPUQuerySet: false,
|
|
2567
|
+
GPUQueue: false,
|
|
2568
|
+
GPURenderBundle: false,
|
|
2569
|
+
GPURenderBundleEncoder: false,
|
|
2570
|
+
GPURenderPassEncoder: false,
|
|
2571
|
+
GPURenderPipeline: false,
|
|
2572
|
+
GPUSampler: false,
|
|
2573
|
+
GPUShaderModule: false,
|
|
2574
|
+
GPUShaderStage: false,
|
|
2575
|
+
GPUSupportedFeatures: false,
|
|
2576
|
+
GPUSupportedLimits: false,
|
|
2577
|
+
GPUTexture: false,
|
|
2578
|
+
GPUTextureUsage: false,
|
|
2579
|
+
GPUTextureView: false,
|
|
2580
|
+
GPUUncapturedErrorEvent: false,
|
|
2581
|
+
GPUValidationError: false,
|
|
2503
2582
|
Headers: false,
|
|
2504
2583
|
IDBCursor: false,
|
|
2505
2584
|
IDBCursorWithValue: false,
|
|
@@ -2512,18 +2591,36 @@ var require_globals = __commonJS({
|
|
|
2512
2591
|
IDBRequest: false,
|
|
2513
2592
|
IDBTransaction: false,
|
|
2514
2593
|
IDBVersionChangeEvent: false,
|
|
2594
|
+
ImageBitmap: false,
|
|
2595
|
+
ImageBitmapRenderingContext: false,
|
|
2515
2596
|
ImageData: false,
|
|
2516
2597
|
importScripts: false,
|
|
2517
2598
|
indexedDB: false,
|
|
2599
|
+
InstallEvent: false,
|
|
2600
|
+
isSecureContext: false,
|
|
2518
2601
|
location: false,
|
|
2602
|
+
Lock: false,
|
|
2603
|
+
LockManager: false,
|
|
2604
|
+
MediaCapabilities: false,
|
|
2519
2605
|
MessageChannel: false,
|
|
2520
2606
|
MessageEvent: false,
|
|
2521
2607
|
MessagePort: false,
|
|
2522
|
-
|
|
2608
|
+
NavigationPreloadManager: false,
|
|
2523
2609
|
navigator: false,
|
|
2610
|
+
NavigatorUAData: false,
|
|
2611
|
+
NetworkInformation: false,
|
|
2524
2612
|
Notification: false,
|
|
2525
|
-
|
|
2526
|
-
|
|
2613
|
+
NotificationEvent: false,
|
|
2614
|
+
OffscreenCanvas: false,
|
|
2615
|
+
OffscreenCanvasRenderingContext2D: false,
|
|
2616
|
+
onabortpayment: true,
|
|
2617
|
+
onactivate: true,
|
|
2618
|
+
onbackgroundfetchabort: true,
|
|
2619
|
+
onbackgroundfetchclick: true,
|
|
2620
|
+
onbackgroundfetchfail: true,
|
|
2621
|
+
onbackgroundfetchsuccess: true,
|
|
2622
|
+
oncanmakepayment: true,
|
|
2623
|
+
oncookiechange: true,
|
|
2527
2624
|
onerror: true,
|
|
2528
2625
|
onfetch: true,
|
|
2529
2626
|
oninstall: true,
|
|
@@ -2532,24 +2629,35 @@ var require_globals = __commonJS({
|
|
|
2532
2629
|
onmessageerror: true,
|
|
2533
2630
|
onnotificationclick: true,
|
|
2534
2631
|
onnotificationclose: true,
|
|
2535
|
-
|
|
2536
|
-
|
|
2632
|
+
onpaymentrequest: true,
|
|
2633
|
+
onperiodicsync: true,
|
|
2537
2634
|
onpush: true,
|
|
2538
2635
|
onpushsubscriptionchange: true,
|
|
2539
2636
|
onrejectionhandled: true,
|
|
2540
2637
|
onsync: true,
|
|
2541
2638
|
onunhandledrejection: true,
|
|
2639
|
+
origin: false,
|
|
2640
|
+
Path2D: false,
|
|
2641
|
+
PaymentRequestEvent: false,
|
|
2542
2642
|
performance: false,
|
|
2543
2643
|
Performance: false,
|
|
2544
2644
|
PerformanceEntry: false,
|
|
2545
2645
|
PerformanceMark: false,
|
|
2546
2646
|
PerformanceMeasure: false,
|
|
2547
|
-
PerformanceNavigation: false,
|
|
2548
2647
|
PerformanceObserver: false,
|
|
2549
2648
|
PerformanceObserverEntryList: false,
|
|
2550
2649
|
PerformanceResourceTiming: false,
|
|
2551
|
-
|
|
2552
|
-
|
|
2650
|
+
PerformanceServerTiming: false,
|
|
2651
|
+
PeriodicSyncEvent: false,
|
|
2652
|
+
PeriodicSyncManager: false,
|
|
2653
|
+
Permissions: false,
|
|
2654
|
+
PermissionStatus: false,
|
|
2655
|
+
PromiseRejectionEvent: false,
|
|
2656
|
+
PushEvent: false,
|
|
2657
|
+
PushManager: false,
|
|
2658
|
+
PushMessageData: false,
|
|
2659
|
+
PushSubscription: false,
|
|
2660
|
+
PushSubscriptionOptions: false,
|
|
2553
2661
|
queueMicrotask: false,
|
|
2554
2662
|
ReadableByteStreamController: false,
|
|
2555
2663
|
ReadableStream: false,
|
|
@@ -2559,35 +2667,82 @@ var require_globals = __commonJS({
|
|
|
2559
2667
|
ReadableStreamDefaultReader: false,
|
|
2560
2668
|
registration: false,
|
|
2561
2669
|
removeEventListener: false,
|
|
2670
|
+
reportError: false,
|
|
2671
|
+
ReportingObserver: false,
|
|
2562
2672
|
Request: false,
|
|
2563
2673
|
Response: false,
|
|
2674
|
+
scheduler: false,
|
|
2675
|
+
Scheduler: false,
|
|
2676
|
+
SecurityPolicyViolationEvent: false,
|
|
2564
2677
|
self: false,
|
|
2678
|
+
serviceWorker: false,
|
|
2565
2679
|
ServiceWorker: false,
|
|
2566
|
-
ServiceWorkerContainer: false,
|
|
2567
2680
|
ServiceWorkerGlobalScope: false,
|
|
2568
|
-
ServiceWorkerMessageEvent: false,
|
|
2569
2681
|
ServiceWorkerRegistration: false,
|
|
2570
2682
|
setInterval: false,
|
|
2571
2683
|
setTimeout: false,
|
|
2572
2684
|
skipWaiting: false,
|
|
2685
|
+
StorageBucket: false,
|
|
2686
|
+
StorageBucketManager: false,
|
|
2687
|
+
StorageManager: false,
|
|
2688
|
+
structuredClone: false,
|
|
2573
2689
|
SubtleCrypto: false,
|
|
2690
|
+
SyncEvent: false,
|
|
2691
|
+
SyncManager: false,
|
|
2692
|
+
TaskController: false,
|
|
2693
|
+
TaskPriorityChangeEvent: false,
|
|
2694
|
+
TaskSignal: false,
|
|
2574
2695
|
TextDecoder: false,
|
|
2575
2696
|
TextDecoderStream: false,
|
|
2576
2697
|
TextEncoder: false,
|
|
2577
2698
|
TextEncoderStream: false,
|
|
2699
|
+
TextMetrics: false,
|
|
2578
2700
|
TransformStream: false,
|
|
2579
2701
|
TransformStreamDefaultController: false,
|
|
2702
|
+
TrustedHTML: false,
|
|
2703
|
+
TrustedScript: false,
|
|
2704
|
+
TrustedScriptURL: false,
|
|
2705
|
+
TrustedTypePolicy: false,
|
|
2706
|
+
TrustedTypePolicyFactory: false,
|
|
2707
|
+
trustedTypes: false,
|
|
2580
2708
|
URL: false,
|
|
2709
|
+
URLPattern: false,
|
|
2581
2710
|
URLSearchParams: false,
|
|
2711
|
+
UserActivation: false,
|
|
2582
2712
|
WebAssembly: false,
|
|
2713
|
+
WebGL2RenderingContext: false,
|
|
2714
|
+
WebGLActiveInfo: false,
|
|
2715
|
+
WebGLBuffer: false,
|
|
2716
|
+
WebGLContextEvent: false,
|
|
2717
|
+
WebGLFramebuffer: false,
|
|
2718
|
+
WebGLObject: false,
|
|
2719
|
+
WebGLProgram: false,
|
|
2720
|
+
WebGLQuery: false,
|
|
2721
|
+
WebGLRenderbuffer: false,
|
|
2722
|
+
WebGLRenderingContext: false,
|
|
2723
|
+
WebGLSampler: false,
|
|
2724
|
+
WebGLShader: false,
|
|
2725
|
+
WebGLShaderPrecisionFormat: false,
|
|
2726
|
+
WebGLSync: false,
|
|
2727
|
+
WebGLTexture: false,
|
|
2728
|
+
WebGLTransformFeedback: false,
|
|
2729
|
+
WebGLUniformLocation: false,
|
|
2730
|
+
WebGLVertexArrayObject: false,
|
|
2583
2731
|
WebSocket: false,
|
|
2732
|
+
WebSocketError: false,
|
|
2733
|
+
WebSocketStream: false,
|
|
2734
|
+
WebTransport: false,
|
|
2735
|
+
WebTransportBidirectionalStream: false,
|
|
2736
|
+
WebTransportDatagramDuplexStream: false,
|
|
2737
|
+
WebTransportError: false,
|
|
2738
|
+
WGSLLanguageFeatures: false,
|
|
2584
2739
|
WindowClient: false,
|
|
2585
|
-
Worker: false,
|
|
2586
2740
|
WorkerGlobalScope: false,
|
|
2741
|
+
WorkerLocation: false,
|
|
2742
|
+
WorkerNavigator: false,
|
|
2587
2743
|
WritableStream: false,
|
|
2588
2744
|
WritableStreamDefaultController: false,
|
|
2589
|
-
WritableStreamDefaultWriter: false
|
|
2590
|
-
XMLHttpRequest: false
|
|
2745
|
+
WritableStreamDefaultWriter: false
|
|
2591
2746
|
},
|
|
2592
2747
|
"shared-node-browser": {
|
|
2593
2748
|
AbortController: false,
|
|
@@ -3033,9 +3188,9 @@ var require_globals = __commonJS({
|
|
|
3033
3188
|
}
|
|
3034
3189
|
});
|
|
3035
3190
|
|
|
3036
|
-
// node_modules/.pnpm/globals@
|
|
3191
|
+
// node_modules/.pnpm/globals@16.0.0/node_modules/globals/index.js
|
|
3037
3192
|
var require_globals2 = __commonJS({
|
|
3038
|
-
"node_modules/.pnpm/globals@
|
|
3193
|
+
"node_modules/.pnpm/globals@16.0.0/node_modules/globals/index.js"(exports, module) {
|
|
3039
3194
|
"use strict";
|
|
3040
3195
|
module.exports = require_globals();
|
|
3041
3196
|
}
|
|
@@ -8652,7 +8807,7 @@ function joinURL(base, ...input) {
|
|
|
8652
8807
|
}
|
|
8653
8808
|
var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
8654
8809
|
|
|
8655
|
-
// node_modules/.pnpm/pathe@2.0.
|
|
8810
|
+
// node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
8656
8811
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
8657
8812
|
var isAbsolute = function(p) {
|
|
8658
8813
|
return _IS_ABSOLUTE_RE.test(p);
|
|
@@ -10043,7 +10198,7 @@ function resolvePackage(name, options = {}) {
|
|
|
10043
10198
|
}
|
|
10044
10199
|
}
|
|
10045
10200
|
|
|
10046
|
-
// node_modules/.pnpm/neverthrow@8.
|
|
10201
|
+
// node_modules/.pnpm/neverthrow@8.2.0/node_modules/neverthrow/dist/index.es.js
|
|
10047
10202
|
var defaultErrorConfig = {
|
|
10048
10203
|
withStackTrace: false
|
|
10049
10204
|
};
|
|
@@ -10232,6 +10387,18 @@ var ResultAsync = class _ResultAsync {
|
|
|
10232
10387
|
return new Ok(res.value);
|
|
10233
10388
|
})));
|
|
10234
10389
|
}
|
|
10390
|
+
orTee(f) {
|
|
10391
|
+
return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
10392
|
+
if (res.isOk()) {
|
|
10393
|
+
return new Ok(res.value);
|
|
10394
|
+
}
|
|
10395
|
+
try {
|
|
10396
|
+
yield f(res.error);
|
|
10397
|
+
} catch (e) {
|
|
10398
|
+
}
|
|
10399
|
+
return new Err(res.error);
|
|
10400
|
+
})));
|
|
10401
|
+
}
|
|
10235
10402
|
mapErr(f) {
|
|
10236
10403
|
return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
10237
10404
|
if (res.isOk()) {
|
|
@@ -10296,7 +10463,9 @@ var ResultAsync = class _ResultAsync {
|
|
|
10296
10463
|
});
|
|
10297
10464
|
}
|
|
10298
10465
|
};
|
|
10299
|
-
|
|
10466
|
+
function errAsync(err2) {
|
|
10467
|
+
return new ResultAsync(Promise.resolve(new Err(err2)));
|
|
10468
|
+
}
|
|
10300
10469
|
var fromPromise = ResultAsync.fromPromise;
|
|
10301
10470
|
var fromSafePromise = ResultAsync.fromSafePromise;
|
|
10302
10471
|
var fromAsyncThrowable = ResultAsync.fromThrowable;
|
|
@@ -10349,7 +10518,9 @@ var Result;
|
|
|
10349
10518
|
}
|
|
10350
10519
|
Result2.combineWithAllErrors = combineWithAllErrors;
|
|
10351
10520
|
})(Result || (Result = {}));
|
|
10352
|
-
|
|
10521
|
+
function ok(value) {
|
|
10522
|
+
return new Ok(value);
|
|
10523
|
+
}
|
|
10353
10524
|
function err(err2) {
|
|
10354
10525
|
return new Err(err2);
|
|
10355
10526
|
}
|
|
@@ -10385,6 +10556,9 @@ var Ok = class {
|
|
|
10385
10556
|
}
|
|
10386
10557
|
return ok(this.value);
|
|
10387
10558
|
}
|
|
10559
|
+
orTee(_f) {
|
|
10560
|
+
return ok(this.value);
|
|
10561
|
+
}
|
|
10388
10562
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10389
10563
|
orElse(_f) {
|
|
10390
10564
|
return ok(this.value);
|
|
@@ -10447,6 +10621,13 @@ var Err = class {
|
|
|
10447
10621
|
andTee(_f) {
|
|
10448
10622
|
return err(this.error);
|
|
10449
10623
|
}
|
|
10624
|
+
orTee(f) {
|
|
10625
|
+
try {
|
|
10626
|
+
f(this.error);
|
|
10627
|
+
} catch (e) {
|
|
10628
|
+
}
|
|
10629
|
+
return err(this.error);
|
|
10630
|
+
}
|
|
10450
10631
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10451
10632
|
andThen(_f) {
|
|
10452
10633
|
return err(this.error);
|
|
@@ -10726,6 +10907,12 @@ import { default as default5 } from "eslint-plugin-n";
|
|
|
10726
10907
|
import { default as default6 } from "eslint-plugin-perfectionist";
|
|
10727
10908
|
import { default as default7 } from "eslint-plugin-unicorn";
|
|
10728
10909
|
import { default as default8 } from "eslint-plugin-unused-imports";
|
|
10910
|
+
async function importPluginUnicorn() {
|
|
10911
|
+
const pluginUnicorn = await interopDefault2(import("eslint-plugin-unicorn"));
|
|
10912
|
+
return {
|
|
10913
|
+
pluginUnicorn
|
|
10914
|
+
};
|
|
10915
|
+
}
|
|
10729
10916
|
async function importPluginReact() {
|
|
10730
10917
|
const pluginReact = await interopDefault2(import("eslint-plugin-react"));
|
|
10731
10918
|
return {
|
|
@@ -13011,8 +13198,8 @@ function unicornOff() {
|
|
|
13011
13198
|
// Super insanely annoying rule
|
|
13012
13199
|
};
|
|
13013
13200
|
}
|
|
13014
|
-
function unicornRecommended() {
|
|
13015
|
-
const rules =
|
|
13201
|
+
function unicornRecommended(pluginUnicorn) {
|
|
13202
|
+
const rules = pluginUnicorn.configs.recommended.rules;
|
|
13016
13203
|
if (rules === void 0) {
|
|
13017
13204
|
throw new Error("Expected rules to be defined in unicorn plugin");
|
|
13018
13205
|
}
|
|
@@ -13027,7 +13214,7 @@ var unicorn = async () => {
|
|
|
13027
13214
|
unicorn: default7
|
|
13028
13215
|
},
|
|
13029
13216
|
rules: {
|
|
13030
|
-
...unicornRecommended(),
|
|
13217
|
+
...unicornRecommended(default7),
|
|
13031
13218
|
...unicornOff(),
|
|
13032
13219
|
"unicorn/better-regex": "error",
|
|
13033
13220
|
"unicorn/consistent-empty-array-spread": "error",
|
|
@@ -13057,7 +13244,6 @@ var unicorn = async () => {
|
|
|
13057
13244
|
"unicorn/no-static-only-class": "error",
|
|
13058
13245
|
"unicorn/no-unnecessary-await": "error",
|
|
13059
13246
|
// Keep regex literals safe!
|
|
13060
|
-
"unicorn/no-unsafe-regex": "error",
|
|
13061
13247
|
"unicorn/no-zero-fractions": "error",
|
|
13062
13248
|
// Lowercase number formatting for octal, hex, binary (0x1ERROR instead of 0X1'error')
|
|
13063
13249
|
"unicorn/number-literal-case": "error",
|
|
@@ -13453,7 +13639,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
13453
13639
|
}
|
|
13454
13640
|
|
|
13455
13641
|
// src/generated/version.ts
|
|
13456
|
-
var VERSION = "0.
|
|
13642
|
+
var VERSION = "0.3.0";
|
|
13457
13643
|
|
|
13458
13644
|
// src/presets.ts
|
|
13459
13645
|
var jsseReact = (options, ...configs) => {
|
|
@@ -13491,6 +13677,7 @@ export {
|
|
|
13491
13677
|
importPluginStylistic,
|
|
13492
13678
|
importPluginTailwind,
|
|
13493
13679
|
importPluginTsdoc,
|
|
13680
|
+
importPluginUnicorn,
|
|
13494
13681
|
importReactPlugins,
|
|
13495
13682
|
importYmlLibs,
|
|
13496
13683
|
interopDefault2 as interopDefault,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsse/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "@jsse/eslint-config ~ WYSIWYG",
|
|
6
6
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
|
-
"import": "./dist/index.js"
|
|
21
|
-
"require": "./dist/index.cjs"
|
|
20
|
+
"import": "./dist/index.js"
|
|
22
21
|
},
|
|
23
22
|
"./package.json": "./package.json",
|
|
24
23
|
"./dist/*": "./dist/*",
|
|
@@ -67,14 +66,14 @@
|
|
|
67
66
|
},
|
|
68
67
|
"dependencies": {
|
|
69
68
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
70
|
-
"@eslint/compat": "^1.2.
|
|
71
|
-
"@eslint/js": "~9.
|
|
69
|
+
"@eslint/compat": "^1.2.7",
|
|
70
|
+
"@eslint/js": "~9.21.0",
|
|
72
71
|
"@eslint/markdown": "^6.2.2",
|
|
73
|
-
"@stylistic/eslint-plugin": "
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
75
|
-
"@typescript-eslint/parser": "^8.
|
|
72
|
+
"@stylistic/eslint-plugin": "4.0.1",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^8.25.0",
|
|
74
|
+
"@typescript-eslint/parser": "^8.25.0",
|
|
76
75
|
"@vitest/eslint-plugin": "^1.1.31",
|
|
77
|
-
"eslint-config-flat-gitignore": "^2.
|
|
76
|
+
"eslint-config-flat-gitignore": "^2.1.0",
|
|
78
77
|
"eslint-define-config": "^2.1.0",
|
|
79
78
|
"eslint-merge-processors": "^2.0.0",
|
|
80
79
|
"eslint-plugin-antfu": "^3.1.0",
|
|
@@ -90,50 +89,49 @@
|
|
|
90
89
|
"eslint-plugin-react-refresh": "~0.4.19",
|
|
91
90
|
"eslint-plugin-toml": "^0.12.0",
|
|
92
91
|
"eslint-plugin-tsdoc": "^0.4.0",
|
|
93
|
-
"eslint-plugin-unicorn": "^
|
|
92
|
+
"eslint-plugin-unicorn": "^57.0.0",
|
|
94
93
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
95
|
-
"eslint-plugin-yml": "^1.
|
|
94
|
+
"eslint-plugin-yml": "^1.17.0",
|
|
96
95
|
"jsonc-eslint-parser": "^2.4.0",
|
|
97
96
|
"toml-eslint-parser": "^0.10.0",
|
|
98
|
-
"typescript-eslint": "^8.
|
|
97
|
+
"typescript-eslint": "^8.25.0",
|
|
99
98
|
"yaml-eslint-parser": "^1.2.3"
|
|
100
99
|
},
|
|
101
100
|
"devDependencies": {
|
|
102
101
|
"@biomejs/biome": "1.9.4",
|
|
103
|
-
"@changesets/cli": "^2.28.
|
|
102
|
+
"@changesets/cli": "^2.28.1",
|
|
104
103
|
"@jsse/prettier-config": "^0.1.0",
|
|
105
|
-
"@jsse/tsconfig": "^0.2.
|
|
106
|
-
"@stylistic/eslint-plugin-jsx": "^
|
|
104
|
+
"@jsse/tsconfig": "^0.2.4",
|
|
105
|
+
"@stylistic/eslint-plugin-jsx": "^4.0.1",
|
|
107
106
|
"@types/eslint": "^9.6.1",
|
|
108
|
-
"@types/eslint__js": "~8.42.3",
|
|
109
107
|
"@types/fs-extra": "^11.0.4",
|
|
110
|
-
"@types/node": "^22.13.
|
|
108
|
+
"@types/node": "^22.13.5",
|
|
111
109
|
"cac": "^6.7.14",
|
|
112
|
-
"eslint": "^9.
|
|
110
|
+
"eslint": "^9.21.0",
|
|
113
111
|
"eslint-flat-config-utils": "^2.0.1",
|
|
114
112
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
115
|
-
"eslint-typegen": "^
|
|
116
|
-
"execa": "~9.5.
|
|
113
|
+
"eslint-typegen": "^2.0.0",
|
|
114
|
+
"execa": "~9.5.2",
|
|
117
115
|
"fast-glob": "^3.3.3",
|
|
118
116
|
"fs-extra": "^11.3.0",
|
|
119
|
-
"globals": "^
|
|
117
|
+
"globals": "^16.0.0",
|
|
120
118
|
"local-pkg": "^1.0.0",
|
|
121
|
-
"neverthrow": "^8.
|
|
119
|
+
"neverthrow": "^8.2.0",
|
|
122
120
|
"picocolors": "^1.1.1",
|
|
123
|
-
"prettier": "^3.5.
|
|
121
|
+
"prettier": "^3.5.2",
|
|
124
122
|
"react": "~19.0.0",
|
|
125
123
|
"rimraf": "^6.0.1",
|
|
126
124
|
"tailwindcss": "^3.4.17",
|
|
127
125
|
"tsup": "^8.3.6",
|
|
128
|
-
"tsx": "^4.19.
|
|
126
|
+
"tsx": "^4.19.3",
|
|
129
127
|
"typescript": "5.7.3",
|
|
130
|
-
"vitest": "^3.0.
|
|
128
|
+
"vitest": "^3.0.7"
|
|
131
129
|
},
|
|
132
130
|
"prettier": "@jsse/prettier-config",
|
|
133
131
|
"scripts": {
|
|
134
132
|
"build": "pnpm gen && pnpm build-fast --dts && pnpm build:tsc && eslint .",
|
|
135
133
|
"build:tsc": "tsc -b tsconfig.build.json",
|
|
136
|
-
"build-fast": "tsup src/index.ts src/cli.ts --format esm
|
|
134
|
+
"build-fast": "tsup src/index.ts src/cli.ts --format esm --clean",
|
|
137
135
|
"gen": "tsx scripts/gen.ts && prettier -w --cache src",
|
|
138
136
|
"dev": "tsup src/index.ts --format esm,cjs --watch",
|
|
139
137
|
"fmt": "prettier -w .",
|