@alextheman/eslint-plugin 4.2.1 → 4.2.3
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 +16 -18
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -18
- package/package.json +10 -9
package/dist/index.cjs
CHANGED
|
@@ -6,9 +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
|
|
10
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
-
};
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
12
10
|
var __copyProps = (to, from, except, desc) => {
|
|
13
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
12
|
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -29,6 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
27
|
}) : target, mod));
|
|
30
28
|
|
|
31
29
|
//#endregion
|
|
30
|
+
let __alextheman_utility = require("@alextheman/utility");
|
|
32
31
|
let eslint_config_prettier = require("eslint-config-prettier");
|
|
33
32
|
eslint_config_prettier = __toESM(eslint_config_prettier);
|
|
34
33
|
let eslint_plugin_import = require("eslint-plugin-import");
|
|
@@ -48,7 +47,6 @@ let eslint_plugin_react = require("eslint-plugin-react");
|
|
|
48
47
|
eslint_plugin_react = __toESM(eslint_plugin_react);
|
|
49
48
|
let eslint_plugin_react_refresh = require("eslint-plugin-react-refresh");
|
|
50
49
|
eslint_plugin_react_refresh = __toESM(eslint_plugin_react_refresh);
|
|
51
|
-
let __alextheman_utility = require("@alextheman/utility");
|
|
52
50
|
let eslint_plugin_react_hooks = require("eslint-plugin-react-hooks");
|
|
53
51
|
eslint_plugin_react_hooks = __toESM(eslint_plugin_react_hooks);
|
|
54
52
|
let eslint_plugin_package_json = require("eslint-plugin-package-json");
|
|
@@ -59,11 +57,11 @@ zod = __toESM(zod);
|
|
|
59
57
|
|
|
60
58
|
//#region package.json
|
|
61
59
|
var name = "@alextheman/eslint-plugin";
|
|
62
|
-
var version = "4.2.
|
|
60
|
+
var version = "4.2.3";
|
|
63
61
|
|
|
64
62
|
//#endregion
|
|
65
63
|
//#region node_modules/globals/globals.json
|
|
66
|
-
var require_globals$1 = /* @__PURE__ */
|
|
64
|
+
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
67
65
|
module.exports = {
|
|
68
66
|
"amd": {
|
|
69
67
|
"define": false,
|
|
@@ -3407,13 +3405,13 @@ var require_globals$1 = /* @__PURE__ */ __commonJS({ "node_modules/globals/globa
|
|
|
3407
3405
|
"YUI_config": false
|
|
3408
3406
|
}
|
|
3409
3407
|
};
|
|
3410
|
-
})
|
|
3408
|
+
}));
|
|
3411
3409
|
|
|
3412
3410
|
//#endregion
|
|
3413
3411
|
//#region node_modules/globals/index.js
|
|
3414
|
-
var require_globals = /* @__PURE__ */
|
|
3412
|
+
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3415
3413
|
module.exports = require_globals$1();
|
|
3416
|
-
})
|
|
3414
|
+
}));
|
|
3417
3415
|
|
|
3418
3416
|
//#endregion
|
|
3419
3417
|
//#region src/configs/personal/testsBase.ts
|
|
@@ -3494,7 +3492,7 @@ var testsBase_default = createCombinedTestsBaseConfig;
|
|
|
3494
3492
|
|
|
3495
3493
|
//#endregion
|
|
3496
3494
|
//#region node_modules/@eslint/js/package.json
|
|
3497
|
-
var require_package = /* @__PURE__ */
|
|
3495
|
+
var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3498
3496
|
module.exports = {
|
|
3499
3497
|
"name": "@eslint/js",
|
|
3500
3498
|
"version": "9.39.1",
|
|
@@ -3525,11 +3523,11 @@ var require_package = /* @__PURE__ */ __commonJS({ "node_modules/@eslint/js/pack
|
|
|
3525
3523
|
"license": "MIT",
|
|
3526
3524
|
"engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }
|
|
3527
3525
|
};
|
|
3528
|
-
})
|
|
3526
|
+
}));
|
|
3529
3527
|
|
|
3530
3528
|
//#endregion
|
|
3531
3529
|
//#region node_modules/@eslint/js/src/configs/eslint-all.js
|
|
3532
|
-
var require_eslint_all = /* @__PURE__ */
|
|
3530
|
+
var require_eslint_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3533
3531
|
module.exports = Object.freeze({ rules: Object.freeze({
|
|
3534
3532
|
"accessor-pairs": "error",
|
|
3535
3533
|
"array-callback-return": "error",
|
|
@@ -3731,11 +3729,11 @@ var require_eslint_all = /* @__PURE__ */ __commonJS({ "node_modules/@eslint/js/s
|
|
|
3731
3729
|
"vars-on-top": "error",
|
|
3732
3730
|
"yoda": "error"
|
|
3733
3731
|
}) });
|
|
3734
|
-
})
|
|
3732
|
+
}));
|
|
3735
3733
|
|
|
3736
3734
|
//#endregion
|
|
3737
3735
|
//#region node_modules/@eslint/js/src/configs/eslint-recommended.js
|
|
3738
|
-
var require_eslint_recommended = /* @__PURE__ */
|
|
3736
|
+
var require_eslint_recommended = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3739
3737
|
module.exports = Object.freeze({ rules: Object.freeze({
|
|
3740
3738
|
"constructor-super": "error",
|
|
3741
3739
|
"for-direction": "error",
|
|
@@ -3799,7 +3797,7 @@ var require_eslint_recommended = /* @__PURE__ */ __commonJS({ "node_modules/@esl
|
|
|
3799
3797
|
"use-isnan": "error",
|
|
3800
3798
|
"valid-typeof": "error"
|
|
3801
3799
|
}) });
|
|
3802
|
-
})
|
|
3800
|
+
}));
|
|
3803
3801
|
|
|
3804
3802
|
//#endregion
|
|
3805
3803
|
//#region node_modules/@eslint/js/src/index.js
|
|
@@ -3807,7 +3805,7 @@ var require_eslint_recommended = /* @__PURE__ */ __commonJS({ "node_modules/@esl
|
|
|
3807
3805
|
* @fileoverview Main package entrypoint.
|
|
3808
3806
|
* @author Nicholas C. Zakas
|
|
3809
3807
|
*/
|
|
3810
|
-
var require_src = /* @__PURE__ */
|
|
3808
|
+
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3811
3809
|
const { name: name$1, version: version$1 } = require_package();
|
|
3812
3810
|
module.exports = {
|
|
3813
3811
|
meta: {
|
|
@@ -3819,7 +3817,7 @@ var require_src = /* @__PURE__ */ __commonJS({ "node_modules/@eslint/js/src/inde
|
|
|
3819
3817
|
recommended: require_eslint_recommended()
|
|
3820
3818
|
}
|
|
3821
3819
|
};
|
|
3822
|
-
})
|
|
3820
|
+
}));
|
|
3823
3821
|
|
|
3824
3822
|
//#endregion
|
|
3825
3823
|
//#region src/configs/helpers/javaScriptLanguageOptions.ts
|
|
@@ -4851,7 +4849,7 @@ const alexPlugin = {
|
|
|
4851
4849
|
configs: {},
|
|
4852
4850
|
rules: rules_default
|
|
4853
4851
|
};
|
|
4854
|
-
alexPlugin.configs = configs_default(alexPlugin);
|
|
4852
|
+
alexPlugin.configs = configs_default((0, __alextheman_utility.deepFreeze)({ ...alexPlugin }));
|
|
4855
4853
|
var alexPlugin_default = alexPlugin;
|
|
4856
4854
|
|
|
4857
4855
|
//#endregion
|
package/dist/index.d.cts
CHANGED
|
@@ -30,7 +30,7 @@ type ConfigGroupName = keyof AlexPluginConfigGroup;
|
|
|
30
30
|
type ConfigKey = { [Group in ConfigGroupName & string]: `${CamelToKebab<Group>}/${CamelToKebab<keyof AlexPluginConfigGroup[Group] & string>}` }[ConfigGroupName & string];
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/configs/index.d.ts
|
|
33
|
-
declare function createAlexPluginConfigs(plugin: AlexPlugin): Record<ConfigKey, Linter.Config[]>;
|
|
33
|
+
declare function createAlexPluginConfigs(plugin: Readonly<AlexPlugin>): Record<ConfigKey, Linter.Config[]>;
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/alexPlugin.d.ts
|
|
36
36
|
interface AlexPlugin {
|
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ type ConfigGroupName = keyof AlexPluginConfigGroup;
|
|
|
30
30
|
type ConfigKey = { [Group in ConfigGroupName & string]: `${CamelToKebab<Group>}/${CamelToKebab<keyof AlexPluginConfigGroup[Group] & string>}` }[ConfigGroupName & string];
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/configs/index.d.ts
|
|
33
|
-
declare function createAlexPluginConfigs(plugin: AlexPlugin): Record<ConfigKey, Linter.Config[]>;
|
|
33
|
+
declare function createAlexPluginConfigs(plugin: Readonly<AlexPlugin>): Record<ConfigKey, Linter.Config[]>;
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/alexPlugin.d.ts
|
|
36
36
|
interface AlexPlugin {
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { camelToKebab, deepFreeze, normalizeImportPath, omitProperties } from "@alextheman/utility";
|
|
1
2
|
import prettierConfig from "eslint-config-prettier";
|
|
2
3
|
import importPlugin from "eslint-plugin-import";
|
|
3
4
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
@@ -8,7 +9,6 @@ import { defineConfig } from "vitest/config";
|
|
|
8
9
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
9
10
|
import reactPlugin from "eslint-plugin-react";
|
|
10
11
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
11
|
-
import { camelToKebab, normalizeImportPath, omitProperties } from "@alextheman/utility";
|
|
12
12
|
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
13
13
|
import packageJson from "eslint-plugin-package-json";
|
|
14
14
|
import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
|
|
@@ -21,9 +21,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
21
21
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
22
22
|
var __getProtoOf = Object.getPrototypeOf;
|
|
23
23
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
24
|
-
var
|
|
25
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
26
|
-
};
|
|
24
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
27
25
|
var __copyProps = (to, from, except, desc) => {
|
|
28
26
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
29
27
|
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -46,11 +44,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
46
44
|
//#endregion
|
|
47
45
|
//#region package.json
|
|
48
46
|
var name = "@alextheman/eslint-plugin";
|
|
49
|
-
var version = "4.2.
|
|
47
|
+
var version = "4.2.3";
|
|
50
48
|
|
|
51
49
|
//#endregion
|
|
52
50
|
//#region node_modules/globals/globals.json
|
|
53
|
-
var require_globals$1 = /* @__PURE__ */
|
|
51
|
+
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
54
52
|
module.exports = {
|
|
55
53
|
"amd": {
|
|
56
54
|
"define": false,
|
|
@@ -3394,13 +3392,13 @@ var require_globals$1 = /* @__PURE__ */ __commonJS({ "node_modules/globals/globa
|
|
|
3394
3392
|
"YUI_config": false
|
|
3395
3393
|
}
|
|
3396
3394
|
};
|
|
3397
|
-
})
|
|
3395
|
+
}));
|
|
3398
3396
|
|
|
3399
3397
|
//#endregion
|
|
3400
3398
|
//#region node_modules/globals/index.js
|
|
3401
|
-
var require_globals = /* @__PURE__ */
|
|
3399
|
+
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3402
3400
|
module.exports = require_globals$1();
|
|
3403
|
-
})
|
|
3401
|
+
}));
|
|
3404
3402
|
|
|
3405
3403
|
//#endregion
|
|
3406
3404
|
//#region src/configs/personal/testsBase.ts
|
|
@@ -3481,7 +3479,7 @@ var testsBase_default = createCombinedTestsBaseConfig;
|
|
|
3481
3479
|
|
|
3482
3480
|
//#endregion
|
|
3483
3481
|
//#region node_modules/@eslint/js/package.json
|
|
3484
|
-
var require_package = /* @__PURE__ */
|
|
3482
|
+
var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3485
3483
|
module.exports = {
|
|
3486
3484
|
"name": "@eslint/js",
|
|
3487
3485
|
"version": "9.39.1",
|
|
@@ -3512,11 +3510,11 @@ var require_package = /* @__PURE__ */ __commonJS({ "node_modules/@eslint/js/pack
|
|
|
3512
3510
|
"license": "MIT",
|
|
3513
3511
|
"engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }
|
|
3514
3512
|
};
|
|
3515
|
-
})
|
|
3513
|
+
}));
|
|
3516
3514
|
|
|
3517
3515
|
//#endregion
|
|
3518
3516
|
//#region node_modules/@eslint/js/src/configs/eslint-all.js
|
|
3519
|
-
var require_eslint_all = /* @__PURE__ */
|
|
3517
|
+
var require_eslint_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3520
3518
|
module.exports = Object.freeze({ rules: Object.freeze({
|
|
3521
3519
|
"accessor-pairs": "error",
|
|
3522
3520
|
"array-callback-return": "error",
|
|
@@ -3718,11 +3716,11 @@ var require_eslint_all = /* @__PURE__ */ __commonJS({ "node_modules/@eslint/js/s
|
|
|
3718
3716
|
"vars-on-top": "error",
|
|
3719
3717
|
"yoda": "error"
|
|
3720
3718
|
}) });
|
|
3721
|
-
})
|
|
3719
|
+
}));
|
|
3722
3720
|
|
|
3723
3721
|
//#endregion
|
|
3724
3722
|
//#region node_modules/@eslint/js/src/configs/eslint-recommended.js
|
|
3725
|
-
var require_eslint_recommended = /* @__PURE__ */
|
|
3723
|
+
var require_eslint_recommended = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3726
3724
|
module.exports = Object.freeze({ rules: Object.freeze({
|
|
3727
3725
|
"constructor-super": "error",
|
|
3728
3726
|
"for-direction": "error",
|
|
@@ -3786,7 +3784,7 @@ var require_eslint_recommended = /* @__PURE__ */ __commonJS({ "node_modules/@esl
|
|
|
3786
3784
|
"use-isnan": "error",
|
|
3787
3785
|
"valid-typeof": "error"
|
|
3788
3786
|
}) });
|
|
3789
|
-
})
|
|
3787
|
+
}));
|
|
3790
3788
|
|
|
3791
3789
|
//#endregion
|
|
3792
3790
|
//#region node_modules/@eslint/js/src/index.js
|
|
@@ -3794,7 +3792,7 @@ var require_eslint_recommended = /* @__PURE__ */ __commonJS({ "node_modules/@esl
|
|
|
3794
3792
|
* @fileoverview Main package entrypoint.
|
|
3795
3793
|
* @author Nicholas C. Zakas
|
|
3796
3794
|
*/
|
|
3797
|
-
var require_src = /* @__PURE__ */
|
|
3795
|
+
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3798
3796
|
const { name: name$1, version: version$1 } = require_package();
|
|
3799
3797
|
module.exports = {
|
|
3800
3798
|
meta: {
|
|
@@ -3806,7 +3804,7 @@ var require_src = /* @__PURE__ */ __commonJS({ "node_modules/@eslint/js/src/inde
|
|
|
3806
3804
|
recommended: require_eslint_recommended()
|
|
3807
3805
|
}
|
|
3808
3806
|
};
|
|
3809
|
-
})
|
|
3807
|
+
}));
|
|
3810
3808
|
|
|
3811
3809
|
//#endregion
|
|
3812
3810
|
//#region src/configs/helpers/javaScriptLanguageOptions.ts
|
|
@@ -4838,7 +4836,7 @@ const alexPlugin = {
|
|
|
4838
4836
|
configs: {},
|
|
4839
4837
|
rules: rules_default
|
|
4840
4838
|
};
|
|
4841
|
-
alexPlugin.configs = configs_default(alexPlugin);
|
|
4839
|
+
alexPlugin.configs = configs_default(deepFreeze({ ...alexPlugin }));
|
|
4842
4840
|
var alexPlugin_default = alexPlugin;
|
|
4843
4841
|
|
|
4844
4842
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "A package to provide custom ESLint rules and configs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"use-local-utility": "dotenv -e .env -- sh -c 'UTILITY_PATH=${LOCAL_UTILITY_PATH:-../utility}; npm --prefix \"$UTILITY_PATH\" run create-local-package && npm uninstall @alextheman/eslint-plugin && npm install \"$UTILITY_PATH\"/alextheman-utility-*.tgz'"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@alextheman/utility": "^
|
|
46
|
-
"@typescript-eslint/utils": "^8.
|
|
45
|
+
"@alextheman/utility": "^3.3.2",
|
|
46
|
+
"@typescript-eslint/utils": "^8.48.0",
|
|
47
47
|
"common-tags": "^1.8.2",
|
|
48
|
-
"zod": "^4.1.
|
|
48
|
+
"zod": "^4.1.13"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/common-tags": "^1.8.4",
|
|
52
52
|
"@types/eslint": "^9.6.1",
|
|
53
53
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
54
54
|
"@types/node": "^24.10.1",
|
|
55
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
55
|
+
"@typescript-eslint/rule-tester": "^8.48.0",
|
|
56
56
|
"dotenv-cli": "^11.0.0",
|
|
57
57
|
"eslint": "^9.39.1",
|
|
58
58
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -65,16 +65,17 @@
|
|
|
65
65
|
"eslint-plugin-react": "^7.37.5",
|
|
66
66
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
67
67
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
68
|
+
"eslint-vitest-rule-tester": "^3.0.0",
|
|
68
69
|
"globals": "^16.5.0",
|
|
69
70
|
"husky": "^9.1.7",
|
|
70
71
|
"jsdom": "^27.2.0",
|
|
71
|
-
"prettier": "^3.
|
|
72
|
-
"tsdown": "^0.16.
|
|
72
|
+
"prettier": "^3.7.1",
|
|
73
|
+
"tsdown": "^0.16.8",
|
|
73
74
|
"tsx": "^4.20.6",
|
|
74
75
|
"typescript": "^5.9.3",
|
|
75
|
-
"typescript-eslint": "^8.
|
|
76
|
+
"typescript-eslint": "^8.48.0",
|
|
76
77
|
"vite-tsconfig-paths": "^5.1.4",
|
|
77
|
-
"vitest": "^4.0.
|
|
78
|
+
"vitest": "^4.0.14"
|
|
78
79
|
},
|
|
79
80
|
"peerDependencies": {
|
|
80
81
|
"eslint": ">=9.0.0",
|