@jsse/eslint-config 0.2.33 → 0.3.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 +17 -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 +16 -3
- package/dist/esm/plugins.js +7 -4
- package/dist/esm/types.d.ts +1 -0
- package/dist/index.d.ts +672 -329
- package/dist/index.js +461 -62
- package/package.json +35 -37
- 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
|
}
|
|
@@ -3066,15 +3221,18 @@ var SLOW_RULES = [
|
|
|
3066
3221
|
];
|
|
3067
3222
|
|
|
3068
3223
|
// src/define-config.ts
|
|
3069
|
-
import
|
|
3224
|
+
import fs3 from "node:fs";
|
|
3070
3225
|
import process6 from "node:process";
|
|
3071
3226
|
|
|
3072
|
-
// node_modules/.pnpm/local-pkg@1.
|
|
3227
|
+
// node_modules/.pnpm/local-pkg@1.1.1/node_modules/local-pkg/dist/index.mjs
|
|
3228
|
+
import fs2 from "node:fs";
|
|
3073
3229
|
import { createRequire as createRequire2 } from "node:module";
|
|
3074
|
-
import path2, { dirname as dirname3,
|
|
3230
|
+
import path2, { dirname as dirname3, join as join2, win32 } from "node:path";
|
|
3075
3231
|
import process2 from "node:process";
|
|
3232
|
+
import fsPromises from "node:fs/promises";
|
|
3233
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
3076
3234
|
|
|
3077
|
-
// node_modules/.pnpm/acorn@8.14.
|
|
3235
|
+
// node_modules/.pnpm/acorn@8.14.1/node_modules/acorn/dist/acorn.mjs
|
|
3078
3236
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
3079
3237
|
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
3080
3238
|
var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
|
|
@@ -3494,6 +3652,7 @@ var SCOPE_SIMPLE_CATCH = 32;
|
|
|
3494
3652
|
var SCOPE_SUPER = 64;
|
|
3495
3653
|
var SCOPE_DIRECT_SUPER = 128;
|
|
3496
3654
|
var SCOPE_CLASS_STATIC_BLOCK = 256;
|
|
3655
|
+
var SCOPE_CLASS_FIELD_INIT = 512;
|
|
3497
3656
|
var SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
3498
3657
|
function functionFlags(async, generator) {
|
|
3499
3658
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
|
|
@@ -3562,19 +3721,20 @@ prototypeAccessors.inFunction.get = function() {
|
|
|
3562
3721
|
return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0;
|
|
3563
3722
|
};
|
|
3564
3723
|
prototypeAccessors.inGenerator.get = function() {
|
|
3565
|
-
return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0
|
|
3724
|
+
return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0;
|
|
3566
3725
|
};
|
|
3567
3726
|
prototypeAccessors.inAsync.get = function() {
|
|
3568
|
-
return (this.currentVarScope().flags & SCOPE_ASYNC) > 0
|
|
3727
|
+
return (this.currentVarScope().flags & SCOPE_ASYNC) > 0;
|
|
3569
3728
|
};
|
|
3570
3729
|
prototypeAccessors.canAwait.get = function() {
|
|
3571
3730
|
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
3572
|
-
var
|
|
3573
|
-
|
|
3731
|
+
var ref2 = this.scopeStack[i];
|
|
3732
|
+
var flags = ref2.flags;
|
|
3733
|
+
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT)) {
|
|
3574
3734
|
return false;
|
|
3575
3735
|
}
|
|
3576
|
-
if (
|
|
3577
|
-
return (
|
|
3736
|
+
if (flags & SCOPE_FUNCTION) {
|
|
3737
|
+
return (flags & SCOPE_ASYNC) > 0;
|
|
3578
3738
|
}
|
|
3579
3739
|
}
|
|
3580
3740
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
@@ -3582,8 +3742,7 @@ prototypeAccessors.canAwait.get = function() {
|
|
|
3582
3742
|
prototypeAccessors.allowSuper.get = function() {
|
|
3583
3743
|
var ref2 = this.currentThisScope();
|
|
3584
3744
|
var flags = ref2.flags;
|
|
3585
|
-
|
|
3586
|
-
return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod;
|
|
3745
|
+
return (flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod;
|
|
3587
3746
|
};
|
|
3588
3747
|
prototypeAccessors.allowDirectSuper.get = function() {
|
|
3589
3748
|
return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0;
|
|
@@ -3592,10 +3751,14 @@ prototypeAccessors.treatFunctionsAsVar.get = function() {
|
|
|
3592
3751
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
3593
3752
|
};
|
|
3594
3753
|
prototypeAccessors.allowNewDotTarget.get = function() {
|
|
3595
|
-
var
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3754
|
+
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
3755
|
+
var ref2 = this.scopeStack[i];
|
|
3756
|
+
var flags = ref2.flags;
|
|
3757
|
+
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) || flags & SCOPE_FUNCTION && !(flags & SCOPE_ARROW)) {
|
|
3758
|
+
return true;
|
|
3759
|
+
}
|
|
3760
|
+
}
|
|
3761
|
+
return false;
|
|
3599
3762
|
};
|
|
3600
3763
|
prototypeAccessors.inClassStaticBlock.get = function() {
|
|
3601
3764
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
|
|
@@ -4438,11 +4601,9 @@ pp$8.parseClassField = function(field) {
|
|
|
4438
4601
|
this.raise(field.key.start, "Classes can't have a static field named 'prototype'");
|
|
4439
4602
|
}
|
|
4440
4603
|
if (this.eat(types$1.eq)) {
|
|
4441
|
-
|
|
4442
|
-
var inClassFieldInit = scope.inClassFieldInit;
|
|
4443
|
-
scope.inClassFieldInit = true;
|
|
4604
|
+
this.enterScope(SCOPE_CLASS_FIELD_INIT | SCOPE_SUPER);
|
|
4444
4605
|
field.value = this.parseMaybeAssign();
|
|
4445
|
-
|
|
4606
|
+
this.exitScope();
|
|
4446
4607
|
} else {
|
|
4447
4608
|
field.value = null;
|
|
4448
4609
|
}
|
|
@@ -4565,6 +4726,9 @@ pp$8.parseExport = function(node, exports) {
|
|
|
4565
4726
|
}
|
|
4566
4727
|
node.specifiers = [];
|
|
4567
4728
|
node.source = null;
|
|
4729
|
+
if (this.options.ecmaVersion >= 16) {
|
|
4730
|
+
node.attributes = [];
|
|
4731
|
+
}
|
|
4568
4732
|
} else {
|
|
4569
4733
|
node.declaration = null;
|
|
4570
4734
|
node.specifiers = this.parseExportSpecifiers(exports);
|
|
@@ -4586,6 +4750,9 @@ pp$8.parseExport = function(node, exports) {
|
|
|
4586
4750
|
}
|
|
4587
4751
|
}
|
|
4588
4752
|
node.source = null;
|
|
4753
|
+
if (this.options.ecmaVersion >= 16) {
|
|
4754
|
+
node.attributes = [];
|
|
4755
|
+
}
|
|
4589
4756
|
}
|
|
4590
4757
|
this.semicolon();
|
|
4591
4758
|
}
|
|
@@ -5945,9 +6112,10 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
|
|
5945
6112
|
return this.finishNode(prop, "Property");
|
|
5946
6113
|
};
|
|
5947
6114
|
pp$5.parseGetterSetter = function(prop) {
|
|
5948
|
-
|
|
6115
|
+
var kind = prop.key.name;
|
|
5949
6116
|
this.parsePropertyName(prop);
|
|
5950
6117
|
prop.value = this.parseMethod(false);
|
|
6118
|
+
prop.kind = kind;
|
|
5951
6119
|
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
5952
6120
|
if (prop.value.params.length !== paramCount) {
|
|
5953
6121
|
var start = prop.value.start;
|
|
@@ -5973,9 +6141,9 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
5973
6141
|
if (isPattern) {
|
|
5974
6142
|
this.unexpected();
|
|
5975
6143
|
}
|
|
5976
|
-
prop.kind = "init";
|
|
5977
6144
|
prop.method = true;
|
|
5978
6145
|
prop.value = this.parseMethod(isGenerator, isAsync);
|
|
6146
|
+
prop.kind = "init";
|
|
5979
6147
|
} else if (!isPattern && !containsEsc && this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" && (prop.key.name === "get" || prop.key.name === "set") && (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {
|
|
5980
6148
|
if (isGenerator || isAsync) {
|
|
5981
6149
|
this.unexpected();
|
|
@@ -5989,7 +6157,6 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
5989
6157
|
if (prop.key.name === "await" && !this.awaitIdentPos) {
|
|
5990
6158
|
this.awaitIdentPos = startPos;
|
|
5991
6159
|
}
|
|
5992
|
-
prop.kind = "init";
|
|
5993
6160
|
if (isPattern) {
|
|
5994
6161
|
prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));
|
|
5995
6162
|
} else if (this.type === types$1.eq && refDestructuringErrors) {
|
|
@@ -6000,6 +6167,7 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
6000
6167
|
} else {
|
|
6001
6168
|
prop.value = this.copyNode(prop.key);
|
|
6002
6169
|
}
|
|
6170
|
+
prop.kind = "init";
|
|
6003
6171
|
prop.shorthand = true;
|
|
6004
6172
|
} else {
|
|
6005
6173
|
this.unexpected();
|
|
@@ -6149,7 +6317,7 @@ pp$5.checkUnreserved = function(ref2) {
|
|
|
6149
6317
|
if (this.inAsync && name === "await") {
|
|
6150
6318
|
this.raiseRecoverable(start, "Cannot use 'await' as identifier inside an async function");
|
|
6151
6319
|
}
|
|
6152
|
-
if (this.currentThisScope().
|
|
6320
|
+
if (!(this.currentThisScope().flags & SCOPE_VAR) && name === "arguments") {
|
|
6153
6321
|
this.raiseRecoverable(start, "Cannot use 'arguments' in class field initializer");
|
|
6154
6322
|
}
|
|
6155
6323
|
if (this.inClassStaticBlock && (name === "arguments" || name === "await")) {
|
|
@@ -6242,6 +6410,9 @@ var pp$4 = Parser.prototype;
|
|
|
6242
6410
|
pp$4.raise = function(pos, message) {
|
|
6243
6411
|
var loc = getLineInfo(this.input, pos);
|
|
6244
6412
|
message += " (" + loc.line + ":" + loc.column + ")";
|
|
6413
|
+
if (this.sourceFile) {
|
|
6414
|
+
message += " in " + this.sourceFile;
|
|
6415
|
+
}
|
|
6245
6416
|
var err2 = new SyntaxError(message);
|
|
6246
6417
|
err2.pos = pos;
|
|
6247
6418
|
err2.loc = loc;
|
|
@@ -6260,7 +6431,6 @@ var Scope = function Scope2(flags) {
|
|
|
6260
6431
|
this.var = [];
|
|
6261
6432
|
this.lexical = [];
|
|
6262
6433
|
this.functions = [];
|
|
6263
|
-
this.inClassFieldInit = false;
|
|
6264
6434
|
};
|
|
6265
6435
|
pp$3.enterScope = function(flags) {
|
|
6266
6436
|
this.scopeStack.push(new Scope(flags));
|
|
@@ -6322,7 +6492,7 @@ pp$3.currentScope = function() {
|
|
|
6322
6492
|
pp$3.currentVarScope = function() {
|
|
6323
6493
|
for (var i = this.scopeStack.length - 1; ; i--) {
|
|
6324
6494
|
var scope = this.scopeStack[i];
|
|
6325
|
-
if (scope.flags & SCOPE_VAR) {
|
|
6495
|
+
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK)) {
|
|
6326
6496
|
return scope;
|
|
6327
6497
|
}
|
|
6328
6498
|
}
|
|
@@ -6330,7 +6500,7 @@ pp$3.currentVarScope = function() {
|
|
|
6330
6500
|
pp$3.currentThisScope = function() {
|
|
6331
6501
|
for (var i = this.scopeStack.length - 1; ; i--) {
|
|
6332
6502
|
var scope = this.scopeStack[i];
|
|
6333
|
-
if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) {
|
|
6503
|
+
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) && !(scope.flags & SCOPE_ARROW)) {
|
|
6334
6504
|
return scope;
|
|
6335
6505
|
}
|
|
6336
6506
|
}
|
|
@@ -8578,7 +8748,7 @@ pp.readWord = function() {
|
|
|
8578
8748
|
}
|
|
8579
8749
|
return this.finishToken(type, word);
|
|
8580
8750
|
};
|
|
8581
|
-
var version = "8.14.
|
|
8751
|
+
var version = "8.14.1";
|
|
8582
8752
|
Parser.acorn = {
|
|
8583
8753
|
Parser,
|
|
8584
8754
|
version,
|
|
@@ -8652,7 +8822,7 @@ function joinURL(base, ...input) {
|
|
|
8652
8822
|
}
|
|
8653
8823
|
var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
8654
8824
|
|
|
8655
|
-
// node_modules/.pnpm/pathe@2.0.
|
|
8825
|
+
// node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
8656
8826
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
8657
8827
|
var isAbsolute = function(p) {
|
|
8658
8828
|
return _IS_ABSOLUTE_RE.test(p);
|
|
@@ -10005,7 +10175,151 @@ function resolvePathSync(id, options) {
|
|
|
10005
10175
|
return fileURLToPath(resolveSync(id, options));
|
|
10006
10176
|
}
|
|
10007
10177
|
|
|
10008
|
-
// node_modules/.pnpm/
|
|
10178
|
+
// node_modules/.pnpm/quansync@0.2.8/node_modules/quansync/dist/index.mjs
|
|
10179
|
+
var GET_IS_ASYNC = Symbol.for("quansync.getIsAsync");
|
|
10180
|
+
var QuansyncError = class extends Error {
|
|
10181
|
+
constructor(message = "Unexpected promise in sync context") {
|
|
10182
|
+
super(message);
|
|
10183
|
+
this.name = "QuansyncError";
|
|
10184
|
+
}
|
|
10185
|
+
};
|
|
10186
|
+
function isThenable(value) {
|
|
10187
|
+
return value && typeof value === "object" && typeof value.then === "function";
|
|
10188
|
+
}
|
|
10189
|
+
function isQuansyncGenerator(value) {
|
|
10190
|
+
return value && typeof value === "object" && typeof value[Symbol.iterator] === "function" && "__quansync" in value;
|
|
10191
|
+
}
|
|
10192
|
+
function fromObject(options) {
|
|
10193
|
+
const generator = function* (...args) {
|
|
10194
|
+
const isAsync = yield GET_IS_ASYNC;
|
|
10195
|
+
if (isAsync)
|
|
10196
|
+
return yield options.async.apply(this, args);
|
|
10197
|
+
return options.sync.apply(this, args);
|
|
10198
|
+
};
|
|
10199
|
+
function fn(...args) {
|
|
10200
|
+
const iter = generator.apply(this, args);
|
|
10201
|
+
iter.then = (...thenArgs) => options.async.apply(this, args).then(...thenArgs);
|
|
10202
|
+
iter.__quansync = true;
|
|
10203
|
+
return iter;
|
|
10204
|
+
}
|
|
10205
|
+
fn.sync = options.sync;
|
|
10206
|
+
fn.async = options.async;
|
|
10207
|
+
return fn;
|
|
10208
|
+
}
|
|
10209
|
+
function fromPromise(promise) {
|
|
10210
|
+
return fromObject({
|
|
10211
|
+
async: () => Promise.resolve(promise),
|
|
10212
|
+
sync: () => {
|
|
10213
|
+
if (isThenable(promise))
|
|
10214
|
+
throw new QuansyncError();
|
|
10215
|
+
return promise;
|
|
10216
|
+
}
|
|
10217
|
+
});
|
|
10218
|
+
}
|
|
10219
|
+
function unwrapYield(value, isAsync) {
|
|
10220
|
+
if (value === GET_IS_ASYNC)
|
|
10221
|
+
return isAsync;
|
|
10222
|
+
if (isQuansyncGenerator(value))
|
|
10223
|
+
return isAsync ? iterateAsync(value) : iterateSync(value);
|
|
10224
|
+
if (!isAsync && isThenable(value))
|
|
10225
|
+
throw new QuansyncError();
|
|
10226
|
+
return value;
|
|
10227
|
+
}
|
|
10228
|
+
function iterateSync(generator) {
|
|
10229
|
+
let current2 = generator.next();
|
|
10230
|
+
while (!current2.done) {
|
|
10231
|
+
try {
|
|
10232
|
+
current2 = generator.next(unwrapYield(current2.value));
|
|
10233
|
+
} catch (err2) {
|
|
10234
|
+
current2 = generator.throw(err2);
|
|
10235
|
+
}
|
|
10236
|
+
}
|
|
10237
|
+
return unwrapYield(current2.value);
|
|
10238
|
+
}
|
|
10239
|
+
async function iterateAsync(generator) {
|
|
10240
|
+
let current2 = generator.next();
|
|
10241
|
+
while (!current2.done) {
|
|
10242
|
+
try {
|
|
10243
|
+
current2 = generator.next(await unwrapYield(current2.value, true));
|
|
10244
|
+
} catch (err2) {
|
|
10245
|
+
current2 = generator.throw(err2);
|
|
10246
|
+
}
|
|
10247
|
+
}
|
|
10248
|
+
return current2.value;
|
|
10249
|
+
}
|
|
10250
|
+
function fromGeneratorFn(generatorFn) {
|
|
10251
|
+
return fromObject({
|
|
10252
|
+
name: generatorFn.name,
|
|
10253
|
+
async(...args) {
|
|
10254
|
+
return iterateAsync(generatorFn.apply(this, args));
|
|
10255
|
+
},
|
|
10256
|
+
sync(...args) {
|
|
10257
|
+
return iterateSync(generatorFn.apply(this, args));
|
|
10258
|
+
}
|
|
10259
|
+
});
|
|
10260
|
+
}
|
|
10261
|
+
function quansync(options) {
|
|
10262
|
+
if (isThenable(options))
|
|
10263
|
+
return fromPromise(options);
|
|
10264
|
+
if (typeof options === "function")
|
|
10265
|
+
return fromGeneratorFn(options);
|
|
10266
|
+
else
|
|
10267
|
+
return fromObject(options);
|
|
10268
|
+
}
|
|
10269
|
+
|
|
10270
|
+
// node_modules/.pnpm/quansync@0.2.8/node_modules/quansync/dist/macro.mjs
|
|
10271
|
+
var quansync2 = quansync;
|
|
10272
|
+
|
|
10273
|
+
// node_modules/.pnpm/local-pkg@1.1.1/node_modules/local-pkg/dist/index.mjs
|
|
10274
|
+
var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
|
|
10275
|
+
async function findUp$1(name, {
|
|
10276
|
+
cwd = process2.cwd(),
|
|
10277
|
+
type = "file",
|
|
10278
|
+
stopAt
|
|
10279
|
+
} = {}) {
|
|
10280
|
+
let directory = path2.resolve(toPath(cwd) ?? "");
|
|
10281
|
+
const { root } = path2.parse(directory);
|
|
10282
|
+
stopAt = path2.resolve(directory, toPath(stopAt ?? root));
|
|
10283
|
+
const isAbsoluteName = path2.isAbsolute(name);
|
|
10284
|
+
while (directory) {
|
|
10285
|
+
const filePath = isAbsoluteName ? name : path2.join(directory, name);
|
|
10286
|
+
try {
|
|
10287
|
+
const stats = await fsPromises.stat(filePath);
|
|
10288
|
+
if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
|
|
10289
|
+
return filePath;
|
|
10290
|
+
}
|
|
10291
|
+
} catch {
|
|
10292
|
+
}
|
|
10293
|
+
if (directory === stopAt || directory === root) {
|
|
10294
|
+
break;
|
|
10295
|
+
}
|
|
10296
|
+
directory = path2.dirname(directory);
|
|
10297
|
+
}
|
|
10298
|
+
}
|
|
10299
|
+
function findUpSync(name, {
|
|
10300
|
+
cwd = process2.cwd(),
|
|
10301
|
+
type = "file",
|
|
10302
|
+
stopAt
|
|
10303
|
+
} = {}) {
|
|
10304
|
+
let directory = path2.resolve(toPath(cwd) ?? "");
|
|
10305
|
+
const { root } = path2.parse(directory);
|
|
10306
|
+
stopAt = path2.resolve(directory, toPath(stopAt) ?? root);
|
|
10307
|
+
const isAbsoluteName = path2.isAbsolute(name);
|
|
10308
|
+
while (directory) {
|
|
10309
|
+
const filePath = isAbsoluteName ? name : path2.join(directory, name);
|
|
10310
|
+
try {
|
|
10311
|
+
const stats = fs2.statSync(filePath, { throwIfNoEntry: false });
|
|
10312
|
+
if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) {
|
|
10313
|
+
return filePath;
|
|
10314
|
+
}
|
|
10315
|
+
} catch {
|
|
10316
|
+
}
|
|
10317
|
+
if (directory === stopAt || directory === root) {
|
|
10318
|
+
break;
|
|
10319
|
+
}
|
|
10320
|
+
directory = path2.dirname(directory);
|
|
10321
|
+
}
|
|
10322
|
+
}
|
|
10009
10323
|
function _resolve2(path3, options = {}) {
|
|
10010
10324
|
if (options.platform === "auto" || !options.platform)
|
|
10011
10325
|
options.platform = process2.platform === "win32" ? "win32" : "posix";
|
|
@@ -10029,6 +10343,30 @@ function _resolve2(path3, options = {}) {
|
|
|
10029
10343
|
function isPackageExists(name, options = {}) {
|
|
10030
10344
|
return !!resolvePackage(name, options);
|
|
10031
10345
|
}
|
|
10346
|
+
function getPackageJsonPath(name, options = {}) {
|
|
10347
|
+
const entry = resolvePackage(name, options);
|
|
10348
|
+
if (!entry)
|
|
10349
|
+
return;
|
|
10350
|
+
return searchPackageJSON(entry);
|
|
10351
|
+
}
|
|
10352
|
+
var readFile = quansync2({
|
|
10353
|
+
async: (id) => fs2.promises.readFile(id, "utf8"),
|
|
10354
|
+
sync: (id) => fs2.readFileSync(id, "utf8")
|
|
10355
|
+
});
|
|
10356
|
+
var getPackageInfo = quansync2(function* (name, options = {}) {
|
|
10357
|
+
const packageJsonPath = getPackageJsonPath(name, options);
|
|
10358
|
+
if (!packageJsonPath)
|
|
10359
|
+
return;
|
|
10360
|
+
const packageJson = JSON.parse(yield readFile(packageJsonPath));
|
|
10361
|
+
return {
|
|
10362
|
+
name,
|
|
10363
|
+
version: packageJson.version,
|
|
10364
|
+
rootPath: dirname3(packageJsonPath),
|
|
10365
|
+
packageJsonPath,
|
|
10366
|
+
packageJson
|
|
10367
|
+
};
|
|
10368
|
+
});
|
|
10369
|
+
var getPackageInfoSync = getPackageInfo.sync;
|
|
10032
10370
|
function resolvePackage(name, options = {}) {
|
|
10033
10371
|
try {
|
|
10034
10372
|
return _resolve2(`${name}/package.json`, options);
|
|
@@ -10042,8 +10380,39 @@ function resolvePackage(name, options = {}) {
|
|
|
10042
10380
|
return false;
|
|
10043
10381
|
}
|
|
10044
10382
|
}
|
|
10383
|
+
function searchPackageJSON(dir) {
|
|
10384
|
+
let packageJsonPath;
|
|
10385
|
+
while (true) {
|
|
10386
|
+
if (!dir)
|
|
10387
|
+
return;
|
|
10388
|
+
const newDir = dirname3(dir);
|
|
10389
|
+
if (newDir === dir)
|
|
10390
|
+
return;
|
|
10391
|
+
dir = newDir;
|
|
10392
|
+
packageJsonPath = join2(dir, "package.json");
|
|
10393
|
+
if (fs2.existsSync(packageJsonPath))
|
|
10394
|
+
break;
|
|
10395
|
+
}
|
|
10396
|
+
return packageJsonPath;
|
|
10397
|
+
}
|
|
10398
|
+
var findUp = quansync2({
|
|
10399
|
+
sync: findUpSync,
|
|
10400
|
+
async: findUp$1
|
|
10401
|
+
});
|
|
10402
|
+
var loadPackageJSON = quansync2(function* (cwd = process2.cwd()) {
|
|
10403
|
+
const path3 = yield findUp("package.json", { cwd });
|
|
10404
|
+
if (!path3 || !fs2.existsSync(path3))
|
|
10405
|
+
return null;
|
|
10406
|
+
return JSON.parse(yield readFile(path3));
|
|
10407
|
+
});
|
|
10408
|
+
var loadPackageJSONSync = loadPackageJSON.sync;
|
|
10409
|
+
var isPackageListed = quansync2(function* (name, cwd) {
|
|
10410
|
+
const pkg = (yield loadPackageJSON(cwd)) || {};
|
|
10411
|
+
return name in (pkg.dependencies || {}) || name in (pkg.devDependencies || {});
|
|
10412
|
+
});
|
|
10413
|
+
var isPackageListedSync = isPackageListed.sync;
|
|
10045
10414
|
|
|
10046
|
-
// node_modules/.pnpm/neverthrow@8.
|
|
10415
|
+
// node_modules/.pnpm/neverthrow@8.2.0/node_modules/neverthrow/dist/index.es.js
|
|
10047
10416
|
var defaultErrorConfig = {
|
|
10048
10417
|
withStackTrace: false
|
|
10049
10418
|
};
|
|
@@ -10232,6 +10601,18 @@ var ResultAsync = class _ResultAsync {
|
|
|
10232
10601
|
return new Ok(res.value);
|
|
10233
10602
|
})));
|
|
10234
10603
|
}
|
|
10604
|
+
orTee(f) {
|
|
10605
|
+
return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
10606
|
+
if (res.isOk()) {
|
|
10607
|
+
return new Ok(res.value);
|
|
10608
|
+
}
|
|
10609
|
+
try {
|
|
10610
|
+
yield f(res.error);
|
|
10611
|
+
} catch (e) {
|
|
10612
|
+
}
|
|
10613
|
+
return new Err(res.error);
|
|
10614
|
+
})));
|
|
10615
|
+
}
|
|
10235
10616
|
mapErr(f) {
|
|
10236
10617
|
return new _ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
10237
10618
|
if (res.isOk()) {
|
|
@@ -10296,8 +10677,10 @@ var ResultAsync = class _ResultAsync {
|
|
|
10296
10677
|
});
|
|
10297
10678
|
}
|
|
10298
10679
|
};
|
|
10299
|
-
|
|
10300
|
-
|
|
10680
|
+
function errAsync(err2) {
|
|
10681
|
+
return new ResultAsync(Promise.resolve(new Err(err2)));
|
|
10682
|
+
}
|
|
10683
|
+
var fromPromise2 = ResultAsync.fromPromise;
|
|
10301
10684
|
var fromSafePromise = ResultAsync.fromSafePromise;
|
|
10302
10685
|
var fromAsyncThrowable = ResultAsync.fromThrowable;
|
|
10303
10686
|
var combineResultList = (resultList) => {
|
|
@@ -10349,7 +10732,9 @@ var Result;
|
|
|
10349
10732
|
}
|
|
10350
10733
|
Result2.combineWithAllErrors = combineWithAllErrors;
|
|
10351
10734
|
})(Result || (Result = {}));
|
|
10352
|
-
|
|
10735
|
+
function ok(value) {
|
|
10736
|
+
return new Ok(value);
|
|
10737
|
+
}
|
|
10353
10738
|
function err(err2) {
|
|
10354
10739
|
return new Err(err2);
|
|
10355
10740
|
}
|
|
@@ -10385,6 +10770,9 @@ var Ok = class {
|
|
|
10385
10770
|
}
|
|
10386
10771
|
return ok(this.value);
|
|
10387
10772
|
}
|
|
10773
|
+
orTee(_f) {
|
|
10774
|
+
return ok(this.value);
|
|
10775
|
+
}
|
|
10388
10776
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10389
10777
|
orElse(_f) {
|
|
10390
10778
|
return ok(this.value);
|
|
@@ -10447,6 +10835,13 @@ var Err = class {
|
|
|
10447
10835
|
andTee(_f) {
|
|
10448
10836
|
return err(this.error);
|
|
10449
10837
|
}
|
|
10838
|
+
orTee(f) {
|
|
10839
|
+
try {
|
|
10840
|
+
f(this.error);
|
|
10841
|
+
} catch (e) {
|
|
10842
|
+
}
|
|
10843
|
+
return err(this.error);
|
|
10844
|
+
}
|
|
10450
10845
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10451
10846
|
andThen(_f) {
|
|
10452
10847
|
return err(this.error);
|
|
@@ -10726,6 +11121,12 @@ import { default as default5 } from "eslint-plugin-n";
|
|
|
10726
11121
|
import { default as default6 } from "eslint-plugin-perfectionist";
|
|
10727
11122
|
import { default as default7 } from "eslint-plugin-unicorn";
|
|
10728
11123
|
import { default as default8 } from "eslint-plugin-unused-imports";
|
|
11124
|
+
async function importPluginUnicorn() {
|
|
11125
|
+
const pluginUnicorn = await interopDefault2(import("eslint-plugin-unicorn"));
|
|
11126
|
+
return {
|
|
11127
|
+
pluginUnicorn
|
|
11128
|
+
};
|
|
11129
|
+
}
|
|
10729
11130
|
async function importPluginReact() {
|
|
10730
11131
|
const pluginReact = await interopDefault2(import("eslint-plugin-react"));
|
|
10731
11132
|
return {
|
|
@@ -10734,7 +11135,6 @@ async function importPluginReact() {
|
|
|
10734
11135
|
}
|
|
10735
11136
|
async function importPluginReactHooks() {
|
|
10736
11137
|
const pluginReactHooks = await interopDefault2(
|
|
10737
|
-
// @ts-expect-error - bad types
|
|
10738
11138
|
import("eslint-plugin-react-hooks")
|
|
10739
11139
|
);
|
|
10740
11140
|
return {
|
|
@@ -10753,7 +11153,6 @@ async function importReactPlugins() {
|
|
|
10753
11153
|
const [pluginReact, pluginReactHooks, pluginReactRefresh] = await Promise.all(
|
|
10754
11154
|
[
|
|
10755
11155
|
interopDefault2(import("eslint-plugin-react")),
|
|
10756
|
-
// @ts-expect-error - bad types
|
|
10757
11156
|
interopDefault2(import("eslint-plugin-react-hooks")),
|
|
10758
11157
|
interopDefault2(import("eslint-plugin-react-refresh"))
|
|
10759
11158
|
]
|
|
@@ -13011,8 +13410,8 @@ function unicornOff() {
|
|
|
13011
13410
|
// Super insanely annoying rule
|
|
13012
13411
|
};
|
|
13013
13412
|
}
|
|
13014
|
-
function unicornRecommended() {
|
|
13015
|
-
const rules =
|
|
13413
|
+
function unicornRecommended(pluginUnicorn) {
|
|
13414
|
+
const rules = pluginUnicorn.configs.recommended.rules;
|
|
13016
13415
|
if (rules === void 0) {
|
|
13017
13416
|
throw new Error("Expected rules to be defined in unicorn plugin");
|
|
13018
13417
|
}
|
|
@@ -13027,7 +13426,7 @@ var unicorn = async () => {
|
|
|
13027
13426
|
unicorn: default7
|
|
13028
13427
|
},
|
|
13029
13428
|
rules: {
|
|
13030
|
-
...unicornRecommended(),
|
|
13429
|
+
...unicornRecommended(default7),
|
|
13031
13430
|
...unicornOff(),
|
|
13032
13431
|
"unicorn/better-regex": "error",
|
|
13033
13432
|
"unicorn/consistent-empty-array-spread": "error",
|
|
@@ -13057,7 +13456,6 @@ var unicorn = async () => {
|
|
|
13057
13456
|
"unicorn/no-static-only-class": "error",
|
|
13058
13457
|
"unicorn/no-unnecessary-await": "error",
|
|
13059
13458
|
// Keep regex literals safe!
|
|
13060
|
-
"unicorn/no-unsafe-regex": "error",
|
|
13061
13459
|
"unicorn/no-zero-fractions": "error",
|
|
13062
13460
|
// Lowercase number formatting for octal, hex, binary (0x1ERROR instead of 0X1'error')
|
|
13063
13461
|
"unicorn/number-literal-case": "error",
|
|
@@ -13277,7 +13675,7 @@ async function jsse(options = {}, ...userConfigs) {
|
|
|
13277
13675
|
const configs = [];
|
|
13278
13676
|
if (enableGitignore) {
|
|
13279
13677
|
if (typeof enableGitignore === "boolean") {
|
|
13280
|
-
if (
|
|
13678
|
+
if (fs3.existsSync(".gitignore")) {
|
|
13281
13679
|
configs.push(
|
|
13282
13680
|
interopDefault2(import("eslint-config-flat-gitignore")).then((r2) => {
|
|
13283
13681
|
const res = r2();
|
|
@@ -13453,7 +13851,7 @@ async function defineConfig(options = {}, ...userConfigs) {
|
|
|
13453
13851
|
}
|
|
13454
13852
|
|
|
13455
13853
|
// src/generated/version.ts
|
|
13456
|
-
var VERSION = "0.
|
|
13854
|
+
var VERSION = "0.3.1";
|
|
13457
13855
|
|
|
13458
13856
|
// src/presets.ts
|
|
13459
13857
|
var jsseReact = (options, ...configs) => {
|
|
@@ -13491,6 +13889,7 @@ export {
|
|
|
13491
13889
|
importPluginStylistic,
|
|
13492
13890
|
importPluginTailwind,
|
|
13493
13891
|
importPluginTsdoc,
|
|
13892
|
+
importPluginUnicorn,
|
|
13494
13893
|
importReactPlugins,
|
|
13495
13894
|
importYmlLibs,
|
|
13496
13895
|
interopDefault2 as interopDefault,
|