@alextheman/eslint-plugin 5.13.0 → 5.13.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 +116 -46
- package/dist/index.js +101 -31
- package/dist/internal/index.cjs +73 -3
- package/dist/internal/index.js +72 -2
- package/dist/utility/index.cjs +3 -2
- package/dist/utility/index.js +2 -1
- package/package.json +13 -13
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
9
9
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
10
|
var __getProtoOf = Object.getPrototypeOf;
|
|
11
11
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
12
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
14
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
15
15
|
key = keys[i];
|
|
@@ -28,37 +28,38 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
let _alextheman_utility = require("@alextheman/utility");
|
|
29
29
|
let _typescript_eslint_utils = require("@typescript-eslint/utils");
|
|
30
30
|
let zod = require("zod");
|
|
31
|
-
zod = __toESM(zod);
|
|
31
|
+
zod = __toESM(zod, 1);
|
|
32
|
+
let _alextheman_utility_v6 = require("@alextheman/utility/v6");
|
|
32
33
|
let _eslint_js = require("@eslint/js");
|
|
33
|
-
_eslint_js = __toESM(_eslint_js);
|
|
34
|
+
_eslint_js = __toESM(_eslint_js, 1);
|
|
34
35
|
let eslint_config_prettier = require("eslint-config-prettier");
|
|
35
|
-
eslint_config_prettier = __toESM(eslint_config_prettier);
|
|
36
|
+
eslint_config_prettier = __toESM(eslint_config_prettier, 1);
|
|
36
37
|
let eslint_import_resolver_typescript = require("eslint-import-resolver-typescript");
|
|
37
|
-
eslint_import_resolver_typescript = __toESM(eslint_import_resolver_typescript);
|
|
38
|
+
eslint_import_resolver_typescript = __toESM(eslint_import_resolver_typescript, 1);
|
|
38
39
|
let eslint_plugin_import_x = require("eslint-plugin-import-x");
|
|
39
|
-
eslint_plugin_import_x = __toESM(eslint_plugin_import_x);
|
|
40
|
+
eslint_plugin_import_x = __toESM(eslint_plugin_import_x, 1);
|
|
40
41
|
let eslint_plugin_n = require("eslint-plugin-n");
|
|
41
|
-
eslint_plugin_n = __toESM(eslint_plugin_n);
|
|
42
|
+
eslint_plugin_n = __toESM(eslint_plugin_n, 1);
|
|
42
43
|
let eslint_plugin_perfectionist = require("eslint-plugin-perfectionist");
|
|
43
|
-
eslint_plugin_perfectionist = __toESM(eslint_plugin_perfectionist);
|
|
44
|
+
eslint_plugin_perfectionist = __toESM(eslint_plugin_perfectionist, 1);
|
|
44
45
|
let eslint_plugin_prettier = require("eslint-plugin-prettier");
|
|
45
|
-
eslint_plugin_prettier = __toESM(eslint_plugin_prettier);
|
|
46
|
+
eslint_plugin_prettier = __toESM(eslint_plugin_prettier, 1);
|
|
46
47
|
let typescript_eslint = require("typescript-eslint");
|
|
47
|
-
typescript_eslint = __toESM(typescript_eslint);
|
|
48
|
+
typescript_eslint = __toESM(typescript_eslint, 1);
|
|
48
49
|
let eslint_plugin_jsx_a11y = require("eslint-plugin-jsx-a11y");
|
|
49
|
-
eslint_plugin_jsx_a11y = __toESM(eslint_plugin_jsx_a11y);
|
|
50
|
+
eslint_plugin_jsx_a11y = __toESM(eslint_plugin_jsx_a11y, 1);
|
|
50
51
|
let eslint_plugin_react = require("eslint-plugin-react");
|
|
51
|
-
eslint_plugin_react = __toESM(eslint_plugin_react);
|
|
52
|
+
eslint_plugin_react = __toESM(eslint_plugin_react, 1);
|
|
52
53
|
let eslint_plugin_react_refresh = require("eslint-plugin-react-refresh");
|
|
53
|
-
eslint_plugin_react_refresh = __toESM(eslint_plugin_react_refresh);
|
|
54
|
+
eslint_plugin_react_refresh = __toESM(eslint_plugin_react_refresh, 1);
|
|
54
55
|
let eslint_plugin_react_hooks = require("eslint-plugin-react-hooks");
|
|
55
|
-
eslint_plugin_react_hooks = __toESM(eslint_plugin_react_hooks);
|
|
56
|
+
eslint_plugin_react_hooks = __toESM(eslint_plugin_react_hooks, 1);
|
|
56
57
|
let eslint_plugin_package_json = require("eslint-plugin-package-json");
|
|
57
|
-
eslint_plugin_package_json = __toESM(eslint_plugin_package_json);
|
|
58
|
+
eslint_plugin_package_json = __toESM(eslint_plugin_package_json, 1);
|
|
58
59
|
let eslint_plugin_jsdoc = require("eslint-plugin-jsdoc");
|
|
59
|
-
eslint_plugin_jsdoc = __toESM(eslint_plugin_jsdoc);
|
|
60
|
+
eslint_plugin_jsdoc = __toESM(eslint_plugin_jsdoc, 1);
|
|
60
61
|
let _alextheman_utility_node = require("@alextheman/utility/node");
|
|
61
|
-
//#region node_modules/.pnpm/globals@17.
|
|
62
|
+
//#region node_modules/.pnpm/globals@17.5.0/node_modules/globals/globals.json
|
|
62
63
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
63
64
|
module.exports = {
|
|
64
65
|
"amd": {
|
|
@@ -164,6 +165,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
164
165
|
"AudioNode": false,
|
|
165
166
|
"AudioParam": false,
|
|
166
167
|
"AudioParamMap": false,
|
|
168
|
+
"AudioPlaybackStats": false,
|
|
167
169
|
"AudioProcessingEvent": false,
|
|
168
170
|
"AudioScheduledSourceNode": false,
|
|
169
171
|
"AudioSinkInfo": false,
|
|
@@ -955,6 +957,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
955
957
|
"RTCSessionDescription": false,
|
|
956
958
|
"RTCStatsReport": false,
|
|
957
959
|
"RTCTrackEvent": false,
|
|
960
|
+
"Sanitizer": false,
|
|
958
961
|
"scheduler": false,
|
|
959
962
|
"Scheduler": false,
|
|
960
963
|
"Scheduling": false,
|
|
@@ -1156,6 +1159,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1156
1159
|
"TextTrackList": false,
|
|
1157
1160
|
"TextUpdateEvent": false,
|
|
1158
1161
|
"TimeEvent": false,
|
|
1162
|
+
"TimelineTrigger": false,
|
|
1163
|
+
"TimelineTriggerRange": false,
|
|
1164
|
+
"TimelineTriggerRangeList": false,
|
|
1159
1165
|
"TimeRanges": false,
|
|
1160
1166
|
"ToggleEvent": false,
|
|
1161
1167
|
"toolbar": false,
|
|
@@ -1601,6 +1607,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1601
1607
|
"PromiseRejectionEvent": false,
|
|
1602
1608
|
"prompt": false,
|
|
1603
1609
|
"queueMicrotask": false,
|
|
1610
|
+
"QuotaExceededError": false,
|
|
1604
1611
|
"ReadableByteStreamController": false,
|
|
1605
1612
|
"ReadableStream": false,
|
|
1606
1613
|
"ReadableStreamBYOBReader": false,
|
|
@@ -2391,6 +2398,70 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2391
2398
|
"WeakRef": false,
|
|
2392
2399
|
"WeakSet": false
|
|
2393
2400
|
},
|
|
2401
|
+
"es2027": {
|
|
2402
|
+
"AggregateError": false,
|
|
2403
|
+
"Array": false,
|
|
2404
|
+
"ArrayBuffer": false,
|
|
2405
|
+
"Atomics": false,
|
|
2406
|
+
"BigInt": false,
|
|
2407
|
+
"BigInt64Array": false,
|
|
2408
|
+
"BigUint64Array": false,
|
|
2409
|
+
"Boolean": false,
|
|
2410
|
+
"DataView": false,
|
|
2411
|
+
"Date": false,
|
|
2412
|
+
"decodeURI": false,
|
|
2413
|
+
"decodeURIComponent": false,
|
|
2414
|
+
"encodeURI": false,
|
|
2415
|
+
"encodeURIComponent": false,
|
|
2416
|
+
"Error": false,
|
|
2417
|
+
"escape": false,
|
|
2418
|
+
"eval": false,
|
|
2419
|
+
"EvalError": false,
|
|
2420
|
+
"FinalizationRegistry": false,
|
|
2421
|
+
"Float16Array": false,
|
|
2422
|
+
"Float32Array": false,
|
|
2423
|
+
"Float64Array": false,
|
|
2424
|
+
"Function": false,
|
|
2425
|
+
"globalThis": false,
|
|
2426
|
+
"Infinity": false,
|
|
2427
|
+
"Int16Array": false,
|
|
2428
|
+
"Int32Array": false,
|
|
2429
|
+
"Int8Array": false,
|
|
2430
|
+
"Intl": false,
|
|
2431
|
+
"isFinite": false,
|
|
2432
|
+
"isNaN": false,
|
|
2433
|
+
"Iterator": false,
|
|
2434
|
+
"JSON": false,
|
|
2435
|
+
"Map": false,
|
|
2436
|
+
"Math": false,
|
|
2437
|
+
"NaN": false,
|
|
2438
|
+
"Number": false,
|
|
2439
|
+
"Object": false,
|
|
2440
|
+
"parseFloat": false,
|
|
2441
|
+
"parseInt": false,
|
|
2442
|
+
"Promise": false,
|
|
2443
|
+
"Proxy": false,
|
|
2444
|
+
"RangeError": false,
|
|
2445
|
+
"ReferenceError": false,
|
|
2446
|
+
"Reflect": false,
|
|
2447
|
+
"RegExp": false,
|
|
2448
|
+
"Set": false,
|
|
2449
|
+
"SharedArrayBuffer": false,
|
|
2450
|
+
"String": false,
|
|
2451
|
+
"Symbol": false,
|
|
2452
|
+
"SyntaxError": false,
|
|
2453
|
+
"TypeError": false,
|
|
2454
|
+
"Uint16Array": false,
|
|
2455
|
+
"Uint32Array": false,
|
|
2456
|
+
"Uint8Array": false,
|
|
2457
|
+
"Uint8ClampedArray": false,
|
|
2458
|
+
"undefined": false,
|
|
2459
|
+
"unescape": false,
|
|
2460
|
+
"URIError": false,
|
|
2461
|
+
"WeakMap": false,
|
|
2462
|
+
"WeakRef": false,
|
|
2463
|
+
"WeakSet": false
|
|
2464
|
+
},
|
|
2394
2465
|
"es3": {
|
|
2395
2466
|
"Array": false,
|
|
2396
2467
|
"Boolean": false,
|
|
@@ -4083,7 +4154,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4083
4154
|
};
|
|
4084
4155
|
}));
|
|
4085
4156
|
//#endregion
|
|
4086
|
-
//#region node_modules/.pnpm/globals@17.
|
|
4157
|
+
//#region node_modules/.pnpm/globals@17.5.0/node_modules/globals/index.js
|
|
4087
4158
|
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4088
4159
|
module.exports = require_globals$1();
|
|
4089
4160
|
}));
|
|
@@ -4170,7 +4241,7 @@ function fixOnCondition(fixable, fix) {
|
|
|
4170
4241
|
//#endregion
|
|
4171
4242
|
//#region src/utility/private/camelToKebab.ts
|
|
4172
4243
|
function camelToKebab(string) {
|
|
4173
|
-
if (string[0] === string[0].toUpperCase()) throw new
|
|
4244
|
+
if (string[0] === string[0].toUpperCase()) throw new _alextheman_utility_v6.DataError({ string }, "CAMEL_TO_KEBAB_CONVERSION_ERROR", "camelCase string must start with a lowercase letter.");
|
|
4174
4245
|
return (0, _alextheman_utility.camelToKebab)(string, { preserveConsecutiveCapitals: false });
|
|
4175
4246
|
}
|
|
4176
4247
|
//#endregion
|
|
@@ -5433,37 +5504,12 @@ const useObjectShorthandOptionsSchema = zod.default.object({ fixable: zod.defaul
|
|
|
5433
5504
|
function parseUseObjectShorthandOptions(data) {
|
|
5434
5505
|
return useObjectShorthandOptionsSchema.parse(data);
|
|
5435
5506
|
}
|
|
5436
|
-
const useObjectShorthand = createRule({
|
|
5437
|
-
name: "use-object-shorthand",
|
|
5438
|
-
meta: {
|
|
5439
|
-
docs: { description: "Encourage the use of object shorthand (e.g. const property = \"Hello\"; const object = { property });" },
|
|
5440
|
-
messages: { useShorthand: "{ {{source}} } is not allowed. Please use the object shorthand." },
|
|
5441
|
-
type: "suggestion",
|
|
5442
|
-
fixable: "code",
|
|
5443
|
-
schema: createRuleSchemaFromZodSchema(useObjectShorthandOptionsSchema)
|
|
5444
|
-
},
|
|
5445
|
-
defaultOptions: [{ fixable: true }],
|
|
5446
|
-
create(context) {
|
|
5447
|
-
const { fixable = true } = parseUseObjectShorthandOptions(context.options[0] ?? { fixable: true });
|
|
5448
|
-
return { Property(node) {
|
|
5449
|
-
if (node.key.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier && node.value.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier && node.key.name === node.value.name && !node.shorthand) context.report({
|
|
5450
|
-
node,
|
|
5451
|
-
messageId: "useShorthand",
|
|
5452
|
-
data: { source: context.sourceCode.getText(node) },
|
|
5453
|
-
fix: fixOnCondition(fixable, (fixer) => {
|
|
5454
|
-
const key = node.key;
|
|
5455
|
-
return fixer.replaceTextRange([node.range[0], node.range[1]], key.name);
|
|
5456
|
-
})
|
|
5457
|
-
});
|
|
5458
|
-
} };
|
|
5459
|
-
}
|
|
5460
|
-
});
|
|
5461
5507
|
//#endregion
|
|
5462
5508
|
//#region src/alexPlugin.ts
|
|
5463
5509
|
const alexPlugin = {
|
|
5464
5510
|
meta: {
|
|
5465
5511
|
name: "@alextheman/eslint-plugin",
|
|
5466
|
-
version: "5.13.
|
|
5512
|
+
version: "5.13.1",
|
|
5467
5513
|
namespace: "alextheman"
|
|
5468
5514
|
},
|
|
5469
5515
|
configs: {},
|
|
@@ -5477,7 +5523,31 @@ const alexPlugin = {
|
|
|
5477
5523
|
"no-skipped-tests": noSkippedTests,
|
|
5478
5524
|
"standardise-error-messages": standardiseErrorMessages,
|
|
5479
5525
|
"use-normalized-imports": useNormalizedImports,
|
|
5480
|
-
"use-object-shorthand":
|
|
5526
|
+
"use-object-shorthand": createRule({
|
|
5527
|
+
name: "use-object-shorthand",
|
|
5528
|
+
meta: {
|
|
5529
|
+
docs: { description: "Encourage the use of object shorthand (e.g. const property = \"Hello\"; const object = { property });" },
|
|
5530
|
+
messages: { useShorthand: "{ {{source}} } is not allowed. Please use the object shorthand." },
|
|
5531
|
+
type: "suggestion",
|
|
5532
|
+
fixable: "code",
|
|
5533
|
+
schema: createRuleSchemaFromZodSchema(useObjectShorthandOptionsSchema)
|
|
5534
|
+
},
|
|
5535
|
+
defaultOptions: [{ fixable: true }],
|
|
5536
|
+
create(context) {
|
|
5537
|
+
const { fixable = true } = parseUseObjectShorthandOptions(context.options[0] ?? { fixable: true });
|
|
5538
|
+
return { Property(node) {
|
|
5539
|
+
if (node.key.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier && node.value.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier && node.key.name === node.value.name && !node.shorthand) context.report({
|
|
5540
|
+
node,
|
|
5541
|
+
messageId: "useShorthand",
|
|
5542
|
+
data: { source: context.sourceCode.getText(node) },
|
|
5543
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5544
|
+
const key = node.key;
|
|
5545
|
+
return fixer.replaceTextRange([node.range[0], node.range[1]], key.name);
|
|
5546
|
+
})
|
|
5547
|
+
});
|
|
5548
|
+
} };
|
|
5549
|
+
}
|
|
5550
|
+
})
|
|
5481
5551
|
}
|
|
5482
5552
|
};
|
|
5483
5553
|
alexPlugin.configs = createAlexPluginConfigs((0, _alextheman_utility.deepFreeze)((0, _alextheman_utility.deepCopy)(alexPlugin)));
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { camelToKebab, deepCopy, deepFreeze, normaliseIndents, omitProperties, parseZodSchema } from "@alextheman/utility";
|
|
2
2
|
import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
|
|
3
3
|
import z from "zod";
|
|
4
|
+
import { DataError } from "@alextheman/utility/v6";
|
|
4
5
|
import js from "@eslint/js";
|
|
5
6
|
import prettierConfig$1 from "eslint-config-prettier";
|
|
6
7
|
import * as tsResolver from "eslint-import-resolver-typescript";
|
|
@@ -23,7 +24,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
23
24
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
24
25
|
var __getProtoOf = Object.getPrototypeOf;
|
|
25
26
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
26
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
27
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
27
28
|
var __copyProps = (to, from, except, desc) => {
|
|
28
29
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
29
30
|
key = keys[i];
|
|
@@ -39,7 +40,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
39
40
|
enumerable: true
|
|
40
41
|
}) : target, mod));
|
|
41
42
|
//#endregion
|
|
42
|
-
//#region node_modules/.pnpm/globals@17.
|
|
43
|
+
//#region node_modules/.pnpm/globals@17.5.0/node_modules/globals/globals.json
|
|
43
44
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
44
45
|
module.exports = {
|
|
45
46
|
"amd": {
|
|
@@ -145,6 +146,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
145
146
|
"AudioNode": false,
|
|
146
147
|
"AudioParam": false,
|
|
147
148
|
"AudioParamMap": false,
|
|
149
|
+
"AudioPlaybackStats": false,
|
|
148
150
|
"AudioProcessingEvent": false,
|
|
149
151
|
"AudioScheduledSourceNode": false,
|
|
150
152
|
"AudioSinkInfo": false,
|
|
@@ -936,6 +938,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
936
938
|
"RTCSessionDescription": false,
|
|
937
939
|
"RTCStatsReport": false,
|
|
938
940
|
"RTCTrackEvent": false,
|
|
941
|
+
"Sanitizer": false,
|
|
939
942
|
"scheduler": false,
|
|
940
943
|
"Scheduler": false,
|
|
941
944
|
"Scheduling": false,
|
|
@@ -1137,6 +1140,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1137
1140
|
"TextTrackList": false,
|
|
1138
1141
|
"TextUpdateEvent": false,
|
|
1139
1142
|
"TimeEvent": false,
|
|
1143
|
+
"TimelineTrigger": false,
|
|
1144
|
+
"TimelineTriggerRange": false,
|
|
1145
|
+
"TimelineTriggerRangeList": false,
|
|
1140
1146
|
"TimeRanges": false,
|
|
1141
1147
|
"ToggleEvent": false,
|
|
1142
1148
|
"toolbar": false,
|
|
@@ -1582,6 +1588,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1582
1588
|
"PromiseRejectionEvent": false,
|
|
1583
1589
|
"prompt": false,
|
|
1584
1590
|
"queueMicrotask": false,
|
|
1591
|
+
"QuotaExceededError": false,
|
|
1585
1592
|
"ReadableByteStreamController": false,
|
|
1586
1593
|
"ReadableStream": false,
|
|
1587
1594
|
"ReadableStreamBYOBReader": false,
|
|
@@ -2372,6 +2379,70 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2372
2379
|
"WeakRef": false,
|
|
2373
2380
|
"WeakSet": false
|
|
2374
2381
|
},
|
|
2382
|
+
"es2027": {
|
|
2383
|
+
"AggregateError": false,
|
|
2384
|
+
"Array": false,
|
|
2385
|
+
"ArrayBuffer": false,
|
|
2386
|
+
"Atomics": false,
|
|
2387
|
+
"BigInt": false,
|
|
2388
|
+
"BigInt64Array": false,
|
|
2389
|
+
"BigUint64Array": false,
|
|
2390
|
+
"Boolean": false,
|
|
2391
|
+
"DataView": false,
|
|
2392
|
+
"Date": false,
|
|
2393
|
+
"decodeURI": false,
|
|
2394
|
+
"decodeURIComponent": false,
|
|
2395
|
+
"encodeURI": false,
|
|
2396
|
+
"encodeURIComponent": false,
|
|
2397
|
+
"Error": false,
|
|
2398
|
+
"escape": false,
|
|
2399
|
+
"eval": false,
|
|
2400
|
+
"EvalError": false,
|
|
2401
|
+
"FinalizationRegistry": false,
|
|
2402
|
+
"Float16Array": false,
|
|
2403
|
+
"Float32Array": false,
|
|
2404
|
+
"Float64Array": false,
|
|
2405
|
+
"Function": false,
|
|
2406
|
+
"globalThis": false,
|
|
2407
|
+
"Infinity": false,
|
|
2408
|
+
"Int16Array": false,
|
|
2409
|
+
"Int32Array": false,
|
|
2410
|
+
"Int8Array": false,
|
|
2411
|
+
"Intl": false,
|
|
2412
|
+
"isFinite": false,
|
|
2413
|
+
"isNaN": false,
|
|
2414
|
+
"Iterator": false,
|
|
2415
|
+
"JSON": false,
|
|
2416
|
+
"Map": false,
|
|
2417
|
+
"Math": false,
|
|
2418
|
+
"NaN": false,
|
|
2419
|
+
"Number": false,
|
|
2420
|
+
"Object": false,
|
|
2421
|
+
"parseFloat": false,
|
|
2422
|
+
"parseInt": false,
|
|
2423
|
+
"Promise": false,
|
|
2424
|
+
"Proxy": false,
|
|
2425
|
+
"RangeError": false,
|
|
2426
|
+
"ReferenceError": false,
|
|
2427
|
+
"Reflect": false,
|
|
2428
|
+
"RegExp": false,
|
|
2429
|
+
"Set": false,
|
|
2430
|
+
"SharedArrayBuffer": false,
|
|
2431
|
+
"String": false,
|
|
2432
|
+
"Symbol": false,
|
|
2433
|
+
"SyntaxError": false,
|
|
2434
|
+
"TypeError": false,
|
|
2435
|
+
"Uint16Array": false,
|
|
2436
|
+
"Uint32Array": false,
|
|
2437
|
+
"Uint8Array": false,
|
|
2438
|
+
"Uint8ClampedArray": false,
|
|
2439
|
+
"undefined": false,
|
|
2440
|
+
"unescape": false,
|
|
2441
|
+
"URIError": false,
|
|
2442
|
+
"WeakMap": false,
|
|
2443
|
+
"WeakRef": false,
|
|
2444
|
+
"WeakSet": false
|
|
2445
|
+
},
|
|
2375
2446
|
"es3": {
|
|
2376
2447
|
"Array": false,
|
|
2377
2448
|
"Boolean": false,
|
|
@@ -4064,7 +4135,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4064
4135
|
};
|
|
4065
4136
|
}));
|
|
4066
4137
|
//#endregion
|
|
4067
|
-
//#region node_modules/.pnpm/globals@17.
|
|
4138
|
+
//#region node_modules/.pnpm/globals@17.5.0/node_modules/globals/index.js
|
|
4068
4139
|
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4069
4140
|
module.exports = require_globals$1();
|
|
4070
4141
|
}));
|
|
@@ -5414,37 +5485,12 @@ const useObjectShorthandOptionsSchema = z.object({ fixable: z.boolean() }).parti
|
|
|
5414
5485
|
function parseUseObjectShorthandOptions(data) {
|
|
5415
5486
|
return useObjectShorthandOptionsSchema.parse(data);
|
|
5416
5487
|
}
|
|
5417
|
-
const useObjectShorthand = createRule({
|
|
5418
|
-
name: "use-object-shorthand",
|
|
5419
|
-
meta: {
|
|
5420
|
-
docs: { description: "Encourage the use of object shorthand (e.g. const property = \"Hello\"; const object = { property });" },
|
|
5421
|
-
messages: { useShorthand: "{ {{source}} } is not allowed. Please use the object shorthand." },
|
|
5422
|
-
type: "suggestion",
|
|
5423
|
-
fixable: "code",
|
|
5424
|
-
schema: createRuleSchemaFromZodSchema(useObjectShorthandOptionsSchema)
|
|
5425
|
-
},
|
|
5426
|
-
defaultOptions: [{ fixable: true }],
|
|
5427
|
-
create(context) {
|
|
5428
|
-
const { fixable = true } = parseUseObjectShorthandOptions(context.options[0] ?? { fixable: true });
|
|
5429
|
-
return { Property(node) {
|
|
5430
|
-
if (node.key.type === AST_NODE_TYPES.Identifier && node.value.type === AST_NODE_TYPES.Identifier && node.key.name === node.value.name && !node.shorthand) context.report({
|
|
5431
|
-
node,
|
|
5432
|
-
messageId: "useShorthand",
|
|
5433
|
-
data: { source: context.sourceCode.getText(node) },
|
|
5434
|
-
fix: fixOnCondition(fixable, (fixer) => {
|
|
5435
|
-
const key = node.key;
|
|
5436
|
-
return fixer.replaceTextRange([node.range[0], node.range[1]], key.name);
|
|
5437
|
-
})
|
|
5438
|
-
});
|
|
5439
|
-
} };
|
|
5440
|
-
}
|
|
5441
|
-
});
|
|
5442
5488
|
//#endregion
|
|
5443
5489
|
//#region src/alexPlugin.ts
|
|
5444
5490
|
const alexPlugin = {
|
|
5445
5491
|
meta: {
|
|
5446
5492
|
name: "@alextheman/eslint-plugin",
|
|
5447
|
-
version: "5.13.
|
|
5493
|
+
version: "5.13.1",
|
|
5448
5494
|
namespace: "alextheman"
|
|
5449
5495
|
},
|
|
5450
5496
|
configs: {},
|
|
@@ -5458,7 +5504,31 @@ const alexPlugin = {
|
|
|
5458
5504
|
"no-skipped-tests": noSkippedTests,
|
|
5459
5505
|
"standardise-error-messages": standardiseErrorMessages,
|
|
5460
5506
|
"use-normalized-imports": useNormalizedImports,
|
|
5461
|
-
"use-object-shorthand":
|
|
5507
|
+
"use-object-shorthand": createRule({
|
|
5508
|
+
name: "use-object-shorthand",
|
|
5509
|
+
meta: {
|
|
5510
|
+
docs: { description: "Encourage the use of object shorthand (e.g. const property = \"Hello\"; const object = { property });" },
|
|
5511
|
+
messages: { useShorthand: "{ {{source}} } is not allowed. Please use the object shorthand." },
|
|
5512
|
+
type: "suggestion",
|
|
5513
|
+
fixable: "code",
|
|
5514
|
+
schema: createRuleSchemaFromZodSchema(useObjectShorthandOptionsSchema)
|
|
5515
|
+
},
|
|
5516
|
+
defaultOptions: [{ fixable: true }],
|
|
5517
|
+
create(context) {
|
|
5518
|
+
const { fixable = true } = parseUseObjectShorthandOptions(context.options[0] ?? { fixable: true });
|
|
5519
|
+
return { Property(node) {
|
|
5520
|
+
if (node.key.type === AST_NODE_TYPES.Identifier && node.value.type === AST_NODE_TYPES.Identifier && node.key.name === node.value.name && !node.shorthand) context.report({
|
|
5521
|
+
node,
|
|
5522
|
+
messageId: "useShorthand",
|
|
5523
|
+
data: { source: context.sourceCode.getText(node) },
|
|
5524
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5525
|
+
const key = node.key;
|
|
5526
|
+
return fixer.replaceTextRange([node.range[0], node.range[1]], key.name);
|
|
5527
|
+
})
|
|
5528
|
+
});
|
|
5529
|
+
} };
|
|
5530
|
+
}
|
|
5531
|
+
})
|
|
5462
5532
|
}
|
|
5463
5533
|
};
|
|
5464
5534
|
alexPlugin.configs = createAlexPluginConfigs(deepFreeze(deepCopy(alexPlugin)));
|
package/dist/internal/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __copyProps = (to, from, except, desc) => {
|
|
11
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
12
|
key = keys[i];
|
|
@@ -23,8 +23,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
}) : target, mod));
|
|
24
24
|
//#endregion
|
|
25
25
|
let typescript_eslint = require("typescript-eslint");
|
|
26
|
-
typescript_eslint = __toESM(typescript_eslint);
|
|
27
|
-
//#region node_modules/.pnpm/globals@17.
|
|
26
|
+
typescript_eslint = __toESM(typescript_eslint, 1);
|
|
27
|
+
//#region node_modules/.pnpm/globals@17.5.0/node_modules/globals/globals.json
|
|
28
28
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
29
29
|
module.exports = {
|
|
30
30
|
"amd": {
|
|
@@ -130,6 +130,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
130
130
|
"AudioNode": false,
|
|
131
131
|
"AudioParam": false,
|
|
132
132
|
"AudioParamMap": false,
|
|
133
|
+
"AudioPlaybackStats": false,
|
|
133
134
|
"AudioProcessingEvent": false,
|
|
134
135
|
"AudioScheduledSourceNode": false,
|
|
135
136
|
"AudioSinkInfo": false,
|
|
@@ -921,6 +922,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
921
922
|
"RTCSessionDescription": false,
|
|
922
923
|
"RTCStatsReport": false,
|
|
923
924
|
"RTCTrackEvent": false,
|
|
925
|
+
"Sanitizer": false,
|
|
924
926
|
"scheduler": false,
|
|
925
927
|
"Scheduler": false,
|
|
926
928
|
"Scheduling": false,
|
|
@@ -1122,6 +1124,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1122
1124
|
"TextTrackList": false,
|
|
1123
1125
|
"TextUpdateEvent": false,
|
|
1124
1126
|
"TimeEvent": false,
|
|
1127
|
+
"TimelineTrigger": false,
|
|
1128
|
+
"TimelineTriggerRange": false,
|
|
1129
|
+
"TimelineTriggerRangeList": false,
|
|
1125
1130
|
"TimeRanges": false,
|
|
1126
1131
|
"ToggleEvent": false,
|
|
1127
1132
|
"toolbar": false,
|
|
@@ -1567,6 +1572,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1567
1572
|
"PromiseRejectionEvent": false,
|
|
1568
1573
|
"prompt": false,
|
|
1569
1574
|
"queueMicrotask": false,
|
|
1575
|
+
"QuotaExceededError": false,
|
|
1570
1576
|
"ReadableByteStreamController": false,
|
|
1571
1577
|
"ReadableStream": false,
|
|
1572
1578
|
"ReadableStreamBYOBReader": false,
|
|
@@ -2357,6 +2363,70 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2357
2363
|
"WeakRef": false,
|
|
2358
2364
|
"WeakSet": false
|
|
2359
2365
|
},
|
|
2366
|
+
"es2027": {
|
|
2367
|
+
"AggregateError": false,
|
|
2368
|
+
"Array": false,
|
|
2369
|
+
"ArrayBuffer": false,
|
|
2370
|
+
"Atomics": false,
|
|
2371
|
+
"BigInt": false,
|
|
2372
|
+
"BigInt64Array": false,
|
|
2373
|
+
"BigUint64Array": false,
|
|
2374
|
+
"Boolean": false,
|
|
2375
|
+
"DataView": false,
|
|
2376
|
+
"Date": false,
|
|
2377
|
+
"decodeURI": false,
|
|
2378
|
+
"decodeURIComponent": false,
|
|
2379
|
+
"encodeURI": false,
|
|
2380
|
+
"encodeURIComponent": false,
|
|
2381
|
+
"Error": false,
|
|
2382
|
+
"escape": false,
|
|
2383
|
+
"eval": false,
|
|
2384
|
+
"EvalError": false,
|
|
2385
|
+
"FinalizationRegistry": false,
|
|
2386
|
+
"Float16Array": false,
|
|
2387
|
+
"Float32Array": false,
|
|
2388
|
+
"Float64Array": false,
|
|
2389
|
+
"Function": false,
|
|
2390
|
+
"globalThis": false,
|
|
2391
|
+
"Infinity": false,
|
|
2392
|
+
"Int16Array": false,
|
|
2393
|
+
"Int32Array": false,
|
|
2394
|
+
"Int8Array": false,
|
|
2395
|
+
"Intl": false,
|
|
2396
|
+
"isFinite": false,
|
|
2397
|
+
"isNaN": false,
|
|
2398
|
+
"Iterator": false,
|
|
2399
|
+
"JSON": false,
|
|
2400
|
+
"Map": false,
|
|
2401
|
+
"Math": false,
|
|
2402
|
+
"NaN": false,
|
|
2403
|
+
"Number": false,
|
|
2404
|
+
"Object": false,
|
|
2405
|
+
"parseFloat": false,
|
|
2406
|
+
"parseInt": false,
|
|
2407
|
+
"Promise": false,
|
|
2408
|
+
"Proxy": false,
|
|
2409
|
+
"RangeError": false,
|
|
2410
|
+
"ReferenceError": false,
|
|
2411
|
+
"Reflect": false,
|
|
2412
|
+
"RegExp": false,
|
|
2413
|
+
"Set": false,
|
|
2414
|
+
"SharedArrayBuffer": false,
|
|
2415
|
+
"String": false,
|
|
2416
|
+
"Symbol": false,
|
|
2417
|
+
"SyntaxError": false,
|
|
2418
|
+
"TypeError": false,
|
|
2419
|
+
"Uint16Array": false,
|
|
2420
|
+
"Uint32Array": false,
|
|
2421
|
+
"Uint8Array": false,
|
|
2422
|
+
"Uint8ClampedArray": false,
|
|
2423
|
+
"undefined": false,
|
|
2424
|
+
"unescape": false,
|
|
2425
|
+
"URIError": false,
|
|
2426
|
+
"WeakMap": false,
|
|
2427
|
+
"WeakRef": false,
|
|
2428
|
+
"WeakSet": false
|
|
2429
|
+
},
|
|
2360
2430
|
"es3": {
|
|
2361
2431
|
"Array": false,
|
|
2362
2432
|
"Boolean": false,
|
package/dist/internal/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __copyProps = (to, from, except, desc) => {
|
|
11
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
12
|
key = keys[i];
|
|
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
enumerable: true
|
|
23
23
|
}) : target, mod));
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region node_modules/.pnpm/globals@17.
|
|
25
|
+
//#region node_modules/.pnpm/globals@17.5.0/node_modules/globals/globals.json
|
|
26
26
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
27
27
|
module.exports = {
|
|
28
28
|
"amd": {
|
|
@@ -128,6 +128,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
128
128
|
"AudioNode": false,
|
|
129
129
|
"AudioParam": false,
|
|
130
130
|
"AudioParamMap": false,
|
|
131
|
+
"AudioPlaybackStats": false,
|
|
131
132
|
"AudioProcessingEvent": false,
|
|
132
133
|
"AudioScheduledSourceNode": false,
|
|
133
134
|
"AudioSinkInfo": false,
|
|
@@ -919,6 +920,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
919
920
|
"RTCSessionDescription": false,
|
|
920
921
|
"RTCStatsReport": false,
|
|
921
922
|
"RTCTrackEvent": false,
|
|
923
|
+
"Sanitizer": false,
|
|
922
924
|
"scheduler": false,
|
|
923
925
|
"Scheduler": false,
|
|
924
926
|
"Scheduling": false,
|
|
@@ -1120,6 +1122,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1120
1122
|
"TextTrackList": false,
|
|
1121
1123
|
"TextUpdateEvent": false,
|
|
1122
1124
|
"TimeEvent": false,
|
|
1125
|
+
"TimelineTrigger": false,
|
|
1126
|
+
"TimelineTriggerRange": false,
|
|
1127
|
+
"TimelineTriggerRangeList": false,
|
|
1123
1128
|
"TimeRanges": false,
|
|
1124
1129
|
"ToggleEvent": false,
|
|
1125
1130
|
"toolbar": false,
|
|
@@ -1565,6 +1570,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1565
1570
|
"PromiseRejectionEvent": false,
|
|
1566
1571
|
"prompt": false,
|
|
1567
1572
|
"queueMicrotask": false,
|
|
1573
|
+
"QuotaExceededError": false,
|
|
1568
1574
|
"ReadableByteStreamController": false,
|
|
1569
1575
|
"ReadableStream": false,
|
|
1570
1576
|
"ReadableStreamBYOBReader": false,
|
|
@@ -2355,6 +2361,70 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2355
2361
|
"WeakRef": false,
|
|
2356
2362
|
"WeakSet": false
|
|
2357
2363
|
},
|
|
2364
|
+
"es2027": {
|
|
2365
|
+
"AggregateError": false,
|
|
2366
|
+
"Array": false,
|
|
2367
|
+
"ArrayBuffer": false,
|
|
2368
|
+
"Atomics": false,
|
|
2369
|
+
"BigInt": false,
|
|
2370
|
+
"BigInt64Array": false,
|
|
2371
|
+
"BigUint64Array": false,
|
|
2372
|
+
"Boolean": false,
|
|
2373
|
+
"DataView": false,
|
|
2374
|
+
"Date": false,
|
|
2375
|
+
"decodeURI": false,
|
|
2376
|
+
"decodeURIComponent": false,
|
|
2377
|
+
"encodeURI": false,
|
|
2378
|
+
"encodeURIComponent": false,
|
|
2379
|
+
"Error": false,
|
|
2380
|
+
"escape": false,
|
|
2381
|
+
"eval": false,
|
|
2382
|
+
"EvalError": false,
|
|
2383
|
+
"FinalizationRegistry": false,
|
|
2384
|
+
"Float16Array": false,
|
|
2385
|
+
"Float32Array": false,
|
|
2386
|
+
"Float64Array": false,
|
|
2387
|
+
"Function": false,
|
|
2388
|
+
"globalThis": false,
|
|
2389
|
+
"Infinity": false,
|
|
2390
|
+
"Int16Array": false,
|
|
2391
|
+
"Int32Array": false,
|
|
2392
|
+
"Int8Array": false,
|
|
2393
|
+
"Intl": false,
|
|
2394
|
+
"isFinite": false,
|
|
2395
|
+
"isNaN": false,
|
|
2396
|
+
"Iterator": false,
|
|
2397
|
+
"JSON": false,
|
|
2398
|
+
"Map": false,
|
|
2399
|
+
"Math": false,
|
|
2400
|
+
"NaN": false,
|
|
2401
|
+
"Number": false,
|
|
2402
|
+
"Object": false,
|
|
2403
|
+
"parseFloat": false,
|
|
2404
|
+
"parseInt": false,
|
|
2405
|
+
"Promise": false,
|
|
2406
|
+
"Proxy": false,
|
|
2407
|
+
"RangeError": false,
|
|
2408
|
+
"ReferenceError": false,
|
|
2409
|
+
"Reflect": false,
|
|
2410
|
+
"RegExp": false,
|
|
2411
|
+
"Set": false,
|
|
2412
|
+
"SharedArrayBuffer": false,
|
|
2413
|
+
"String": false,
|
|
2414
|
+
"Symbol": false,
|
|
2415
|
+
"SyntaxError": false,
|
|
2416
|
+
"TypeError": false,
|
|
2417
|
+
"Uint16Array": false,
|
|
2418
|
+
"Uint32Array": false,
|
|
2419
|
+
"Uint8Array": false,
|
|
2420
|
+
"Uint8ClampedArray": false,
|
|
2421
|
+
"undefined": false,
|
|
2422
|
+
"unescape": false,
|
|
2423
|
+
"URIError": false,
|
|
2424
|
+
"WeakMap": false,
|
|
2425
|
+
"WeakRef": false,
|
|
2426
|
+
"WeakSet": false
|
|
2427
|
+
},
|
|
2358
2428
|
"es3": {
|
|
2359
2429
|
"Array": false,
|
|
2360
2430
|
"Boolean": false,
|
package/dist/utility/index.cjs
CHANGED
|
@@ -24,7 +24,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
let _typescript_eslint_utils = require("@typescript-eslint/utils");
|
|
25
25
|
let _alextheman_utility = require("@alextheman/utility");
|
|
26
26
|
let zod = require("zod");
|
|
27
|
-
zod = __toESM(zod);
|
|
27
|
+
zod = __toESM(zod, 1);
|
|
28
|
+
let _alextheman_utility_v6 = require("@alextheman/utility/v6");
|
|
28
29
|
//#region src/utility/public/checkCallExpression.ts
|
|
29
30
|
/**
|
|
30
31
|
* Checks if a given node matches the expected object and property names.
|
|
@@ -101,7 +102,7 @@ function fixOnCondition(fixable, fix) {
|
|
|
101
102
|
//#endregion
|
|
102
103
|
//#region src/utility/private/camelToKebab.ts
|
|
103
104
|
function camelToKebab(string) {
|
|
104
|
-
if (string[0] === string[0].toUpperCase()) throw new
|
|
105
|
+
if (string[0] === string[0].toUpperCase()) throw new _alextheman_utility_v6.DataError({ string }, "CAMEL_TO_KEBAB_CONVERSION_ERROR", "camelCase string must start with a lowercase letter.");
|
|
105
106
|
return (0, _alextheman_utility.camelToKebab)(string, { preserveConsecutiveCapitals: false });
|
|
106
107
|
}
|
|
107
108
|
//#endregion
|
package/dist/utility/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AST_NODE_TYPES } from "@typescript-eslint/utils";
|
|
2
|
-
import {
|
|
2
|
+
import { camelToKebab, omitProperties } from "@alextheman/utility";
|
|
3
3
|
import z from "zod";
|
|
4
|
+
import { DataError } from "@alextheman/utility/v6";
|
|
4
5
|
//#region src/utility/public/checkCallExpression.ts
|
|
5
6
|
/**
|
|
6
7
|
* Checks if a given node matches the expected object and property names.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.1",
|
|
4
4
|
"description": "A package to provide custom ESLint rules and configs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@alextheman/utility": "5.
|
|
37
|
+
"@alextheman/utility": "5.13.1",
|
|
38
38
|
"@eslint/compat": "2.0.5",
|
|
39
|
-
"@typescript-eslint/types": "8.58.
|
|
40
|
-
"@typescript-eslint/utils": "8.58.
|
|
39
|
+
"@typescript-eslint/types": "8.58.2",
|
|
40
|
+
"@typescript-eslint/utils": "8.58.2",
|
|
41
41
|
"common-tags": "1.8.2",
|
|
42
|
-
"prettier": "3.8.
|
|
42
|
+
"prettier": "3.8.3",
|
|
43
43
|
"zod": "4.3.6"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"@types/eslint": "9.6.1",
|
|
49
49
|
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
50
50
|
"@types/node": "25.6.0",
|
|
51
|
-
"@typescript-eslint/rule-tester": "8.58.
|
|
52
|
-
"alex-c-line": "2.
|
|
51
|
+
"@typescript-eslint/rule-tester": "8.58.2",
|
|
52
|
+
"alex-c-line": "2.7.0",
|
|
53
53
|
"dotenv-cli": "11.0.0",
|
|
54
|
-
"eslint": "10.2.
|
|
54
|
+
"eslint": "10.2.1",
|
|
55
55
|
"eslint-config-prettier": "10.1.8",
|
|
56
56
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
57
57
|
"eslint-plugin-import-x": "4.16.2",
|
|
@@ -63,19 +63,19 @@
|
|
|
63
63
|
"eslint-plugin-perfectionist": "5.8.0",
|
|
64
64
|
"eslint-plugin-prettier": "5.5.5",
|
|
65
65
|
"eslint-plugin-react": "7.37.5",
|
|
66
|
-
"eslint-plugin-react-hooks": "7.
|
|
66
|
+
"eslint-plugin-react-hooks": "7.1.1",
|
|
67
67
|
"eslint-plugin-react-refresh": "0.5.2",
|
|
68
68
|
"eslint-vitest-rule-tester": "3.1.0",
|
|
69
69
|
"execa": "9.6.1",
|
|
70
|
-
"globals": "17.
|
|
70
|
+
"globals": "17.5.0",
|
|
71
71
|
"husky": "9.1.7",
|
|
72
72
|
"jsdom": "29.0.2",
|
|
73
73
|
"markdownlint-cli2": "0.22.0",
|
|
74
74
|
"tempy": "3.2.0",
|
|
75
|
-
"tsdown": "0.21.
|
|
75
|
+
"tsdown": "0.21.9",
|
|
76
76
|
"tsx": "4.21.0",
|
|
77
|
-
"typescript": "6.0.
|
|
78
|
-
"typescript-eslint": "8.58.
|
|
77
|
+
"typescript": "6.0.3",
|
|
78
|
+
"typescript-eslint": "8.58.2",
|
|
79
79
|
"vite": "8.0.8",
|
|
80
80
|
"vitest": "4.1.4"
|
|
81
81
|
},
|