@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.cjs
CHANGED
|
@@ -20,7 +20,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
}
|
|
21
21
|
return to;
|
|
22
22
|
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
24
24
|
value: mod,
|
|
25
25
|
enumerable: true
|
|
26
26
|
}) : target, mod));
|
|
@@ -30,6 +30,8 @@ let _typescript_eslint_utils = require("@typescript-eslint/utils");
|
|
|
30
30
|
let zod = require("zod");
|
|
31
31
|
zod = __toESM(zod, 1);
|
|
32
32
|
let _alextheman_utility_v6 = require("@alextheman/utility/v6");
|
|
33
|
+
let _eslint_community_eslint_plugin_eslint_comments_configs = require("@eslint-community/eslint-plugin-eslint-comments/configs");
|
|
34
|
+
_eslint_community_eslint_plugin_eslint_comments_configs = __toESM(_eslint_community_eslint_plugin_eslint_comments_configs, 1);
|
|
33
35
|
let _eslint_js = require("@eslint/js");
|
|
34
36
|
_eslint_js = __toESM(_eslint_js, 1);
|
|
35
37
|
let eslint_config_prettier = require("eslint-config-prettier");
|
|
@@ -44,6 +46,8 @@ let eslint_plugin_perfectionist = require("eslint-plugin-perfectionist");
|
|
|
44
46
|
eslint_plugin_perfectionist = __toESM(eslint_plugin_perfectionist, 1);
|
|
45
47
|
let eslint_plugin_prettier = require("eslint-plugin-prettier");
|
|
46
48
|
eslint_plugin_prettier = __toESM(eslint_plugin_prettier, 1);
|
|
49
|
+
let typescript_eslint = require("typescript-eslint");
|
|
50
|
+
typescript_eslint = __toESM(typescript_eslint, 1);
|
|
47
51
|
let _eslint_react_eslint_plugin = require("@eslint-react/eslint-plugin");
|
|
48
52
|
_eslint_react_eslint_plugin = __toESM(_eslint_react_eslint_plugin, 1);
|
|
49
53
|
let _stylistic_eslint_plugin = require("@stylistic/eslint-plugin");
|
|
@@ -56,12 +60,10 @@ let eslint_plugin_react_hooks = require("eslint-plugin-react-hooks");
|
|
|
56
60
|
eslint_plugin_react_hooks = __toESM(eslint_plugin_react_hooks, 1);
|
|
57
61
|
let eslint_plugin_package_json = require("eslint-plugin-package-json");
|
|
58
62
|
eslint_plugin_package_json = __toESM(eslint_plugin_package_json, 1);
|
|
59
|
-
let typescript_eslint = require("typescript-eslint");
|
|
60
|
-
typescript_eslint = __toESM(typescript_eslint, 1);
|
|
61
63
|
let eslint_plugin_jsdoc = require("eslint-plugin-jsdoc");
|
|
62
64
|
eslint_plugin_jsdoc = __toESM(eslint_plugin_jsdoc, 1);
|
|
63
65
|
let _alextheman_utility_node = require("@alextheman/utility/node");
|
|
64
|
-
//#region node_modules/.pnpm/globals@17.
|
|
66
|
+
//#region node_modules/.pnpm/globals@17.8.0/node_modules/globals/globals.json
|
|
65
67
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
66
68
|
module.exports = {
|
|
67
69
|
"amd": {
|
|
@@ -95,17 +97,31 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
95
97
|
"audioWorklet": {
|
|
96
98
|
"AbortController": false,
|
|
97
99
|
"AbortSignal": false,
|
|
98
|
-
"AsyncDisposableStack": false,
|
|
99
100
|
"AudioWorkletGlobalScope": false,
|
|
100
101
|
"AudioWorkletProcessor": false,
|
|
101
102
|
"ByteLengthQueuingStrategy": false,
|
|
102
103
|
"CompressionStream": false,
|
|
103
104
|
"console": false,
|
|
104
105
|
"CountQueuingStrategy": false,
|
|
106
|
+
"CSSImageValue": false,
|
|
107
|
+
"CSSKeywordValue": false,
|
|
108
|
+
"CSSMathClamp": false,
|
|
109
|
+
"CSSMathInvert": false,
|
|
110
|
+
"CSSMathMax": false,
|
|
111
|
+
"CSSMathMin": false,
|
|
112
|
+
"CSSMathNegate": false,
|
|
113
|
+
"CSSMathProduct": false,
|
|
114
|
+
"CSSMathSum": false,
|
|
115
|
+
"CSSMathValue": false,
|
|
116
|
+
"CSSNumericArray": false,
|
|
117
|
+
"CSSNumericValue": false,
|
|
118
|
+
"CSSStyleValue": false,
|
|
119
|
+
"CSSUnitValue": false,
|
|
120
|
+
"CSSUnparsedValue": false,
|
|
121
|
+
"CSSVariableReferenceValue": false,
|
|
105
122
|
"currentFrame": false,
|
|
106
123
|
"currentTime": false,
|
|
107
124
|
"DecompressionStream": false,
|
|
108
|
-
"DisposableStack": false,
|
|
109
125
|
"Event": false,
|
|
110
126
|
"EventTarget": false,
|
|
111
127
|
"MessageEvent": false,
|
|
@@ -121,7 +137,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
121
137
|
"ReadableStreamDefaultReader": false,
|
|
122
138
|
"registerProcessor": false,
|
|
123
139
|
"sampleRate": false,
|
|
124
|
-
"
|
|
140
|
+
"StylePropertyMapReadOnly": false,
|
|
125
141
|
"Temporal": false,
|
|
126
142
|
"TextDecoderStream": false,
|
|
127
143
|
"TextEncoderStream": false,
|
|
@@ -152,7 +168,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
152
168
|
"AnimationEvent": false,
|
|
153
169
|
"AnimationPlaybackEvent": false,
|
|
154
170
|
"AnimationTimeline": false,
|
|
155
|
-
"AsyncDisposableStack": false,
|
|
156
171
|
"atob": false,
|
|
157
172
|
"Attr": false,
|
|
158
173
|
"Audio": false,
|
|
@@ -262,6 +277,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
262
277
|
"CSSConditionRule": false,
|
|
263
278
|
"CSSContainerRule": false,
|
|
264
279
|
"CSSCounterStyleRule": false,
|
|
280
|
+
"CSSFontFaceDescriptors": false,
|
|
265
281
|
"CSSFontFaceRule": false,
|
|
266
282
|
"CSSFontFeatureValuesRule": false,
|
|
267
283
|
"CSSFontPaletteValuesRule": false,
|
|
@@ -298,6 +314,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
298
314
|
"CSSPositionTryRule": false,
|
|
299
315
|
"CSSPositionValue": false,
|
|
300
316
|
"CSSPropertyRule": false,
|
|
317
|
+
"CSSPseudoElement": false,
|
|
301
318
|
"CSSRotate": false,
|
|
302
319
|
"CSSRule": false,
|
|
303
320
|
"CSSRuleList": false,
|
|
@@ -339,7 +356,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
339
356
|
"DevicePosture": false,
|
|
340
357
|
"DigitalCredential": false,
|
|
341
358
|
"dispatchEvent": false,
|
|
342
|
-
"DisposableStack": false,
|
|
343
359
|
"document": false,
|
|
344
360
|
"Document": false,
|
|
345
361
|
"DocumentFragment": false,
|
|
@@ -557,6 +573,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
557
573
|
"HTMLTrackElement": false,
|
|
558
574
|
"HTMLUListElement": false,
|
|
559
575
|
"HTMLUnknownElement": false,
|
|
576
|
+
"HTMLUserMediaElement": false,
|
|
560
577
|
"HTMLVideoElement": false,
|
|
561
578
|
"IDBCursor": false,
|
|
562
579
|
"IDBCursorWithValue": false,
|
|
@@ -592,6 +609,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
592
609
|
"InputDeviceInfo": false,
|
|
593
610
|
"InputEvent": false,
|
|
594
611
|
"IntegrityViolationReportBody": false,
|
|
612
|
+
"InteractionContentfulPaint": false,
|
|
595
613
|
"InterestEvent": false,
|
|
596
614
|
"IntersectionObserver": false,
|
|
597
615
|
"IntersectionObserverEntry": false,
|
|
@@ -601,6 +619,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
601
619
|
"KeyboardLayoutMap": false,
|
|
602
620
|
"KeyframeEffect": false,
|
|
603
621
|
"LanguageDetector": false,
|
|
622
|
+
"LanguageModel": false,
|
|
604
623
|
"LargestContentfulPaint": false,
|
|
605
624
|
"LaunchParams": false,
|
|
606
625
|
"launchQueue": false,
|
|
@@ -665,6 +684,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
665
684
|
"MimeType": false,
|
|
666
685
|
"MimeTypeArray": false,
|
|
667
686
|
"model": false,
|
|
687
|
+
"ModelContext": false,
|
|
668
688
|
"ModelGenericSession": false,
|
|
669
689
|
"ModelManager": false,
|
|
670
690
|
"MouseEvent": false,
|
|
@@ -873,6 +893,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
873
893
|
"PerformanceResourceTiming": false,
|
|
874
894
|
"PerformanceScriptTiming": false,
|
|
875
895
|
"PerformanceServerTiming": false,
|
|
896
|
+
"PerformanceSoftNavigation": false,
|
|
876
897
|
"PerformanceTiming": false,
|
|
877
898
|
"PerformanceTimingConfidence": false,
|
|
878
899
|
"PeriodicSyncManager": false,
|
|
@@ -1041,7 +1062,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1041
1062
|
"Subscriber": false,
|
|
1042
1063
|
"SubtleCrypto": false,
|
|
1043
1064
|
"Summarizer": false,
|
|
1044
|
-
"SuppressedError": false,
|
|
1045
1065
|
"SVGAElement": false,
|
|
1046
1066
|
"SVGAngle": false,
|
|
1047
1067
|
"SVGAnimatedAngle": false,
|
|
@@ -1241,6 +1261,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1241
1261
|
"WebGLTransformFeedback": false,
|
|
1242
1262
|
"WebGLUniformLocation": false,
|
|
1243
1263
|
"WebGLVertexArrayObject": false,
|
|
1264
|
+
"WebMCPEvent": false,
|
|
1244
1265
|
"WebSocket": false,
|
|
1245
1266
|
"WebSocketError": false,
|
|
1246
1267
|
"WebSocketStream": false,
|
|
@@ -1326,6 +1347,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1326
1347
|
"AggregateError": false,
|
|
1327
1348
|
"Array": false,
|
|
1328
1349
|
"ArrayBuffer": false,
|
|
1350
|
+
"AsyncDisposableStack": false,
|
|
1329
1351
|
"Atomics": false,
|
|
1330
1352
|
"BigInt": false,
|
|
1331
1353
|
"BigInt64Array": false,
|
|
@@ -1335,6 +1357,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1335
1357
|
"Date": false,
|
|
1336
1358
|
"decodeURI": false,
|
|
1337
1359
|
"decodeURIComponent": false,
|
|
1360
|
+
"DisposableStack": false,
|
|
1338
1361
|
"encodeURI": false,
|
|
1339
1362
|
"encodeURIComponent": false,
|
|
1340
1363
|
"Error": false,
|
|
@@ -1372,6 +1395,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1372
1395
|
"Set": false,
|
|
1373
1396
|
"SharedArrayBuffer": false,
|
|
1374
1397
|
"String": false,
|
|
1398
|
+
"SuppressedError": false,
|
|
1375
1399
|
"Symbol": false,
|
|
1376
1400
|
"SyntaxError": false,
|
|
1377
1401
|
"TypeError": false,
|
|
@@ -1391,7 +1415,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1391
1415
|
"AbortSignal": false,
|
|
1392
1416
|
"addEventListener": false,
|
|
1393
1417
|
"alert": false,
|
|
1394
|
-
"AsyncDisposableStack": false,
|
|
1395
1418
|
"atob": false,
|
|
1396
1419
|
"Blob": false,
|
|
1397
1420
|
"BroadcastChannel": false,
|
|
@@ -1415,7 +1438,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1415
1438
|
"CustomEvent": false,
|
|
1416
1439
|
"DecompressionStream": false,
|
|
1417
1440
|
"dispatchEvent": false,
|
|
1418
|
-
"DisposableStack": false,
|
|
1419
1441
|
"DOMException": false,
|
|
1420
1442
|
"ErrorEvent": false,
|
|
1421
1443
|
"Event": false,
|
|
@@ -1466,7 +1488,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1466
1488
|
"ShadowRealm": false,
|
|
1467
1489
|
"structuredClone": false,
|
|
1468
1490
|
"SubtleCrypto": false,
|
|
1469
|
-
"SuppressedError": false,
|
|
1470
1491
|
"TextDecoder": false,
|
|
1471
1492
|
"TextDecoderStream": false,
|
|
1472
1493
|
"TextEncoder": false,
|
|
@@ -1512,7 +1533,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1512
1533
|
"AbortSignal": false,
|
|
1513
1534
|
"addEventListener": false,
|
|
1514
1535
|
"alert": false,
|
|
1515
|
-
"AsyncDisposableStack": false,
|
|
1516
1536
|
"atob": false,
|
|
1517
1537
|
"Blob": false,
|
|
1518
1538
|
"BroadcastChannel": false,
|
|
@@ -1540,8 +1560,14 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1540
1560
|
"DecompressionStream": false,
|
|
1541
1561
|
"Deno": false,
|
|
1542
1562
|
"dispatchEvent": false,
|
|
1543
|
-
"DisposableStack": false,
|
|
1544
1563
|
"DOMException": false,
|
|
1564
|
+
"DOMMatrix": false,
|
|
1565
|
+
"DOMMatrixReadOnly": false,
|
|
1566
|
+
"DOMPoint": false,
|
|
1567
|
+
"DOMPointReadOnly": false,
|
|
1568
|
+
"DOMQuad": false,
|
|
1569
|
+
"DOMRect": false,
|
|
1570
|
+
"DOMRectReadOnly": false,
|
|
1545
1571
|
"ErrorEvent": false,
|
|
1546
1572
|
"Event": false,
|
|
1547
1573
|
"EventSource": false,
|
|
@@ -1593,16 +1619,22 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1593
1619
|
"GPUValidationError": false,
|
|
1594
1620
|
"Headers": false,
|
|
1595
1621
|
"ImageBitmap": false,
|
|
1622
|
+
"ImageBitmapRenderingContext": false,
|
|
1596
1623
|
"ImageData": false,
|
|
1597
1624
|
"localStorage": false,
|
|
1598
1625
|
"location": false,
|
|
1599
1626
|
"Location": false,
|
|
1627
|
+
"Lock": false,
|
|
1628
|
+
"LockManager": false,
|
|
1600
1629
|
"MessageChannel": false,
|
|
1601
1630
|
"MessageEvent": false,
|
|
1602
1631
|
"MessagePort": false,
|
|
1603
1632
|
"name": false,
|
|
1604
1633
|
"navigator": false,
|
|
1605
1634
|
"Navigator": false,
|
|
1635
|
+
"NavigatorUAData": false,
|
|
1636
|
+
"nodeBootstrap": false,
|
|
1637
|
+
"OffscreenCanvas": false,
|
|
1606
1638
|
"onbeforeunload": true,
|
|
1607
1639
|
"onerror": true,
|
|
1608
1640
|
"onload": true,
|
|
@@ -1639,7 +1671,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1639
1671
|
"Storage": false,
|
|
1640
1672
|
"structuredClone": false,
|
|
1641
1673
|
"SubtleCrypto": false,
|
|
1642
|
-
"SuppressedError": false,
|
|
1643
1674
|
"Temporal": false,
|
|
1644
1675
|
"TextDecoder": false,
|
|
1645
1676
|
"TextDecoderStream": false,
|
|
@@ -2415,6 +2446,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2415
2446
|
"AggregateError": false,
|
|
2416
2447
|
"Array": false,
|
|
2417
2448
|
"ArrayBuffer": false,
|
|
2449
|
+
"AsyncDisposableStack": false,
|
|
2418
2450
|
"Atomics": false,
|
|
2419
2451
|
"BigInt": false,
|
|
2420
2452
|
"BigInt64Array": false,
|
|
@@ -2424,6 +2456,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2424
2456
|
"Date": false,
|
|
2425
2457
|
"decodeURI": false,
|
|
2426
2458
|
"decodeURIComponent": false,
|
|
2459
|
+
"DisposableStack": false,
|
|
2427
2460
|
"encodeURI": false,
|
|
2428
2461
|
"encodeURIComponent": false,
|
|
2429
2462
|
"Error": false,
|
|
@@ -2461,6 +2494,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2461
2494
|
"Set": false,
|
|
2462
2495
|
"SharedArrayBuffer": false,
|
|
2463
2496
|
"String": false,
|
|
2497
|
+
"SuppressedError": false,
|
|
2464
2498
|
"Symbol": false,
|
|
2465
2499
|
"SyntaxError": false,
|
|
2466
2500
|
"TypeError": false,
|
|
@@ -2739,7 +2773,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2739
2773
|
"__filename": false,
|
|
2740
2774
|
"AbortController": false,
|
|
2741
2775
|
"AbortSignal": false,
|
|
2742
|
-
"AsyncDisposableStack": false,
|
|
2743
2776
|
"atob": false,
|
|
2744
2777
|
"Blob": false,
|
|
2745
2778
|
"BroadcastChannel": false,
|
|
@@ -2758,7 +2791,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2758
2791
|
"CryptoKey": false,
|
|
2759
2792
|
"CustomEvent": false,
|
|
2760
2793
|
"DecompressionStream": false,
|
|
2761
|
-
"DisposableStack": false,
|
|
2762
2794
|
"DOMException": false,
|
|
2763
2795
|
"ErrorEvent": false,
|
|
2764
2796
|
"Event": false,
|
|
@@ -2786,6 +2818,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2786
2818
|
"PerformanceResourceTiming": false,
|
|
2787
2819
|
"process": false,
|
|
2788
2820
|
"queueMicrotask": false,
|
|
2821
|
+
"QuotaExceededError": false,
|
|
2789
2822
|
"ReadableByteStreamController": false,
|
|
2790
2823
|
"ReadableStream": false,
|
|
2791
2824
|
"ReadableStreamBYOBReader": false,
|
|
@@ -2802,7 +2835,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2802
2835
|
"Storage": false,
|
|
2803
2836
|
"structuredClone": false,
|
|
2804
2837
|
"SubtleCrypto": false,
|
|
2805
|
-
"
|
|
2838
|
+
"Temporal": false,
|
|
2806
2839
|
"TextDecoder": false,
|
|
2807
2840
|
"TextDecoderStream": false,
|
|
2808
2841
|
"TextEncoder": false,
|
|
@@ -2821,7 +2854,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2821
2854
|
"nodeBuiltin": {
|
|
2822
2855
|
"AbortController": false,
|
|
2823
2856
|
"AbortSignal": false,
|
|
2824
|
-
"AsyncDisposableStack": false,
|
|
2825
2857
|
"atob": false,
|
|
2826
2858
|
"Blob": false,
|
|
2827
2859
|
"BroadcastChannel": false,
|
|
@@ -2840,7 +2872,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2840
2872
|
"CryptoKey": false,
|
|
2841
2873
|
"CustomEvent": false,
|
|
2842
2874
|
"DecompressionStream": false,
|
|
2843
|
-
"DisposableStack": false,
|
|
2844
2875
|
"DOMException": false,
|
|
2845
2876
|
"ErrorEvent": false,
|
|
2846
2877
|
"Event": false,
|
|
@@ -2866,6 +2897,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2866
2897
|
"PerformanceResourceTiming": false,
|
|
2867
2898
|
"process": false,
|
|
2868
2899
|
"queueMicrotask": false,
|
|
2900
|
+
"QuotaExceededError": false,
|
|
2869
2901
|
"ReadableByteStreamController": false,
|
|
2870
2902
|
"ReadableStream": false,
|
|
2871
2903
|
"ReadableStreamBYOBReader": false,
|
|
@@ -2881,7 +2913,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2881
2913
|
"Storage": false,
|
|
2882
2914
|
"structuredClone": false,
|
|
2883
2915
|
"SubtleCrypto": false,
|
|
2884
|
-
"
|
|
2916
|
+
"Temporal": false,
|
|
2885
2917
|
"TextDecoder": false,
|
|
2886
2918
|
"TextDecoderStream": false,
|
|
2887
2919
|
"TextEncoder": false,
|
|
@@ -2898,7 +2930,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2898
2930
|
"WritableStreamDefaultWriter": false
|
|
2899
2931
|
},
|
|
2900
2932
|
"paintWorklet": {
|
|
2901
|
-
"AsyncDisposableStack": false,
|
|
2902
2933
|
"ByteLengthQueuingStrategy": false,
|
|
2903
2934
|
"console": false,
|
|
2904
2935
|
"CountQueuingStrategy": false,
|
|
@@ -2930,7 +2961,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2930
2961
|
"CSSUnparsedValue": false,
|
|
2931
2962
|
"CSSVariableReferenceValue": false,
|
|
2932
2963
|
"devicePixelRatio": false,
|
|
2933
|
-
"DisposableStack": false,
|
|
2934
2964
|
"PaintRenderingContext2D": false,
|
|
2935
2965
|
"PaintSize": false,
|
|
2936
2966
|
"PaintWorkletGlobalScope": false,
|
|
@@ -2944,7 +2974,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2944
2974
|
"ReadableStreamDefaultReader": false,
|
|
2945
2975
|
"registerPaint": false,
|
|
2946
2976
|
"StylePropertyMapReadOnly": false,
|
|
2947
|
-
"SuppressedError": false,
|
|
2948
2977
|
"Temporal": false,
|
|
2949
2978
|
"TransformStream": false,
|
|
2950
2979
|
"TransformStreamDefaultController": false,
|
|
@@ -3085,7 +3114,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3085
3114
|
"ai": false,
|
|
3086
3115
|
"AI": false,
|
|
3087
3116
|
"AICreateMonitor": false,
|
|
3088
|
-
"AsyncDisposableStack": false,
|
|
3089
3117
|
"atob": false,
|
|
3090
3118
|
"BackgroundFetchEvent": false,
|
|
3091
3119
|
"BackgroundFetchManager": false,
|
|
@@ -3122,12 +3150,35 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3122
3150
|
"crypto": false,
|
|
3123
3151
|
"Crypto": false,
|
|
3124
3152
|
"CryptoKey": false,
|
|
3153
|
+
"CSSImageValue": false,
|
|
3154
|
+
"CSSKeywordValue": false,
|
|
3155
|
+
"CSSMathClamp": false,
|
|
3156
|
+
"CSSMathInvert": false,
|
|
3157
|
+
"CSSMathMax": false,
|
|
3158
|
+
"CSSMathMin": false,
|
|
3159
|
+
"CSSMathNegate": false,
|
|
3160
|
+
"CSSMathProduct": false,
|
|
3161
|
+
"CSSMathSum": false,
|
|
3162
|
+
"CSSMathValue": false,
|
|
3163
|
+
"CSSMatrixComponent": false,
|
|
3164
|
+
"CSSNumericArray": false,
|
|
3165
|
+
"CSSNumericValue": false,
|
|
3166
|
+
"CSSPerspective": false,
|
|
3167
|
+
"CSSRotate": false,
|
|
3168
|
+
"CSSScale": false,
|
|
3169
|
+
"CSSSkew": false,
|
|
3125
3170
|
"CSSSkewX": false,
|
|
3126
3171
|
"CSSSkewY": false,
|
|
3172
|
+
"CSSStyleValue": false,
|
|
3173
|
+
"CSSTransformComponent": false,
|
|
3174
|
+
"CSSTransformValue": false,
|
|
3175
|
+
"CSSTranslate": false,
|
|
3176
|
+
"CSSUnitValue": false,
|
|
3177
|
+
"CSSUnparsedValue": false,
|
|
3178
|
+
"CSSVariableReferenceValue": false,
|
|
3127
3179
|
"CustomEvent": false,
|
|
3128
3180
|
"DecompressionStream": false,
|
|
3129
3181
|
"dispatchEvent": false,
|
|
3130
|
-
"DisposableStack": false,
|
|
3131
3182
|
"DOMException": false,
|
|
3132
3183
|
"DOMMatrix": false,
|
|
3133
3184
|
"DOMMatrixReadOnly": false,
|
|
@@ -3317,9 +3368,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3317
3368
|
"StorageBucketManager": false,
|
|
3318
3369
|
"StorageManager": false,
|
|
3319
3370
|
"structuredClone": false,
|
|
3371
|
+
"StylePropertyMapReadOnly": false,
|
|
3320
3372
|
"Subscriber": false,
|
|
3321
3373
|
"SubtleCrypto": false,
|
|
3322
|
-
"SuppressedError": false,
|
|
3323
3374
|
"SyncEvent": false,
|
|
3324
3375
|
"SyncManager": false,
|
|
3325
3376
|
"TaskController": false,
|
|
@@ -3384,7 +3435,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3384
3435
|
"shared-node-browser": {
|
|
3385
3436
|
"AbortController": false,
|
|
3386
3437
|
"AbortSignal": false,
|
|
3387
|
-
"AsyncDisposableStack": false,
|
|
3388
3438
|
"atob": false,
|
|
3389
3439
|
"Blob": false,
|
|
3390
3440
|
"BroadcastChannel": false,
|
|
@@ -3401,7 +3451,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3401
3451
|
"CryptoKey": false,
|
|
3402
3452
|
"CustomEvent": false,
|
|
3403
3453
|
"DecompressionStream": false,
|
|
3404
|
-
"DisposableStack": false,
|
|
3405
3454
|
"DOMException": false,
|
|
3406
3455
|
"ErrorEvent": false,
|
|
3407
3456
|
"Event": false,
|
|
@@ -3425,6 +3474,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3425
3474
|
"PerformanceObserverEntryList": false,
|
|
3426
3475
|
"PerformanceResourceTiming": false,
|
|
3427
3476
|
"queueMicrotask": false,
|
|
3477
|
+
"QuotaExceededError": false,
|
|
3428
3478
|
"ReadableByteStreamController": false,
|
|
3429
3479
|
"ReadableStream": false,
|
|
3430
3480
|
"ReadableStreamBYOBReader": false,
|
|
@@ -3439,7 +3489,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3439
3489
|
"Storage": false,
|
|
3440
3490
|
"structuredClone": false,
|
|
3441
3491
|
"SubtleCrypto": false,
|
|
3442
|
-
"
|
|
3492
|
+
"Temporal": false,
|
|
3443
3493
|
"TextDecoder": false,
|
|
3444
3494
|
"TextDecoderStream": false,
|
|
3445
3495
|
"TextEncoder": false,
|
|
@@ -3459,7 +3509,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3459
3509
|
"AbortController": false,
|
|
3460
3510
|
"AbortSignal": false,
|
|
3461
3511
|
"addEventListener": false,
|
|
3462
|
-
"AsyncDisposableStack": false,
|
|
3463
3512
|
"atob": false,
|
|
3464
3513
|
"BackgroundFetchManager": false,
|
|
3465
3514
|
"BackgroundFetchRecord": false,
|
|
@@ -3488,12 +3537,35 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3488
3537
|
"crypto": false,
|
|
3489
3538
|
"Crypto": false,
|
|
3490
3539
|
"CryptoKey": false,
|
|
3540
|
+
"CSSImageValue": false,
|
|
3541
|
+
"CSSKeywordValue": false,
|
|
3542
|
+
"CSSMathClamp": false,
|
|
3543
|
+
"CSSMathInvert": false,
|
|
3544
|
+
"CSSMathMax": false,
|
|
3545
|
+
"CSSMathMin": false,
|
|
3546
|
+
"CSSMathNegate": false,
|
|
3547
|
+
"CSSMathProduct": false,
|
|
3548
|
+
"CSSMathSum": false,
|
|
3549
|
+
"CSSMathValue": false,
|
|
3550
|
+
"CSSMatrixComponent": false,
|
|
3551
|
+
"CSSNumericArray": false,
|
|
3552
|
+
"CSSNumericValue": false,
|
|
3553
|
+
"CSSPerspective": false,
|
|
3554
|
+
"CSSRotate": false,
|
|
3555
|
+
"CSSScale": false,
|
|
3556
|
+
"CSSSkew": false,
|
|
3491
3557
|
"CSSSkewX": false,
|
|
3492
3558
|
"CSSSkewY": false,
|
|
3559
|
+
"CSSStyleValue": false,
|
|
3560
|
+
"CSSTransformComponent": false,
|
|
3561
|
+
"CSSTransformValue": false,
|
|
3562
|
+
"CSSTranslate": false,
|
|
3563
|
+
"CSSUnitValue": false,
|
|
3564
|
+
"CSSUnparsedValue": false,
|
|
3565
|
+
"CSSVariableReferenceValue": false,
|
|
3493
3566
|
"CustomEvent": false,
|
|
3494
3567
|
"DecompressionStream": false,
|
|
3495
3568
|
"dispatchEvent": false,
|
|
3496
|
-
"DisposableStack": false,
|
|
3497
3569
|
"DOMException": false,
|
|
3498
3570
|
"DOMMatrix": false,
|
|
3499
3571
|
"DOMMatrixReadOnly": false,
|
|
@@ -3656,9 +3728,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3656
3728
|
"StorageBucketManager": false,
|
|
3657
3729
|
"StorageManager": false,
|
|
3658
3730
|
"structuredClone": false,
|
|
3731
|
+
"StylePropertyMapReadOnly": false,
|
|
3659
3732
|
"Subscriber": false,
|
|
3660
3733
|
"SubtleCrypto": false,
|
|
3661
|
-
"SuppressedError": false,
|
|
3662
3734
|
"SyncManager": false,
|
|
3663
3735
|
"TaskController": false,
|
|
3664
3736
|
"TaskPriorityChangeEvent": false,
|
|
@@ -3827,7 +3899,6 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3827
3899
|
"ai": false,
|
|
3828
3900
|
"AI": false,
|
|
3829
3901
|
"AICreateMonitor": false,
|
|
3830
|
-
"AsyncDisposableStack": false,
|
|
3831
3902
|
"atob": false,
|
|
3832
3903
|
"AudioData": false,
|
|
3833
3904
|
"AudioDecoder": false,
|
|
@@ -3860,13 +3931,36 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3860
3931
|
"crypto": false,
|
|
3861
3932
|
"Crypto": false,
|
|
3862
3933
|
"CryptoKey": false,
|
|
3934
|
+
"CSSImageValue": false,
|
|
3935
|
+
"CSSKeywordValue": false,
|
|
3936
|
+
"CSSMathClamp": false,
|
|
3937
|
+
"CSSMathInvert": false,
|
|
3938
|
+
"CSSMathMax": false,
|
|
3939
|
+
"CSSMathMin": false,
|
|
3940
|
+
"CSSMathNegate": false,
|
|
3941
|
+
"CSSMathProduct": false,
|
|
3942
|
+
"CSSMathSum": false,
|
|
3943
|
+
"CSSMathValue": false,
|
|
3944
|
+
"CSSMatrixComponent": false,
|
|
3945
|
+
"CSSNumericArray": false,
|
|
3946
|
+
"CSSNumericValue": false,
|
|
3947
|
+
"CSSPerspective": false,
|
|
3948
|
+
"CSSRotate": false,
|
|
3949
|
+
"CSSScale": false,
|
|
3950
|
+
"CSSSkew": false,
|
|
3863
3951
|
"CSSSkewX": false,
|
|
3864
3952
|
"CSSSkewY": false,
|
|
3953
|
+
"CSSStyleValue": false,
|
|
3954
|
+
"CSSTransformComponent": false,
|
|
3955
|
+
"CSSTransformValue": false,
|
|
3956
|
+
"CSSTranslate": false,
|
|
3957
|
+
"CSSUnitValue": false,
|
|
3958
|
+
"CSSUnparsedValue": false,
|
|
3959
|
+
"CSSVariableReferenceValue": false,
|
|
3865
3960
|
"CustomEvent": false,
|
|
3866
3961
|
"DecompressionStream": false,
|
|
3867
3962
|
"DedicatedWorkerGlobalScope": false,
|
|
3868
3963
|
"dispatchEvent": false,
|
|
3869
|
-
"DisposableStack": false,
|
|
3870
3964
|
"DOMException": false,
|
|
3871
3965
|
"DOMMatrix": false,
|
|
3872
3966
|
"DOMMatrixReadOnly": false,
|
|
@@ -4055,9 +4149,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4055
4149
|
"StorageBucketManager": false,
|
|
4056
4150
|
"StorageManager": false,
|
|
4057
4151
|
"structuredClone": false,
|
|
4152
|
+
"StylePropertyMapReadOnly": false,
|
|
4058
4153
|
"Subscriber": false,
|
|
4059
4154
|
"SubtleCrypto": false,
|
|
4060
|
-
"SuppressedError": false,
|
|
4061
4155
|
"SyncManager": false,
|
|
4062
4156
|
"TaskController": false,
|
|
4063
4157
|
"TaskPriorityChangeEvent": false,
|
|
@@ -4167,7 +4261,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4167
4261
|
};
|
|
4168
4262
|
}));
|
|
4169
4263
|
//#endregion
|
|
4170
|
-
//#region node_modules/.pnpm/globals@17.
|
|
4264
|
+
//#region node_modules/.pnpm/globals@17.8.0/node_modules/globals/index.js
|
|
4171
4265
|
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4172
4266
|
module.exports = require_globals$1();
|
|
4173
4267
|
}));
|
|
@@ -4423,6 +4517,7 @@ const unusedVarsIgnorePatterns = {
|
|
|
4423
4517
|
const generalJavaScript = [
|
|
4424
4518
|
_eslint_js.default.configs.recommended,
|
|
4425
4519
|
eslint_config_prettier.default,
|
|
4520
|
+
_eslint_community_eslint_plugin_eslint_comments_configs.default.recommended,
|
|
4426
4521
|
eslint_plugin_n.default.configs["flat/recommended"],
|
|
4427
4522
|
{
|
|
4428
4523
|
files: [
|
|
@@ -4439,6 +4534,7 @@ const generalJavaScript = [
|
|
|
4439
4534
|
n: eslint_plugin_n.default
|
|
4440
4535
|
},
|
|
4441
4536
|
rules: {
|
|
4537
|
+
"@eslint-community/eslint-comments/require-description": "error",
|
|
4442
4538
|
eqeqeq: "error",
|
|
4443
4539
|
"import-x/no-duplicates": ["error", { "prefer-inline": false }],
|
|
4444
4540
|
"import-x/no-unresolved": "error",
|
|
@@ -4485,6 +4581,38 @@ const generalJavaScript = [
|
|
|
4485
4581
|
//#region src/configs/external/prettierConfig.ts
|
|
4486
4582
|
const prettierConfig = { printWidth: 100 };
|
|
4487
4583
|
//#endregion
|
|
4584
|
+
//#region src/configs/helpers/reactLanguageOptions.ts
|
|
4585
|
+
const reactLanguageOptions = {
|
|
4586
|
+
ecmaVersion: 2020,
|
|
4587
|
+
globals: import_globals.default.browser,
|
|
4588
|
+
parserOptions: { ecmaFeatures: { jsx: true } }
|
|
4589
|
+
};
|
|
4590
|
+
//#endregion
|
|
4591
|
+
//#region src/configs/helpers/typeScriptLanguageOptions.ts
|
|
4592
|
+
const typeScriptLanguageOptions = {
|
|
4593
|
+
parser: typescript_eslint.default.parser,
|
|
4594
|
+
parserOptions: {
|
|
4595
|
+
ecmaVersion: "latest",
|
|
4596
|
+
projectService: true,
|
|
4597
|
+
sourceType: "module",
|
|
4598
|
+
tsconfigRootDir: process.cwd()
|
|
4599
|
+
}
|
|
4600
|
+
};
|
|
4601
|
+
//#endregion
|
|
4602
|
+
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
|
|
4603
|
+
const personalRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [...["fs", "node:fs"].map((name) => {
|
|
4604
|
+
return {
|
|
4605
|
+
message: "Please use node:fs/promises instead.",
|
|
4606
|
+
name
|
|
4607
|
+
};
|
|
4608
|
+
})] });
|
|
4609
|
+
//#endregion
|
|
4610
|
+
//#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
|
|
4611
|
+
const reactRestrictedImports = combineRestrictedImports(generalRestrictedImports, { patterns: [{
|
|
4612
|
+
message: "Please use `import Component from \"@mui/[package]/Component\"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.",
|
|
4613
|
+
regex: "^@mui/[^/]+$"
|
|
4614
|
+
}] });
|
|
4615
|
+
//#endregion
|
|
4488
4616
|
//#region src/configs/helpers/sorting/sortClasses.ts
|
|
4489
4617
|
const sortClasses = {
|
|
4490
4618
|
customGroups: [],
|
|
@@ -4584,14 +4712,6 @@ const sortObjects = {
|
|
|
4584
4712
|
useConfigurationIf: {}
|
|
4585
4713
|
};
|
|
4586
4714
|
//#endregion
|
|
4587
|
-
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
|
|
4588
|
-
const personalRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [...["fs", "node:fs"].map((name) => {
|
|
4589
|
-
return {
|
|
4590
|
-
message: "Please use node:fs/promises instead.",
|
|
4591
|
-
name
|
|
4592
|
-
};
|
|
4593
|
-
})] });
|
|
4594
|
-
//#endregion
|
|
4595
4715
|
//#region src/configs/helpers/sorting/sortNamedImports.ts
|
|
4596
4716
|
const sortNamedImports = {
|
|
4597
4717
|
fallbackSort: { type: "unsorted" },
|
|
@@ -4674,13 +4794,6 @@ const reactHooks = {
|
|
|
4674
4794
|
}
|
|
4675
4795
|
};
|
|
4676
4796
|
//#endregion
|
|
4677
|
-
//#region src/configs/helpers/reactLanguageOptions.ts
|
|
4678
|
-
const reactLanguageOptions = {
|
|
4679
|
-
ecmaVersion: 2020,
|
|
4680
|
-
globals: import_globals.default.browser,
|
|
4681
|
-
parserOptions: { ecmaFeatures: { jsx: true } }
|
|
4682
|
-
};
|
|
4683
|
-
//#endregion
|
|
4684
4797
|
//#region src/configs/general/react.ts
|
|
4685
4798
|
const generalReact = [eslint_plugin_jsx_a11y_x.default.configs.recommended, {
|
|
4686
4799
|
languageOptions: reactLanguageOptions,
|
|
@@ -4710,12 +4823,6 @@ const generalReact = [eslint_plugin_jsx_a11y_x.default.configs.recommended, {
|
|
|
4710
4823
|
settings: { react: { version: "detect" } }
|
|
4711
4824
|
}];
|
|
4712
4825
|
//#endregion
|
|
4713
|
-
//#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
|
|
4714
|
-
const reactRestrictedImports = combineRestrictedImports(generalRestrictedImports, { patterns: [{
|
|
4715
|
-
message: "Please use `import Component from \"@mui/[package]/Component\"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.",
|
|
4716
|
-
regex: "^@mui/[^/]+$"
|
|
4717
|
-
}] });
|
|
4718
|
-
//#endregion
|
|
4719
4826
|
//#region src/configs/internal/react.ts
|
|
4720
4827
|
const internalReact = [{
|
|
4721
4828
|
languageOptions: reactLanguageOptions,
|
|
@@ -4754,17 +4861,6 @@ const generalPackageJson = [eslint_plugin_package_json.default.configs.recommend
|
|
|
4754
4861
|
rules: { "package-json/scripts-name-casing": "error" }
|
|
4755
4862
|
}];
|
|
4756
4863
|
//#endregion
|
|
4757
|
-
//#region src/configs/helpers/typeScriptLanguageOptions.ts
|
|
4758
|
-
const typeScriptLanguageOptions = {
|
|
4759
|
-
parser: typescript_eslint.default.parser,
|
|
4760
|
-
parserOptions: {
|
|
4761
|
-
ecmaVersion: "latest",
|
|
4762
|
-
projectService: true,
|
|
4763
|
-
sourceType: "module",
|
|
4764
|
-
tsconfigRootDir: process.cwd()
|
|
4765
|
-
}
|
|
4766
|
-
};
|
|
4767
|
-
//#endregion
|
|
4768
4864
|
//#region src/configs/general/typeScript.ts
|
|
4769
4865
|
const generalTypeScript = [
|
|
4770
4866
|
...typescript_eslint.default.configs.recommended,
|
|
@@ -5012,6 +5108,15 @@ function internalEslintPluginRules(plugin) {
|
|
|
5012
5108
|
}];
|
|
5013
5109
|
}
|
|
5014
5110
|
//#endregion
|
|
5111
|
+
//#region src/configs/internal/eslintPlugin/utility.ts
|
|
5112
|
+
function internalEslintPluginUtility(plugin) {
|
|
5113
|
+
return [...internalEslintPluginBase(plugin), {
|
|
5114
|
+
files: ["**/*.ts"],
|
|
5115
|
+
name: "@alextheman/internal/eslint-plugin-utility",
|
|
5116
|
+
rules: { "jsdoc/require-jsdoc": ["error", requireJsdocOptions] }
|
|
5117
|
+
}];
|
|
5118
|
+
}
|
|
5119
|
+
//#endregion
|
|
5015
5120
|
//#region src/configs/internal/utility/base.ts
|
|
5016
5121
|
function internalUtilityBase(plugin) {
|
|
5017
5122
|
return [...combinedTypeScriptPackage(plugin), {
|
|
@@ -5069,15 +5174,6 @@ function combinedTypeScriptReact(plugin) {
|
|
|
5069
5174
|
];
|
|
5070
5175
|
}
|
|
5071
5176
|
//#endregion
|
|
5072
|
-
//#region src/configs/internal/eslintPlugin/utility.ts
|
|
5073
|
-
function internalEslintPluginUtility(plugin) {
|
|
5074
|
-
return [...internalEslintPluginBase(plugin), {
|
|
5075
|
-
files: ["**/*.ts"],
|
|
5076
|
-
name: "@alextheman/internal/eslint-plugin-utility",
|
|
5077
|
-
rules: { "jsdoc/require-jsdoc": ["error", requireJsdocOptions] }
|
|
5078
|
-
}];
|
|
5079
|
-
}
|
|
5080
|
-
//#endregion
|
|
5081
5177
|
//#region src/configs/internal/packageJson.ts
|
|
5082
5178
|
const internalPackageJson = [...generalPackageJson, {
|
|
5083
5179
|
files: ["**/package.json"],
|
|
@@ -5433,7 +5529,7 @@ const standardiseErrorMessagesOptionsSchema = zod.default.object({ regex: zod.de
|
|
|
5433
5529
|
function parseStandardiseErrorMessagesOptions(data) {
|
|
5434
5530
|
return standardiseErrorMessagesOptionsSchema.parse(data);
|
|
5435
5531
|
}
|
|
5436
|
-
const schema = createRuleSchemaFromZodSchema(standardiseErrorMessagesOptionsSchema);
|
|
5532
|
+
const schema$1 = createRuleSchemaFromZodSchema(standardiseErrorMessagesOptionsSchema);
|
|
5437
5533
|
const defaultErrorRegex = "^[A-Z]+(?:_[A-Z]+)*$";
|
|
5438
5534
|
function checkCurrentNode(context, node) {
|
|
5439
5535
|
const { regex: errorRegex = defaultErrorRegex } = parseStandardiseErrorMessagesOptions(context.options[0] ?? { regex: defaultErrorRegex });
|
|
@@ -5456,7 +5552,7 @@ const standardiseErrorMessages = createRule({
|
|
|
5456
5552
|
docs: { description: "Enforce a consistent standard for error messages." },
|
|
5457
5553
|
messages: { message: "Expected error message {{error}} to match {{regex}}." },
|
|
5458
5554
|
type: "suggestion",
|
|
5459
|
-
schema
|
|
5555
|
+
schema: schema$1
|
|
5460
5556
|
},
|
|
5461
5557
|
defaultOptions: [{ regex: defaultErrorRegex }],
|
|
5462
5558
|
create(context) {
|
|
@@ -5516,7 +5612,7 @@ function parseUseObjectShorthandOptions(data) {
|
|
|
5516
5612
|
const alexPlugin = {
|
|
5517
5613
|
meta: {
|
|
5518
5614
|
name: "@alextheman/eslint-plugin",
|
|
5519
|
-
version: "5.
|
|
5615
|
+
version: "5.18.1",
|
|
5520
5616
|
namespace: "alextheman"
|
|
5521
5617
|
},
|
|
5522
5618
|
configs: {},
|