@alextheman/eslint-plugin 5.17.1 → 5.18.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/dist/index.cjs +178 -82
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +176 -81
- package/dist/internal/index.cjs +127 -35
- package/dist/internal/index.d.cts +4 -0
- package/dist/internal/index.d.ts +4 -0
- package/dist/internal/index.js +127 -35
- package/dist/utility/index.cjs +1 -1
- package/dist/utility/index.d.cts +2 -3
- package/dist/utility/index.d.ts +2 -3
- package/package.json +27 -24
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { az, camelToKebab, deepCopy, deepFreeze, normaliseIndents, omitPropertie
|
|
|
2
2
|
import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
|
|
3
3
|
import z from "zod";
|
|
4
4
|
import { DataError } from "@alextheman/utility/v6";
|
|
5
|
+
import comments from "@eslint-community/eslint-plugin-eslint-comments/configs";
|
|
5
6
|
import js from "@eslint/js";
|
|
6
7
|
import prettierConfig$1 from "eslint-config-prettier";
|
|
7
8
|
import * as tsResolver from "eslint-import-resolver-typescript";
|
|
@@ -9,13 +10,13 @@ import importPlugin from "eslint-plugin-import-x";
|
|
|
9
10
|
import nodePlugin from "eslint-plugin-n";
|
|
10
11
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
11
12
|
import prettierPlugin from "eslint-plugin-prettier";
|
|
13
|
+
import tseslint from "typescript-eslint";
|
|
12
14
|
import reactPlugin from "@eslint-react/eslint-plugin";
|
|
13
15
|
import stylistic from "@stylistic/eslint-plugin";
|
|
14
16
|
import jsxA11y from "eslint-plugin-jsx-a11y-x";
|
|
15
17
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
16
18
|
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
17
19
|
import packageJson from "eslint-plugin-package-json";
|
|
18
|
-
import tseslint from "typescript-eslint";
|
|
19
20
|
import jsdoc from "eslint-plugin-jsdoc";
|
|
20
21
|
import { normalizeImportPath } from "@alextheman/utility/node";
|
|
21
22
|
//#region \0rolldown/runtime.js
|
|
@@ -36,12 +37,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
36
37
|
}
|
|
37
38
|
return to;
|
|
38
39
|
};
|
|
39
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
40
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
40
41
|
value: mod,
|
|
41
42
|
enumerable: true
|
|
42
43
|
}) : target, mod));
|
|
43
44
|
//#endregion
|
|
44
|
-
//#region node_modules/.pnpm/globals@17.
|
|
45
|
+
//#region node_modules/.pnpm/globals@17.8.0/node_modules/globals/globals.json
|
|
45
46
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
46
47
|
module.exports = {
|
|
47
48
|
"amd": {
|
|
@@ -75,17 +76,31 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
75
76
|
"audioWorklet": {
|
|
76
77
|
"AbortController": false,
|
|
77
78
|
"AbortSignal": false,
|
|
78
|
-
"AsyncDisposableStack": false,
|
|
79
79
|
"AudioWorkletGlobalScope": false,
|
|
80
80
|
"AudioWorkletProcessor": false,
|
|
81
81
|
"ByteLengthQueuingStrategy": false,
|
|
82
82
|
"CompressionStream": false,
|
|
83
83
|
"console": false,
|
|
84
84
|
"CountQueuingStrategy": false,
|
|
85
|
+
"CSSImageValue": false,
|
|
86
|
+
"CSSKeywordValue": false,
|
|
87
|
+
"CSSMathClamp": false,
|
|
88
|
+
"CSSMathInvert": false,
|
|
89
|
+
"CSSMathMax": false,
|
|
90
|
+
"CSSMathMin": false,
|
|
91
|
+
"CSSMathNegate": false,
|
|
92
|
+
"CSSMathProduct": false,
|
|
93
|
+
"CSSMathSum": false,
|
|
94
|
+
"CSSMathValue": false,
|
|
95
|
+
"CSSNumericArray": false,
|
|
96
|
+
"CSSNumericValue": false,
|
|
97
|
+
"CSSStyleValue": false,
|
|
98
|
+
"CSSUnitValue": false,
|
|
99
|
+
"CSSUnparsedValue": false,
|
|
100
|
+
"CSSVariableReferenceValue": false,
|
|
85
101
|
"currentFrame": false,
|
|
86
102
|
"currentTime": false,
|
|
87
103
|
"DecompressionStream": false,
|
|
88
|
-
"DisposableStack": false,
|
|
89
104
|
"Event": false,
|
|
90
105
|
"EventTarget": false,
|
|
91
106
|
"MessageEvent": false,
|
|
@@ -101,7 +116,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
101
116
|
"ReadableStreamDefaultReader": false,
|
|
102
117
|
"registerProcessor": false,
|
|
103
118
|
"sampleRate": false,
|
|
104
|
-
"
|
|
119
|
+
"StylePropertyMapReadOnly": false,
|
|
105
120
|
"Temporal": false,
|
|
106
121
|
"TextDecoderStream": false,
|
|
107
122
|
"TextEncoderStream": false,
|
|
@@ -132,7 +147,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
132
147
|
"AnimationEvent": false,
|
|
133
148
|
"AnimationPlaybackEvent": false,
|
|
134
149
|
"AnimationTimeline": false,
|
|
135
|
-
"AsyncDisposableStack": false,
|
|
136
150
|
"atob": false,
|
|
137
151
|
"Attr": false,
|
|
138
152
|
"Audio": false,
|
|
@@ -242,6 +256,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
242
256
|
"CSSConditionRule": false,
|
|
243
257
|
"CSSContainerRule": false,
|
|
244
258
|
"CSSCounterStyleRule": false,
|
|
259
|
+
"CSSFontFaceDescriptors": false,
|
|
245
260
|
"CSSFontFaceRule": false,
|
|
246
261
|
"CSSFontFeatureValuesRule": false,
|
|
247
262
|
"CSSFontPaletteValuesRule": false,
|
|
@@ -278,6 +293,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
278
293
|
"CSSPositionTryRule": false,
|
|
279
294
|
"CSSPositionValue": false,
|
|
280
295
|
"CSSPropertyRule": false,
|
|
296
|
+
"CSSPseudoElement": false,
|
|
281
297
|
"CSSRotate": false,
|
|
282
298
|
"CSSRule": false,
|
|
283
299
|
"CSSRuleList": false,
|
|
@@ -319,7 +335,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
319
335
|
"DevicePosture": false,
|
|
320
336
|
"DigitalCredential": false,
|
|
321
337
|
"dispatchEvent": false,
|
|
322
|
-
"DisposableStack": false,
|
|
323
338
|
"document": false,
|
|
324
339
|
"Document": false,
|
|
325
340
|
"DocumentFragment": false,
|
|
@@ -537,6 +552,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
537
552
|
"HTMLTrackElement": false,
|
|
538
553
|
"HTMLUListElement": false,
|
|
539
554
|
"HTMLUnknownElement": false,
|
|
555
|
+
"HTMLUserMediaElement": false,
|
|
540
556
|
"HTMLVideoElement": false,
|
|
541
557
|
"IDBCursor": false,
|
|
542
558
|
"IDBCursorWithValue": false,
|
|
@@ -572,6 +588,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
572
588
|
"InputDeviceInfo": false,
|
|
573
589
|
"InputEvent": false,
|
|
574
590
|
"IntegrityViolationReportBody": false,
|
|
591
|
+
"InteractionContentfulPaint": false,
|
|
575
592
|
"InterestEvent": false,
|
|
576
593
|
"IntersectionObserver": false,
|
|
577
594
|
"IntersectionObserverEntry": false,
|
|
@@ -581,6 +598,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
581
598
|
"KeyboardLayoutMap": false,
|
|
582
599
|
"KeyframeEffect": false,
|
|
583
600
|
"LanguageDetector": false,
|
|
601
|
+
"LanguageModel": false,
|
|
584
602
|
"LargestContentfulPaint": false,
|
|
585
603
|
"LaunchParams": false,
|
|
586
604
|
"launchQueue": false,
|
|
@@ -645,6 +663,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
645
663
|
"MimeType": false,
|
|
646
664
|
"MimeTypeArray": false,
|
|
647
665
|
"model": false,
|
|
666
|
+
"ModelContext": false,
|
|
648
667
|
"ModelGenericSession": false,
|
|
649
668
|
"ModelManager": false,
|
|
650
669
|
"MouseEvent": false,
|
|
@@ -853,6 +872,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
853
872
|
"PerformanceResourceTiming": false,
|
|
854
873
|
"PerformanceScriptTiming": false,
|
|
855
874
|
"PerformanceServerTiming": false,
|
|
875
|
+
"PerformanceSoftNavigation": false,
|
|
856
876
|
"PerformanceTiming": false,
|
|
857
877
|
"PerformanceTimingConfidence": false,
|
|
858
878
|
"PeriodicSyncManager": false,
|
|
@@ -1021,7 +1041,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1021
1041
|
"Subscriber": false,
|
|
1022
1042
|
"SubtleCrypto": false,
|
|
1023
1043
|
"Summarizer": false,
|
|
1024
|
-
"SuppressedError": false,
|
|
1025
1044
|
"SVGAElement": false,
|
|
1026
1045
|
"SVGAngle": false,
|
|
1027
1046
|
"SVGAnimatedAngle": false,
|
|
@@ -1221,6 +1240,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1221
1240
|
"WebGLTransformFeedback": false,
|
|
1222
1241
|
"WebGLUniformLocation": false,
|
|
1223
1242
|
"WebGLVertexArrayObject": false,
|
|
1243
|
+
"WebMCPEvent": false,
|
|
1224
1244
|
"WebSocket": false,
|
|
1225
1245
|
"WebSocketError": false,
|
|
1226
1246
|
"WebSocketStream": false,
|
|
@@ -1306,6 +1326,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1306
1326
|
"AggregateError": false,
|
|
1307
1327
|
"Array": false,
|
|
1308
1328
|
"ArrayBuffer": false,
|
|
1329
|
+
"AsyncDisposableStack": false,
|
|
1309
1330
|
"Atomics": false,
|
|
1310
1331
|
"BigInt": false,
|
|
1311
1332
|
"BigInt64Array": false,
|
|
@@ -1315,6 +1336,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1315
1336
|
"Date": false,
|
|
1316
1337
|
"decodeURI": false,
|
|
1317
1338
|
"decodeURIComponent": false,
|
|
1339
|
+
"DisposableStack": false,
|
|
1318
1340
|
"encodeURI": false,
|
|
1319
1341
|
"encodeURIComponent": false,
|
|
1320
1342
|
"Error": false,
|
|
@@ -1352,6 +1374,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1352
1374
|
"Set": false,
|
|
1353
1375
|
"SharedArrayBuffer": false,
|
|
1354
1376
|
"String": false,
|
|
1377
|
+
"SuppressedError": false,
|
|
1355
1378
|
"Symbol": false,
|
|
1356
1379
|
"SyntaxError": false,
|
|
1357
1380
|
"TypeError": false,
|
|
@@ -1371,7 +1394,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1371
1394
|
"AbortSignal": false,
|
|
1372
1395
|
"addEventListener": false,
|
|
1373
1396
|
"alert": false,
|
|
1374
|
-
"AsyncDisposableStack": false,
|
|
1375
1397
|
"atob": false,
|
|
1376
1398
|
"Blob": false,
|
|
1377
1399
|
"BroadcastChannel": false,
|
|
@@ -1395,7 +1417,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1395
1417
|
"CustomEvent": false,
|
|
1396
1418
|
"DecompressionStream": false,
|
|
1397
1419
|
"dispatchEvent": false,
|
|
1398
|
-
"DisposableStack": false,
|
|
1399
1420
|
"DOMException": false,
|
|
1400
1421
|
"ErrorEvent": false,
|
|
1401
1422
|
"Event": false,
|
|
@@ -1446,7 +1467,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1446
1467
|
"ShadowRealm": false,
|
|
1447
1468
|
"structuredClone": false,
|
|
1448
1469
|
"SubtleCrypto": false,
|
|
1449
|
-
"SuppressedError": false,
|
|
1450
1470
|
"TextDecoder": false,
|
|
1451
1471
|
"TextDecoderStream": false,
|
|
1452
1472
|
"TextEncoder": false,
|
|
@@ -1492,7 +1512,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1492
1512
|
"AbortSignal": false,
|
|
1493
1513
|
"addEventListener": false,
|
|
1494
1514
|
"alert": false,
|
|
1495
|
-
"AsyncDisposableStack": false,
|
|
1496
1515
|
"atob": false,
|
|
1497
1516
|
"Blob": false,
|
|
1498
1517
|
"BroadcastChannel": false,
|
|
@@ -1520,8 +1539,14 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1520
1539
|
"DecompressionStream": false,
|
|
1521
1540
|
"Deno": false,
|
|
1522
1541
|
"dispatchEvent": false,
|
|
1523
|
-
"DisposableStack": false,
|
|
1524
1542
|
"DOMException": false,
|
|
1543
|
+
"DOMMatrix": false,
|
|
1544
|
+
"DOMMatrixReadOnly": false,
|
|
1545
|
+
"DOMPoint": false,
|
|
1546
|
+
"DOMPointReadOnly": false,
|
|
1547
|
+
"DOMQuad": false,
|
|
1548
|
+
"DOMRect": false,
|
|
1549
|
+
"DOMRectReadOnly": false,
|
|
1525
1550
|
"ErrorEvent": false,
|
|
1526
1551
|
"Event": false,
|
|
1527
1552
|
"EventSource": false,
|
|
@@ -1573,16 +1598,22 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1573
1598
|
"GPUValidationError": false,
|
|
1574
1599
|
"Headers": false,
|
|
1575
1600
|
"ImageBitmap": false,
|
|
1601
|
+
"ImageBitmapRenderingContext": false,
|
|
1576
1602
|
"ImageData": false,
|
|
1577
1603
|
"localStorage": false,
|
|
1578
1604
|
"location": false,
|
|
1579
1605
|
"Location": false,
|
|
1606
|
+
"Lock": false,
|
|
1607
|
+
"LockManager": false,
|
|
1580
1608
|
"MessageChannel": false,
|
|
1581
1609
|
"MessageEvent": false,
|
|
1582
1610
|
"MessagePort": false,
|
|
1583
1611
|
"name": false,
|
|
1584
1612
|
"navigator": false,
|
|
1585
1613
|
"Navigator": false,
|
|
1614
|
+
"NavigatorUAData": false,
|
|
1615
|
+
"nodeBootstrap": false,
|
|
1616
|
+
"OffscreenCanvas": false,
|
|
1586
1617
|
"onbeforeunload": true,
|
|
1587
1618
|
"onerror": true,
|
|
1588
1619
|
"onload": true,
|
|
@@ -1619,7 +1650,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1619
1650
|
"Storage": false,
|
|
1620
1651
|
"structuredClone": false,
|
|
1621
1652
|
"SubtleCrypto": false,
|
|
1622
|
-
"SuppressedError": false,
|
|
1623
1653
|
"Temporal": false,
|
|
1624
1654
|
"TextDecoder": false,
|
|
1625
1655
|
"TextDecoderStream": false,
|
|
@@ -2395,6 +2425,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2395
2425
|
"AggregateError": false,
|
|
2396
2426
|
"Array": false,
|
|
2397
2427
|
"ArrayBuffer": false,
|
|
2428
|
+
"AsyncDisposableStack": false,
|
|
2398
2429
|
"Atomics": false,
|
|
2399
2430
|
"BigInt": false,
|
|
2400
2431
|
"BigInt64Array": false,
|
|
@@ -2404,6 +2435,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2404
2435
|
"Date": false,
|
|
2405
2436
|
"decodeURI": false,
|
|
2406
2437
|
"decodeURIComponent": false,
|
|
2438
|
+
"DisposableStack": false,
|
|
2407
2439
|
"encodeURI": false,
|
|
2408
2440
|
"encodeURIComponent": false,
|
|
2409
2441
|
"Error": false,
|
|
@@ -2441,6 +2473,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2441
2473
|
"Set": false,
|
|
2442
2474
|
"SharedArrayBuffer": false,
|
|
2443
2475
|
"String": false,
|
|
2476
|
+
"SuppressedError": false,
|
|
2444
2477
|
"Symbol": false,
|
|
2445
2478
|
"SyntaxError": false,
|
|
2446
2479
|
"TypeError": false,
|
|
@@ -2719,7 +2752,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2719
2752
|
"__filename": false,
|
|
2720
2753
|
"AbortController": false,
|
|
2721
2754
|
"AbortSignal": false,
|
|
2722
|
-
"AsyncDisposableStack": false,
|
|
2723
2755
|
"atob": false,
|
|
2724
2756
|
"Blob": false,
|
|
2725
2757
|
"BroadcastChannel": false,
|
|
@@ -2738,7 +2770,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2738
2770
|
"CryptoKey": false,
|
|
2739
2771
|
"CustomEvent": false,
|
|
2740
2772
|
"DecompressionStream": false,
|
|
2741
|
-
"DisposableStack": false,
|
|
2742
2773
|
"DOMException": false,
|
|
2743
2774
|
"ErrorEvent": false,
|
|
2744
2775
|
"Event": false,
|
|
@@ -2766,6 +2797,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2766
2797
|
"PerformanceResourceTiming": false,
|
|
2767
2798
|
"process": false,
|
|
2768
2799
|
"queueMicrotask": false,
|
|
2800
|
+
"QuotaExceededError": false,
|
|
2769
2801
|
"ReadableByteStreamController": false,
|
|
2770
2802
|
"ReadableStream": false,
|
|
2771
2803
|
"ReadableStreamBYOBReader": false,
|
|
@@ -2782,7 +2814,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2782
2814
|
"Storage": false,
|
|
2783
2815
|
"structuredClone": false,
|
|
2784
2816
|
"SubtleCrypto": false,
|
|
2785
|
-
"
|
|
2817
|
+
"Temporal": false,
|
|
2786
2818
|
"TextDecoder": false,
|
|
2787
2819
|
"TextDecoderStream": false,
|
|
2788
2820
|
"TextEncoder": false,
|
|
@@ -2801,7 +2833,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2801
2833
|
"nodeBuiltin": {
|
|
2802
2834
|
"AbortController": false,
|
|
2803
2835
|
"AbortSignal": false,
|
|
2804
|
-
"AsyncDisposableStack": false,
|
|
2805
2836
|
"atob": false,
|
|
2806
2837
|
"Blob": false,
|
|
2807
2838
|
"BroadcastChannel": false,
|
|
@@ -2820,7 +2851,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2820
2851
|
"CryptoKey": false,
|
|
2821
2852
|
"CustomEvent": false,
|
|
2822
2853
|
"DecompressionStream": false,
|
|
2823
|
-
"DisposableStack": false,
|
|
2824
2854
|
"DOMException": false,
|
|
2825
2855
|
"ErrorEvent": false,
|
|
2826
2856
|
"Event": false,
|
|
@@ -2846,6 +2876,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2846
2876
|
"PerformanceResourceTiming": false,
|
|
2847
2877
|
"process": false,
|
|
2848
2878
|
"queueMicrotask": false,
|
|
2879
|
+
"QuotaExceededError": false,
|
|
2849
2880
|
"ReadableByteStreamController": false,
|
|
2850
2881
|
"ReadableStream": false,
|
|
2851
2882
|
"ReadableStreamBYOBReader": false,
|
|
@@ -2861,7 +2892,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2861
2892
|
"Storage": false,
|
|
2862
2893
|
"structuredClone": false,
|
|
2863
2894
|
"SubtleCrypto": false,
|
|
2864
|
-
"
|
|
2895
|
+
"Temporal": false,
|
|
2865
2896
|
"TextDecoder": false,
|
|
2866
2897
|
"TextDecoderStream": false,
|
|
2867
2898
|
"TextEncoder": false,
|
|
@@ -2878,7 +2909,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2878
2909
|
"WritableStreamDefaultWriter": false
|
|
2879
2910
|
},
|
|
2880
2911
|
"paintWorklet": {
|
|
2881
|
-
"AsyncDisposableStack": false,
|
|
2882
2912
|
"ByteLengthQueuingStrategy": false,
|
|
2883
2913
|
"console": false,
|
|
2884
2914
|
"CountQueuingStrategy": false,
|
|
@@ -2910,7 +2940,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2910
2940
|
"CSSUnparsedValue": false,
|
|
2911
2941
|
"CSSVariableReferenceValue": false,
|
|
2912
2942
|
"devicePixelRatio": false,
|
|
2913
|
-
"DisposableStack": false,
|
|
2914
2943
|
"PaintRenderingContext2D": false,
|
|
2915
2944
|
"PaintSize": false,
|
|
2916
2945
|
"PaintWorkletGlobalScope": false,
|
|
@@ -2924,7 +2953,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2924
2953
|
"ReadableStreamDefaultReader": false,
|
|
2925
2954
|
"registerPaint": false,
|
|
2926
2955
|
"StylePropertyMapReadOnly": false,
|
|
2927
|
-
"SuppressedError": false,
|
|
2928
2956
|
"Temporal": false,
|
|
2929
2957
|
"TransformStream": false,
|
|
2930
2958
|
"TransformStreamDefaultController": false,
|
|
@@ -3065,7 +3093,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3065
3093
|
"ai": false,
|
|
3066
3094
|
"AI": false,
|
|
3067
3095
|
"AICreateMonitor": false,
|
|
3068
|
-
"AsyncDisposableStack": false,
|
|
3069
3096
|
"atob": false,
|
|
3070
3097
|
"BackgroundFetchEvent": false,
|
|
3071
3098
|
"BackgroundFetchManager": false,
|
|
@@ -3102,12 +3129,35 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3102
3129
|
"crypto": false,
|
|
3103
3130
|
"Crypto": false,
|
|
3104
3131
|
"CryptoKey": false,
|
|
3132
|
+
"CSSImageValue": false,
|
|
3133
|
+
"CSSKeywordValue": false,
|
|
3134
|
+
"CSSMathClamp": false,
|
|
3135
|
+
"CSSMathInvert": false,
|
|
3136
|
+
"CSSMathMax": false,
|
|
3137
|
+
"CSSMathMin": false,
|
|
3138
|
+
"CSSMathNegate": false,
|
|
3139
|
+
"CSSMathProduct": false,
|
|
3140
|
+
"CSSMathSum": false,
|
|
3141
|
+
"CSSMathValue": false,
|
|
3142
|
+
"CSSMatrixComponent": false,
|
|
3143
|
+
"CSSNumericArray": false,
|
|
3144
|
+
"CSSNumericValue": false,
|
|
3145
|
+
"CSSPerspective": false,
|
|
3146
|
+
"CSSRotate": false,
|
|
3147
|
+
"CSSScale": false,
|
|
3148
|
+
"CSSSkew": false,
|
|
3105
3149
|
"CSSSkewX": false,
|
|
3106
3150
|
"CSSSkewY": false,
|
|
3151
|
+
"CSSStyleValue": false,
|
|
3152
|
+
"CSSTransformComponent": false,
|
|
3153
|
+
"CSSTransformValue": false,
|
|
3154
|
+
"CSSTranslate": false,
|
|
3155
|
+
"CSSUnitValue": false,
|
|
3156
|
+
"CSSUnparsedValue": false,
|
|
3157
|
+
"CSSVariableReferenceValue": false,
|
|
3107
3158
|
"CustomEvent": false,
|
|
3108
3159
|
"DecompressionStream": false,
|
|
3109
3160
|
"dispatchEvent": false,
|
|
3110
|
-
"DisposableStack": false,
|
|
3111
3161
|
"DOMException": false,
|
|
3112
3162
|
"DOMMatrix": false,
|
|
3113
3163
|
"DOMMatrixReadOnly": false,
|
|
@@ -3297,9 +3347,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3297
3347
|
"StorageBucketManager": false,
|
|
3298
3348
|
"StorageManager": false,
|
|
3299
3349
|
"structuredClone": false,
|
|
3350
|
+
"StylePropertyMapReadOnly": false,
|
|
3300
3351
|
"Subscriber": false,
|
|
3301
3352
|
"SubtleCrypto": false,
|
|
3302
|
-
"SuppressedError": false,
|
|
3303
3353
|
"SyncEvent": false,
|
|
3304
3354
|
"SyncManager": false,
|
|
3305
3355
|
"TaskController": false,
|
|
@@ -3364,7 +3414,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3364
3414
|
"shared-node-browser": {
|
|
3365
3415
|
"AbortController": false,
|
|
3366
3416
|
"AbortSignal": false,
|
|
3367
|
-
"AsyncDisposableStack": false,
|
|
3368
3417
|
"atob": false,
|
|
3369
3418
|
"Blob": false,
|
|
3370
3419
|
"BroadcastChannel": false,
|
|
@@ -3381,7 +3430,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3381
3430
|
"CryptoKey": false,
|
|
3382
3431
|
"CustomEvent": false,
|
|
3383
3432
|
"DecompressionStream": false,
|
|
3384
|
-
"DisposableStack": false,
|
|
3385
3433
|
"DOMException": false,
|
|
3386
3434
|
"ErrorEvent": false,
|
|
3387
3435
|
"Event": false,
|
|
@@ -3405,6 +3453,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3405
3453
|
"PerformanceObserverEntryList": false,
|
|
3406
3454
|
"PerformanceResourceTiming": false,
|
|
3407
3455
|
"queueMicrotask": false,
|
|
3456
|
+
"QuotaExceededError": false,
|
|
3408
3457
|
"ReadableByteStreamController": false,
|
|
3409
3458
|
"ReadableStream": false,
|
|
3410
3459
|
"ReadableStreamBYOBReader": false,
|
|
@@ -3419,7 +3468,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3419
3468
|
"Storage": false,
|
|
3420
3469
|
"structuredClone": false,
|
|
3421
3470
|
"SubtleCrypto": false,
|
|
3422
|
-
"
|
|
3471
|
+
"Temporal": false,
|
|
3423
3472
|
"TextDecoder": false,
|
|
3424
3473
|
"TextDecoderStream": false,
|
|
3425
3474
|
"TextEncoder": false,
|
|
@@ -3439,7 +3488,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3439
3488
|
"AbortController": false,
|
|
3440
3489
|
"AbortSignal": false,
|
|
3441
3490
|
"addEventListener": false,
|
|
3442
|
-
"AsyncDisposableStack": false,
|
|
3443
3491
|
"atob": false,
|
|
3444
3492
|
"BackgroundFetchManager": false,
|
|
3445
3493
|
"BackgroundFetchRecord": false,
|
|
@@ -3468,12 +3516,35 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3468
3516
|
"crypto": false,
|
|
3469
3517
|
"Crypto": false,
|
|
3470
3518
|
"CryptoKey": false,
|
|
3519
|
+
"CSSImageValue": false,
|
|
3520
|
+
"CSSKeywordValue": false,
|
|
3521
|
+
"CSSMathClamp": false,
|
|
3522
|
+
"CSSMathInvert": false,
|
|
3523
|
+
"CSSMathMax": false,
|
|
3524
|
+
"CSSMathMin": false,
|
|
3525
|
+
"CSSMathNegate": false,
|
|
3526
|
+
"CSSMathProduct": false,
|
|
3527
|
+
"CSSMathSum": false,
|
|
3528
|
+
"CSSMathValue": false,
|
|
3529
|
+
"CSSMatrixComponent": false,
|
|
3530
|
+
"CSSNumericArray": false,
|
|
3531
|
+
"CSSNumericValue": false,
|
|
3532
|
+
"CSSPerspective": false,
|
|
3533
|
+
"CSSRotate": false,
|
|
3534
|
+
"CSSScale": false,
|
|
3535
|
+
"CSSSkew": false,
|
|
3471
3536
|
"CSSSkewX": false,
|
|
3472
3537
|
"CSSSkewY": false,
|
|
3538
|
+
"CSSStyleValue": false,
|
|
3539
|
+
"CSSTransformComponent": false,
|
|
3540
|
+
"CSSTransformValue": false,
|
|
3541
|
+
"CSSTranslate": false,
|
|
3542
|
+
"CSSUnitValue": false,
|
|
3543
|
+
"CSSUnparsedValue": false,
|
|
3544
|
+
"CSSVariableReferenceValue": false,
|
|
3473
3545
|
"CustomEvent": false,
|
|
3474
3546
|
"DecompressionStream": false,
|
|
3475
3547
|
"dispatchEvent": false,
|
|
3476
|
-
"DisposableStack": false,
|
|
3477
3548
|
"DOMException": false,
|
|
3478
3549
|
"DOMMatrix": false,
|
|
3479
3550
|
"DOMMatrixReadOnly": false,
|
|
@@ -3636,9 +3707,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3636
3707
|
"StorageBucketManager": false,
|
|
3637
3708
|
"StorageManager": false,
|
|
3638
3709
|
"structuredClone": false,
|
|
3710
|
+
"StylePropertyMapReadOnly": false,
|
|
3639
3711
|
"Subscriber": false,
|
|
3640
3712
|
"SubtleCrypto": false,
|
|
3641
|
-
"SuppressedError": false,
|
|
3642
3713
|
"SyncManager": false,
|
|
3643
3714
|
"TaskController": false,
|
|
3644
3715
|
"TaskPriorityChangeEvent": false,
|
|
@@ -3807,7 +3878,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3807
3878
|
"ai": false,
|
|
3808
3879
|
"AI": false,
|
|
3809
3880
|
"AICreateMonitor": false,
|
|
3810
|
-
"AsyncDisposableStack": false,
|
|
3811
3881
|
"atob": false,
|
|
3812
3882
|
"AudioData": false,
|
|
3813
3883
|
"AudioDecoder": false,
|
|
@@ -3840,13 +3910,36 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3840
3910
|
"crypto": false,
|
|
3841
3911
|
"Crypto": false,
|
|
3842
3912
|
"CryptoKey": false,
|
|
3913
|
+
"CSSImageValue": false,
|
|
3914
|
+
"CSSKeywordValue": false,
|
|
3915
|
+
"CSSMathClamp": false,
|
|
3916
|
+
"CSSMathInvert": false,
|
|
3917
|
+
"CSSMathMax": false,
|
|
3918
|
+
"CSSMathMin": false,
|
|
3919
|
+
"CSSMathNegate": false,
|
|
3920
|
+
"CSSMathProduct": false,
|
|
3921
|
+
"CSSMathSum": false,
|
|
3922
|
+
"CSSMathValue": false,
|
|
3923
|
+
"CSSMatrixComponent": false,
|
|
3924
|
+
"CSSNumericArray": false,
|
|
3925
|
+
"CSSNumericValue": false,
|
|
3926
|
+
"CSSPerspective": false,
|
|
3927
|
+
"CSSRotate": false,
|
|
3928
|
+
"CSSScale": false,
|
|
3929
|
+
"CSSSkew": false,
|
|
3843
3930
|
"CSSSkewX": false,
|
|
3844
3931
|
"CSSSkewY": false,
|
|
3932
|
+
"CSSStyleValue": false,
|
|
3933
|
+
"CSSTransformComponent": false,
|
|
3934
|
+
"CSSTransformValue": false,
|
|
3935
|
+
"CSSTranslate": false,
|
|
3936
|
+
"CSSUnitValue": false,
|
|
3937
|
+
"CSSUnparsedValue": false,
|
|
3938
|
+
"CSSVariableReferenceValue": false,
|
|
3845
3939
|
"CustomEvent": false,
|
|
3846
3940
|
"DecompressionStream": false,
|
|
3847
3941
|
"DedicatedWorkerGlobalScope": false,
|
|
3848
3942
|
"dispatchEvent": false,
|
|
3849
|
-
"DisposableStack": false,
|
|
3850
3943
|
"DOMException": false,
|
|
3851
3944
|
"DOMMatrix": false,
|
|
3852
3945
|
"DOMMatrixReadOnly": false,
|
|
@@ -4035,9 +4128,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4035
4128
|
"StorageBucketManager": false,
|
|
4036
4129
|
"StorageManager": false,
|
|
4037
4130
|
"structuredClone": false,
|
|
4131
|
+
"StylePropertyMapReadOnly": false,
|
|
4038
4132
|
"Subscriber": false,
|
|
4039
4133
|
"SubtleCrypto": false,
|
|
4040
|
-
"SuppressedError": false,
|
|
4041
4134
|
"SyncManager": false,
|
|
4042
4135
|
"TaskController": false,
|
|
4043
4136
|
"TaskPriorityChangeEvent": false,
|
|
@@ -4147,7 +4240,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4147
4240
|
};
|
|
4148
4241
|
}));
|
|
4149
4242
|
//#endregion
|
|
4150
|
-
//#region node_modules/.pnpm/globals@17.
|
|
4243
|
+
//#region node_modules/.pnpm/globals@17.8.0/node_modules/globals/index.js
|
|
4151
4244
|
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4152
4245
|
module.exports = require_globals$1();
|
|
4153
4246
|
}));
|
|
@@ -4403,6 +4496,7 @@ const unusedVarsIgnorePatterns = {
|
|
|
4403
4496
|
const generalJavaScript = [
|
|
4404
4497
|
js.configs.recommended,
|
|
4405
4498
|
prettierConfig$1,
|
|
4499
|
+
comments.recommended,
|
|
4406
4500
|
nodePlugin.configs["flat/recommended"],
|
|
4407
4501
|
{
|
|
4408
4502
|
files: [
|
|
@@ -4419,6 +4513,7 @@ const generalJavaScript = [
|
|
|
4419
4513
|
n: nodePlugin
|
|
4420
4514
|
},
|
|
4421
4515
|
rules: {
|
|
4516
|
+
"@eslint-community/eslint-comments/require-description": "error",
|
|
4422
4517
|
eqeqeq: "error",
|
|
4423
4518
|
"import-x/no-duplicates": ["error", { "prefer-inline": false }],
|
|
4424
4519
|
"import-x/no-unresolved": "error",
|
|
@@ -4465,6 +4560,38 @@ const generalJavaScript = [
|
|
|
4465
4560
|
//#region src/configs/external/prettierConfig.ts
|
|
4466
4561
|
const prettierConfig = { printWidth: 100 };
|
|
4467
4562
|
//#endregion
|
|
4563
|
+
//#region src/configs/helpers/reactLanguageOptions.ts
|
|
4564
|
+
const reactLanguageOptions = {
|
|
4565
|
+
ecmaVersion: 2020,
|
|
4566
|
+
globals: import_globals.default.browser,
|
|
4567
|
+
parserOptions: { ecmaFeatures: { jsx: true } }
|
|
4568
|
+
};
|
|
4569
|
+
//#endregion
|
|
4570
|
+
//#region src/configs/helpers/typeScriptLanguageOptions.ts
|
|
4571
|
+
const typeScriptLanguageOptions = {
|
|
4572
|
+
parser: tseslint.parser,
|
|
4573
|
+
parserOptions: {
|
|
4574
|
+
ecmaVersion: "latest",
|
|
4575
|
+
projectService: true,
|
|
4576
|
+
sourceType: "module",
|
|
4577
|
+
tsconfigRootDir: process.cwd()
|
|
4578
|
+
}
|
|
4579
|
+
};
|
|
4580
|
+
//#endregion
|
|
4581
|
+
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
|
|
4582
|
+
const personalRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [...["fs", "node:fs"].map((name) => {
|
|
4583
|
+
return {
|
|
4584
|
+
message: "Please use node:fs/promises instead.",
|
|
4585
|
+
name
|
|
4586
|
+
};
|
|
4587
|
+
})] });
|
|
4588
|
+
//#endregion
|
|
4589
|
+
//#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
|
|
4590
|
+
const reactRestrictedImports = combineRestrictedImports(generalRestrictedImports, { patterns: [{
|
|
4591
|
+
message: "Please use `import Component from \"@mui/[package]/Component\"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.",
|
|
4592
|
+
regex: "^@mui/[^/]+$"
|
|
4593
|
+
}] });
|
|
4594
|
+
//#endregion
|
|
4468
4595
|
//#region src/configs/helpers/sorting/sortClasses.ts
|
|
4469
4596
|
const sortClasses = {
|
|
4470
4597
|
customGroups: [],
|
|
@@ -4564,14 +4691,6 @@ const sortObjects = {
|
|
|
4564
4691
|
useConfigurationIf: {}
|
|
4565
4692
|
};
|
|
4566
4693
|
//#endregion
|
|
4567
|
-
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
|
|
4568
|
-
const personalRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [...["fs", "node:fs"].map((name) => {
|
|
4569
|
-
return {
|
|
4570
|
-
message: "Please use node:fs/promises instead.",
|
|
4571
|
-
name
|
|
4572
|
-
};
|
|
4573
|
-
})] });
|
|
4574
|
-
//#endregion
|
|
4575
4694
|
//#region src/configs/helpers/sorting/sortNamedImports.ts
|
|
4576
4695
|
const sortNamedImports = {
|
|
4577
4696
|
fallbackSort: { type: "unsorted" },
|
|
@@ -4654,13 +4773,6 @@ const reactHooks = {
|
|
|
4654
4773
|
}
|
|
4655
4774
|
};
|
|
4656
4775
|
//#endregion
|
|
4657
|
-
//#region src/configs/helpers/reactLanguageOptions.ts
|
|
4658
|
-
const reactLanguageOptions = {
|
|
4659
|
-
ecmaVersion: 2020,
|
|
4660
|
-
globals: import_globals.default.browser,
|
|
4661
|
-
parserOptions: { ecmaFeatures: { jsx: true } }
|
|
4662
|
-
};
|
|
4663
|
-
//#endregion
|
|
4664
4776
|
//#region src/configs/general/react.ts
|
|
4665
4777
|
const generalReact = [jsxA11y.configs.recommended, {
|
|
4666
4778
|
languageOptions: reactLanguageOptions,
|
|
@@ -4690,12 +4802,6 @@ const generalReact = [jsxA11y.configs.recommended, {
|
|
|
4690
4802
|
settings: { react: { version: "detect" } }
|
|
4691
4803
|
}];
|
|
4692
4804
|
//#endregion
|
|
4693
|
-
//#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
|
|
4694
|
-
const reactRestrictedImports = combineRestrictedImports(generalRestrictedImports, { patterns: [{
|
|
4695
|
-
message: "Please use `import Component from \"@mui/[package]/Component\"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.",
|
|
4696
|
-
regex: "^@mui/[^/]+$"
|
|
4697
|
-
}] });
|
|
4698
|
-
//#endregion
|
|
4699
4805
|
//#region src/configs/internal/react.ts
|
|
4700
4806
|
const internalReact = [{
|
|
4701
4807
|
languageOptions: reactLanguageOptions,
|
|
@@ -4734,17 +4840,6 @@ const generalPackageJson = [packageJson.configs.recommended, {
|
|
|
4734
4840
|
rules: { "package-json/scripts-name-casing": "error" }
|
|
4735
4841
|
}];
|
|
4736
4842
|
//#endregion
|
|
4737
|
-
//#region src/configs/helpers/typeScriptLanguageOptions.ts
|
|
4738
|
-
const typeScriptLanguageOptions = {
|
|
4739
|
-
parser: tseslint.parser,
|
|
4740
|
-
parserOptions: {
|
|
4741
|
-
ecmaVersion: "latest",
|
|
4742
|
-
projectService: true,
|
|
4743
|
-
sourceType: "module",
|
|
4744
|
-
tsconfigRootDir: process.cwd()
|
|
4745
|
-
}
|
|
4746
|
-
};
|
|
4747
|
-
//#endregion
|
|
4748
4843
|
//#region src/configs/general/typeScript.ts
|
|
4749
4844
|
const generalTypeScript = [
|
|
4750
4845
|
...tseslint.configs.recommended,
|
|
@@ -4992,6 +5087,15 @@ function internalEslintPluginRules(plugin) {
|
|
|
4992
5087
|
}];
|
|
4993
5088
|
}
|
|
4994
5089
|
//#endregion
|
|
5090
|
+
//#region src/configs/internal/eslintPlugin/utility.ts
|
|
5091
|
+
function internalEslintPluginUtility(plugin) {
|
|
5092
|
+
return [...internalEslintPluginBase(plugin), {
|
|
5093
|
+
files: ["**/*.ts"],
|
|
5094
|
+
name: "@alextheman/internal/eslint-plugin-utility",
|
|
5095
|
+
rules: { "jsdoc/require-jsdoc": ["error", requireJsdocOptions] }
|
|
5096
|
+
}];
|
|
5097
|
+
}
|
|
5098
|
+
//#endregion
|
|
4995
5099
|
//#region src/configs/internal/utility/base.ts
|
|
4996
5100
|
function internalUtilityBase(plugin) {
|
|
4997
5101
|
return [...combinedTypeScriptPackage(plugin), {
|
|
@@ -5049,15 +5153,6 @@ function combinedTypeScriptReact(plugin) {
|
|
|
5049
5153
|
];
|
|
5050
5154
|
}
|
|
5051
5155
|
//#endregion
|
|
5052
|
-
//#region src/configs/internal/eslintPlugin/utility.ts
|
|
5053
|
-
function internalEslintPluginUtility(plugin) {
|
|
5054
|
-
return [...internalEslintPluginBase(plugin), {
|
|
5055
|
-
files: ["**/*.ts"],
|
|
5056
|
-
name: "@alextheman/internal/eslint-plugin-utility",
|
|
5057
|
-
rules: { "jsdoc/require-jsdoc": ["error", requireJsdocOptions] }
|
|
5058
|
-
}];
|
|
5059
|
-
}
|
|
5060
|
-
//#endregion
|
|
5061
5156
|
//#region src/configs/internal/packageJson.ts
|
|
5062
5157
|
const internalPackageJson = [...generalPackageJson, {
|
|
5063
5158
|
files: ["**/package.json"],
|
|
@@ -5413,7 +5508,7 @@ const standardiseErrorMessagesOptionsSchema = z.object({ regex: z.string() }).pa
|
|
|
5413
5508
|
function parseStandardiseErrorMessagesOptions(data) {
|
|
5414
5509
|
return standardiseErrorMessagesOptionsSchema.parse(data);
|
|
5415
5510
|
}
|
|
5416
|
-
const schema = createRuleSchemaFromZodSchema(standardiseErrorMessagesOptionsSchema);
|
|
5511
|
+
const schema$1 = createRuleSchemaFromZodSchema(standardiseErrorMessagesOptionsSchema);
|
|
5417
5512
|
const defaultErrorRegex = "^[A-Z]+(?:_[A-Z]+)*$";
|
|
5418
5513
|
function checkCurrentNode(context, node) {
|
|
5419
5514
|
const { regex: errorRegex = defaultErrorRegex } = parseStandardiseErrorMessagesOptions(context.options[0] ?? { regex: defaultErrorRegex });
|
|
@@ -5436,7 +5531,7 @@ const standardiseErrorMessages = createRule({
|
|
|
5436
5531
|
docs: { description: "Enforce a consistent standard for error messages." },
|
|
5437
5532
|
messages: { message: "Expected error message {{error}} to match {{regex}}." },
|
|
5438
5533
|
type: "suggestion",
|
|
5439
|
-
schema
|
|
5534
|
+
schema: schema$1
|
|
5440
5535
|
},
|
|
5441
5536
|
defaultOptions: [{ regex: defaultErrorRegex }],
|
|
5442
5537
|
create(context) {
|
|
@@ -5496,7 +5591,7 @@ function parseUseObjectShorthandOptions(data) {
|
|
|
5496
5591
|
const alexPlugin = {
|
|
5497
5592
|
meta: {
|
|
5498
5593
|
name: "@alextheman/eslint-plugin",
|
|
5499
|
-
version: "5.
|
|
5594
|
+
version: "5.18.1",
|
|
5500
5595
|
namespace: "alextheman"
|
|
5501
5596
|
},
|
|
5502
5597
|
configs: {},
|