@alextheman/eslint-plugin 4.2.4 → 4.3.0

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.
Files changed (3) hide show
  1. package/dist/index.cjs +9 -337
  2. package/dist/index.js +9 -338
  3. package/package.json +18 -17
package/dist/index.cjs CHANGED
@@ -28,6 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
 
29
29
  //#endregion
30
30
  let __alextheman_utility = require("@alextheman/utility");
31
+ let __eslint_js = require("@eslint/js");
32
+ __eslint_js = __toESM(__eslint_js);
31
33
  let eslint_config_prettier = require("eslint-config-prettier");
32
34
  eslint_config_prettier = __toESM(eslint_config_prettier);
33
35
  let eslint_plugin_import = require("eslint-plugin-import");
@@ -57,10 +59,10 @@ zod = __toESM(zod);
57
59
 
58
60
  //#region package.json
59
61
  var name = "@alextheman/eslint-plugin";
60
- var version = "4.2.4";
62
+ var version = "4.3.0";
61
63
 
62
64
  //#endregion
63
- //#region node_modules/globals/globals.json
65
+ //#region node_modules/.pnpm/globals@16.5.0/node_modules/globals/globals.json
64
66
  var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
65
67
  module.exports = {
66
68
  "amd": {
@@ -3408,7 +3410,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3408
3410
  }));
3409
3411
 
3410
3412
  //#endregion
3411
- //#region node_modules/globals/index.js
3413
+ //#region node_modules/.pnpm/globals@16.5.0/node_modules/globals/index.js
3412
3414
  var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3413
3415
  module.exports = require_globals$1();
3414
3416
  }));
@@ -3490,338 +3492,8 @@ function createCombinedTestsBaseConfig(plugin) {
3490
3492
  }
3491
3493
  var testsBase_default = createCombinedTestsBaseConfig;
3492
3494
 
3493
- //#endregion
3494
- //#region node_modules/@eslint/js/package.json
3495
- var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3496
- module.exports = {
3497
- "name": "@eslint/js",
3498
- "version": "9.39.1",
3499
- "description": "ESLint JavaScript language implementation",
3500
- "funding": "https://eslint.org/donate",
3501
- "main": "./src/index.js",
3502
- "types": "./types/index.d.ts",
3503
- "scripts": { "test:types": "tsc -p tests/types/tsconfig.json" },
3504
- "files": [
3505
- "LICENSE",
3506
- "README.md",
3507
- "src",
3508
- "types"
3509
- ],
3510
- "publishConfig": { "access": "public" },
3511
- "repository": {
3512
- "type": "git",
3513
- "url": "https://github.com/eslint/eslint.git",
3514
- "directory": "packages/js"
3515
- },
3516
- "homepage": "https://eslint.org",
3517
- "bugs": "https://github.com/eslint/eslint/issues/",
3518
- "keywords": [
3519
- "javascript",
3520
- "eslint-plugin",
3521
- "eslint"
3522
- ],
3523
- "license": "MIT",
3524
- "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }
3525
- };
3526
- }));
3527
-
3528
- //#endregion
3529
- //#region node_modules/@eslint/js/src/configs/eslint-all.js
3530
- var require_eslint_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3531
- module.exports = Object.freeze({ rules: Object.freeze({
3532
- "accessor-pairs": "error",
3533
- "array-callback-return": "error",
3534
- "arrow-body-style": "error",
3535
- "block-scoped-var": "error",
3536
- "camelcase": "error",
3537
- "capitalized-comments": "error",
3538
- "class-methods-use-this": "error",
3539
- "complexity": "error",
3540
- "consistent-return": "error",
3541
- "consistent-this": "error",
3542
- "constructor-super": "error",
3543
- "curly": "error",
3544
- "default-case": "error",
3545
- "default-case-last": "error",
3546
- "default-param-last": "error",
3547
- "dot-notation": "error",
3548
- "eqeqeq": "error",
3549
- "for-direction": "error",
3550
- "func-name-matching": "error",
3551
- "func-names": "error",
3552
- "func-style": "error",
3553
- "getter-return": "error",
3554
- "grouped-accessor-pairs": "error",
3555
- "guard-for-in": "error",
3556
- "id-denylist": "error",
3557
- "id-length": "error",
3558
- "id-match": "error",
3559
- "init-declarations": "error",
3560
- "logical-assignment-operators": "error",
3561
- "max-classes-per-file": "error",
3562
- "max-depth": "error",
3563
- "max-lines": "error",
3564
- "max-lines-per-function": "error",
3565
- "max-nested-callbacks": "error",
3566
- "max-params": "error",
3567
- "max-statements": "error",
3568
- "new-cap": "error",
3569
- "no-alert": "error",
3570
- "no-array-constructor": "error",
3571
- "no-async-promise-executor": "error",
3572
- "no-await-in-loop": "error",
3573
- "no-bitwise": "error",
3574
- "no-caller": "error",
3575
- "no-case-declarations": "error",
3576
- "no-class-assign": "error",
3577
- "no-compare-neg-zero": "error",
3578
- "no-cond-assign": "error",
3579
- "no-console": "error",
3580
- "no-const-assign": "error",
3581
- "no-constant-binary-expression": "error",
3582
- "no-constant-condition": "error",
3583
- "no-constructor-return": "error",
3584
- "no-continue": "error",
3585
- "no-control-regex": "error",
3586
- "no-debugger": "error",
3587
- "no-delete-var": "error",
3588
- "no-div-regex": "error",
3589
- "no-dupe-args": "error",
3590
- "no-dupe-class-members": "error",
3591
- "no-dupe-else-if": "error",
3592
- "no-dupe-keys": "error",
3593
- "no-duplicate-case": "error",
3594
- "no-duplicate-imports": "error",
3595
- "no-else-return": "error",
3596
- "no-empty": "error",
3597
- "no-empty-character-class": "error",
3598
- "no-empty-function": "error",
3599
- "no-empty-pattern": "error",
3600
- "no-empty-static-block": "error",
3601
- "no-eq-null": "error",
3602
- "no-eval": "error",
3603
- "no-ex-assign": "error",
3604
- "no-extend-native": "error",
3605
- "no-extra-bind": "error",
3606
- "no-extra-boolean-cast": "error",
3607
- "no-extra-label": "error",
3608
- "no-fallthrough": "error",
3609
- "no-func-assign": "error",
3610
- "no-global-assign": "error",
3611
- "no-implicit-coercion": "error",
3612
- "no-implicit-globals": "error",
3613
- "no-implied-eval": "error",
3614
- "no-import-assign": "error",
3615
- "no-inline-comments": "error",
3616
- "no-inner-declarations": "error",
3617
- "no-invalid-regexp": "error",
3618
- "no-invalid-this": "error",
3619
- "no-irregular-whitespace": "error",
3620
- "no-iterator": "error",
3621
- "no-label-var": "error",
3622
- "no-labels": "error",
3623
- "no-lone-blocks": "error",
3624
- "no-lonely-if": "error",
3625
- "no-loop-func": "error",
3626
- "no-loss-of-precision": "error",
3627
- "no-magic-numbers": "error",
3628
- "no-misleading-character-class": "error",
3629
- "no-multi-assign": "error",
3630
- "no-multi-str": "error",
3631
- "no-negated-condition": "error",
3632
- "no-nested-ternary": "error",
3633
- "no-new": "error",
3634
- "no-new-func": "error",
3635
- "no-new-native-nonconstructor": "error",
3636
- "no-new-wrappers": "error",
3637
- "no-nonoctal-decimal-escape": "error",
3638
- "no-obj-calls": "error",
3639
- "no-object-constructor": "error",
3640
- "no-octal": "error",
3641
- "no-octal-escape": "error",
3642
- "no-param-reassign": "error",
3643
- "no-plusplus": "error",
3644
- "no-promise-executor-return": "error",
3645
- "no-proto": "error",
3646
- "no-prototype-builtins": "error",
3647
- "no-redeclare": "error",
3648
- "no-regex-spaces": "error",
3649
- "no-restricted-exports": "error",
3650
- "no-restricted-globals": "error",
3651
- "no-restricted-imports": "error",
3652
- "no-restricted-properties": "error",
3653
- "no-restricted-syntax": "error",
3654
- "no-return-assign": "error",
3655
- "no-script-url": "error",
3656
- "no-self-assign": "error",
3657
- "no-self-compare": "error",
3658
- "no-sequences": "error",
3659
- "no-setter-return": "error",
3660
- "no-shadow": "error",
3661
- "no-shadow-restricted-names": "error",
3662
- "no-sparse-arrays": "error",
3663
- "no-template-curly-in-string": "error",
3664
- "no-ternary": "error",
3665
- "no-this-before-super": "error",
3666
- "no-throw-literal": "error",
3667
- "no-unassigned-vars": "error",
3668
- "no-undef": "error",
3669
- "no-undef-init": "error",
3670
- "no-undefined": "error",
3671
- "no-underscore-dangle": "error",
3672
- "no-unexpected-multiline": "error",
3673
- "no-unmodified-loop-condition": "error",
3674
- "no-unneeded-ternary": "error",
3675
- "no-unreachable": "error",
3676
- "no-unreachable-loop": "error",
3677
- "no-unsafe-finally": "error",
3678
- "no-unsafe-negation": "error",
3679
- "no-unsafe-optional-chaining": "error",
3680
- "no-unused-expressions": "error",
3681
- "no-unused-labels": "error",
3682
- "no-unused-private-class-members": "error",
3683
- "no-unused-vars": "error",
3684
- "no-use-before-define": "error",
3685
- "no-useless-assignment": "error",
3686
- "no-useless-backreference": "error",
3687
- "no-useless-call": "error",
3688
- "no-useless-catch": "error",
3689
- "no-useless-computed-key": "error",
3690
- "no-useless-concat": "error",
3691
- "no-useless-constructor": "error",
3692
- "no-useless-escape": "error",
3693
- "no-useless-rename": "error",
3694
- "no-useless-return": "error",
3695
- "no-var": "error",
3696
- "no-void": "error",
3697
- "no-warning-comments": "error",
3698
- "no-with": "error",
3699
- "object-shorthand": "error",
3700
- "one-var": "error",
3701
- "operator-assignment": "error",
3702
- "prefer-arrow-callback": "error",
3703
- "prefer-const": "error",
3704
- "prefer-destructuring": "error",
3705
- "prefer-exponentiation-operator": "error",
3706
- "prefer-named-capture-group": "error",
3707
- "prefer-numeric-literals": "error",
3708
- "prefer-object-has-own": "error",
3709
- "prefer-object-spread": "error",
3710
- "prefer-promise-reject-errors": "error",
3711
- "prefer-regex-literals": "error",
3712
- "prefer-rest-params": "error",
3713
- "prefer-spread": "error",
3714
- "prefer-template": "error",
3715
- "preserve-caught-error": "error",
3716
- "radix": "error",
3717
- "require-atomic-updates": "error",
3718
- "require-await": "error",
3719
- "require-unicode-regexp": "error",
3720
- "require-yield": "error",
3721
- "sort-imports": "error",
3722
- "sort-keys": "error",
3723
- "sort-vars": "error",
3724
- "strict": "error",
3725
- "symbol-description": "error",
3726
- "unicode-bom": "error",
3727
- "use-isnan": "error",
3728
- "valid-typeof": "error",
3729
- "vars-on-top": "error",
3730
- "yoda": "error"
3731
- }) });
3732
- }));
3733
-
3734
- //#endregion
3735
- //#region node_modules/@eslint/js/src/configs/eslint-recommended.js
3736
- var require_eslint_recommended = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3737
- module.exports = Object.freeze({ rules: Object.freeze({
3738
- "constructor-super": "error",
3739
- "for-direction": "error",
3740
- "getter-return": "error",
3741
- "no-async-promise-executor": "error",
3742
- "no-case-declarations": "error",
3743
- "no-class-assign": "error",
3744
- "no-compare-neg-zero": "error",
3745
- "no-cond-assign": "error",
3746
- "no-const-assign": "error",
3747
- "no-constant-binary-expression": "error",
3748
- "no-constant-condition": "error",
3749
- "no-control-regex": "error",
3750
- "no-debugger": "error",
3751
- "no-delete-var": "error",
3752
- "no-dupe-args": "error",
3753
- "no-dupe-class-members": "error",
3754
- "no-dupe-else-if": "error",
3755
- "no-dupe-keys": "error",
3756
- "no-duplicate-case": "error",
3757
- "no-empty": "error",
3758
- "no-empty-character-class": "error",
3759
- "no-empty-pattern": "error",
3760
- "no-empty-static-block": "error",
3761
- "no-ex-assign": "error",
3762
- "no-extra-boolean-cast": "error",
3763
- "no-fallthrough": "error",
3764
- "no-func-assign": "error",
3765
- "no-global-assign": "error",
3766
- "no-import-assign": "error",
3767
- "no-invalid-regexp": "error",
3768
- "no-irregular-whitespace": "error",
3769
- "no-loss-of-precision": "error",
3770
- "no-misleading-character-class": "error",
3771
- "no-new-native-nonconstructor": "error",
3772
- "no-nonoctal-decimal-escape": "error",
3773
- "no-obj-calls": "error",
3774
- "no-octal": "error",
3775
- "no-prototype-builtins": "error",
3776
- "no-redeclare": "error",
3777
- "no-regex-spaces": "error",
3778
- "no-self-assign": "error",
3779
- "no-setter-return": "error",
3780
- "no-shadow-restricted-names": "error",
3781
- "no-sparse-arrays": "error",
3782
- "no-this-before-super": "error",
3783
- "no-undef": "error",
3784
- "no-unexpected-multiline": "error",
3785
- "no-unreachable": "error",
3786
- "no-unsafe-finally": "error",
3787
- "no-unsafe-negation": "error",
3788
- "no-unsafe-optional-chaining": "error",
3789
- "no-unused-labels": "error",
3790
- "no-unused-private-class-members": "error",
3791
- "no-unused-vars": "error",
3792
- "no-useless-backreference": "error",
3793
- "no-useless-catch": "error",
3794
- "no-useless-escape": "error",
3795
- "no-with": "error",
3796
- "require-yield": "error",
3797
- "use-isnan": "error",
3798
- "valid-typeof": "error"
3799
- }) });
3800
- }));
3801
-
3802
- //#endregion
3803
- //#region node_modules/@eslint/js/src/index.js
3804
- /**
3805
- * @fileoverview Main package entrypoint.
3806
- * @author Nicholas C. Zakas
3807
- */
3808
- var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3809
- const { name: name$1, version: version$1 } = require_package();
3810
- module.exports = {
3811
- meta: {
3812
- name: name$1,
3813
- version: version$1
3814
- },
3815
- configs: {
3816
- all: require_eslint_all(),
3817
- recommended: require_eslint_recommended()
3818
- }
3819
- };
3820
- }));
3821
-
3822
3495
  //#endregion
3823
3496
  //#region src/configs/helpers/javaScriptLanguageOptions.ts
3824
- var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
3825
3497
  var import_globals$1 = /* @__PURE__ */ __toESM(require_globals(), 1);
3826
3498
  const javaScriptLanguageOptions = { globals: {
3827
3499
  ...import_globals$1.default.node,
@@ -3842,7 +3514,7 @@ var unusedVarsIgnorePatterns_default = unusedVarsIgnorePatterns;
3842
3514
  //#endregion
3843
3515
  //#region src/configs/general/javaScriptBase.ts
3844
3516
  const javaScriptBase = [
3845
- import_src.default.configs.recommended,
3517
+ __eslint_js.default.configs.recommended,
3846
3518
  eslint_config_prettier.default,
3847
3519
  {
3848
3520
  files: [
@@ -4171,11 +3843,11 @@ function createPersonalEslintPluginConfig(plugin) {
4171
3843
  "src/alexPlugin",
4172
3844
  "src/index",
4173
3845
  "src"
4174
- ].map((name$2) => {
3846
+ ].map((name$1) => {
4175
3847
  return {
4176
3848
  importNames: ["default"],
4177
3849
  message: "Do not import the plugin directly from the config files. Please create a function that takes in the plugin and returns the config instead.",
4178
- name: name$2
3850
+ name: name$1
4179
3851
  };
4180
3852
  }), {
4181
3853
  importNames: ["default"],
@@ -4844,7 +4516,7 @@ const alexPlugin = {
4844
4516
  configs: {},
4845
4517
  rules: rules_default
4846
4518
  };
4847
- alexPlugin.configs = configs_default((0, __alextheman_utility.deepFreeze)({ ...alexPlugin }));
4519
+ alexPlugin.configs = configs_default((0, __alextheman_utility.deepFreeze)((0, __alextheman_utility.deepCopy)(alexPlugin)));
4848
4520
  var alexPlugin_default = alexPlugin;
4849
4521
 
4850
4522
  //#endregion
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
- import { camelToKebab, deepFreeze, normalizeImportPath, omitProperties } from "@alextheman/utility";
1
+ import { camelToKebab, deepCopy, deepFreeze, normalizeImportPath, omitProperties } from "@alextheman/utility";
2
+ import js from "@eslint/js";
2
3
  import prettierConfig from "eslint-config-prettier";
3
4
  import importPlugin from "eslint-plugin-import";
4
5
  import perfectionist from "eslint-plugin-perfectionist";
@@ -44,10 +45,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
44
45
  //#endregion
45
46
  //#region package.json
46
47
  var name = "@alextheman/eslint-plugin";
47
- var version = "4.2.4";
48
+ var version = "4.3.0";
48
49
 
49
50
  //#endregion
50
- //#region node_modules/globals/globals.json
51
+ //#region node_modules/.pnpm/globals@16.5.0/node_modules/globals/globals.json
51
52
  var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
52
53
  module.exports = {
53
54
  "amd": {
@@ -3395,7 +3396,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3395
3396
  }));
3396
3397
 
3397
3398
  //#endregion
3398
- //#region node_modules/globals/index.js
3399
+ //#region node_modules/.pnpm/globals@16.5.0/node_modules/globals/index.js
3399
3400
  var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3400
3401
  module.exports = require_globals$1();
3401
3402
  }));
@@ -3477,338 +3478,8 @@ function createCombinedTestsBaseConfig(plugin) {
3477
3478
  }
3478
3479
  var testsBase_default = createCombinedTestsBaseConfig;
3479
3480
 
3480
- //#endregion
3481
- //#region node_modules/@eslint/js/package.json
3482
- var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3483
- module.exports = {
3484
- "name": "@eslint/js",
3485
- "version": "9.39.1",
3486
- "description": "ESLint JavaScript language implementation",
3487
- "funding": "https://eslint.org/donate",
3488
- "main": "./src/index.js",
3489
- "types": "./types/index.d.ts",
3490
- "scripts": { "test:types": "tsc -p tests/types/tsconfig.json" },
3491
- "files": [
3492
- "LICENSE",
3493
- "README.md",
3494
- "src",
3495
- "types"
3496
- ],
3497
- "publishConfig": { "access": "public" },
3498
- "repository": {
3499
- "type": "git",
3500
- "url": "https://github.com/eslint/eslint.git",
3501
- "directory": "packages/js"
3502
- },
3503
- "homepage": "https://eslint.org",
3504
- "bugs": "https://github.com/eslint/eslint/issues/",
3505
- "keywords": [
3506
- "javascript",
3507
- "eslint-plugin",
3508
- "eslint"
3509
- ],
3510
- "license": "MIT",
3511
- "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }
3512
- };
3513
- }));
3514
-
3515
- //#endregion
3516
- //#region node_modules/@eslint/js/src/configs/eslint-all.js
3517
- var require_eslint_all = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3518
- module.exports = Object.freeze({ rules: Object.freeze({
3519
- "accessor-pairs": "error",
3520
- "array-callback-return": "error",
3521
- "arrow-body-style": "error",
3522
- "block-scoped-var": "error",
3523
- "camelcase": "error",
3524
- "capitalized-comments": "error",
3525
- "class-methods-use-this": "error",
3526
- "complexity": "error",
3527
- "consistent-return": "error",
3528
- "consistent-this": "error",
3529
- "constructor-super": "error",
3530
- "curly": "error",
3531
- "default-case": "error",
3532
- "default-case-last": "error",
3533
- "default-param-last": "error",
3534
- "dot-notation": "error",
3535
- "eqeqeq": "error",
3536
- "for-direction": "error",
3537
- "func-name-matching": "error",
3538
- "func-names": "error",
3539
- "func-style": "error",
3540
- "getter-return": "error",
3541
- "grouped-accessor-pairs": "error",
3542
- "guard-for-in": "error",
3543
- "id-denylist": "error",
3544
- "id-length": "error",
3545
- "id-match": "error",
3546
- "init-declarations": "error",
3547
- "logical-assignment-operators": "error",
3548
- "max-classes-per-file": "error",
3549
- "max-depth": "error",
3550
- "max-lines": "error",
3551
- "max-lines-per-function": "error",
3552
- "max-nested-callbacks": "error",
3553
- "max-params": "error",
3554
- "max-statements": "error",
3555
- "new-cap": "error",
3556
- "no-alert": "error",
3557
- "no-array-constructor": "error",
3558
- "no-async-promise-executor": "error",
3559
- "no-await-in-loop": "error",
3560
- "no-bitwise": "error",
3561
- "no-caller": "error",
3562
- "no-case-declarations": "error",
3563
- "no-class-assign": "error",
3564
- "no-compare-neg-zero": "error",
3565
- "no-cond-assign": "error",
3566
- "no-console": "error",
3567
- "no-const-assign": "error",
3568
- "no-constant-binary-expression": "error",
3569
- "no-constant-condition": "error",
3570
- "no-constructor-return": "error",
3571
- "no-continue": "error",
3572
- "no-control-regex": "error",
3573
- "no-debugger": "error",
3574
- "no-delete-var": "error",
3575
- "no-div-regex": "error",
3576
- "no-dupe-args": "error",
3577
- "no-dupe-class-members": "error",
3578
- "no-dupe-else-if": "error",
3579
- "no-dupe-keys": "error",
3580
- "no-duplicate-case": "error",
3581
- "no-duplicate-imports": "error",
3582
- "no-else-return": "error",
3583
- "no-empty": "error",
3584
- "no-empty-character-class": "error",
3585
- "no-empty-function": "error",
3586
- "no-empty-pattern": "error",
3587
- "no-empty-static-block": "error",
3588
- "no-eq-null": "error",
3589
- "no-eval": "error",
3590
- "no-ex-assign": "error",
3591
- "no-extend-native": "error",
3592
- "no-extra-bind": "error",
3593
- "no-extra-boolean-cast": "error",
3594
- "no-extra-label": "error",
3595
- "no-fallthrough": "error",
3596
- "no-func-assign": "error",
3597
- "no-global-assign": "error",
3598
- "no-implicit-coercion": "error",
3599
- "no-implicit-globals": "error",
3600
- "no-implied-eval": "error",
3601
- "no-import-assign": "error",
3602
- "no-inline-comments": "error",
3603
- "no-inner-declarations": "error",
3604
- "no-invalid-regexp": "error",
3605
- "no-invalid-this": "error",
3606
- "no-irregular-whitespace": "error",
3607
- "no-iterator": "error",
3608
- "no-label-var": "error",
3609
- "no-labels": "error",
3610
- "no-lone-blocks": "error",
3611
- "no-lonely-if": "error",
3612
- "no-loop-func": "error",
3613
- "no-loss-of-precision": "error",
3614
- "no-magic-numbers": "error",
3615
- "no-misleading-character-class": "error",
3616
- "no-multi-assign": "error",
3617
- "no-multi-str": "error",
3618
- "no-negated-condition": "error",
3619
- "no-nested-ternary": "error",
3620
- "no-new": "error",
3621
- "no-new-func": "error",
3622
- "no-new-native-nonconstructor": "error",
3623
- "no-new-wrappers": "error",
3624
- "no-nonoctal-decimal-escape": "error",
3625
- "no-obj-calls": "error",
3626
- "no-object-constructor": "error",
3627
- "no-octal": "error",
3628
- "no-octal-escape": "error",
3629
- "no-param-reassign": "error",
3630
- "no-plusplus": "error",
3631
- "no-promise-executor-return": "error",
3632
- "no-proto": "error",
3633
- "no-prototype-builtins": "error",
3634
- "no-redeclare": "error",
3635
- "no-regex-spaces": "error",
3636
- "no-restricted-exports": "error",
3637
- "no-restricted-globals": "error",
3638
- "no-restricted-imports": "error",
3639
- "no-restricted-properties": "error",
3640
- "no-restricted-syntax": "error",
3641
- "no-return-assign": "error",
3642
- "no-script-url": "error",
3643
- "no-self-assign": "error",
3644
- "no-self-compare": "error",
3645
- "no-sequences": "error",
3646
- "no-setter-return": "error",
3647
- "no-shadow": "error",
3648
- "no-shadow-restricted-names": "error",
3649
- "no-sparse-arrays": "error",
3650
- "no-template-curly-in-string": "error",
3651
- "no-ternary": "error",
3652
- "no-this-before-super": "error",
3653
- "no-throw-literal": "error",
3654
- "no-unassigned-vars": "error",
3655
- "no-undef": "error",
3656
- "no-undef-init": "error",
3657
- "no-undefined": "error",
3658
- "no-underscore-dangle": "error",
3659
- "no-unexpected-multiline": "error",
3660
- "no-unmodified-loop-condition": "error",
3661
- "no-unneeded-ternary": "error",
3662
- "no-unreachable": "error",
3663
- "no-unreachable-loop": "error",
3664
- "no-unsafe-finally": "error",
3665
- "no-unsafe-negation": "error",
3666
- "no-unsafe-optional-chaining": "error",
3667
- "no-unused-expressions": "error",
3668
- "no-unused-labels": "error",
3669
- "no-unused-private-class-members": "error",
3670
- "no-unused-vars": "error",
3671
- "no-use-before-define": "error",
3672
- "no-useless-assignment": "error",
3673
- "no-useless-backreference": "error",
3674
- "no-useless-call": "error",
3675
- "no-useless-catch": "error",
3676
- "no-useless-computed-key": "error",
3677
- "no-useless-concat": "error",
3678
- "no-useless-constructor": "error",
3679
- "no-useless-escape": "error",
3680
- "no-useless-rename": "error",
3681
- "no-useless-return": "error",
3682
- "no-var": "error",
3683
- "no-void": "error",
3684
- "no-warning-comments": "error",
3685
- "no-with": "error",
3686
- "object-shorthand": "error",
3687
- "one-var": "error",
3688
- "operator-assignment": "error",
3689
- "prefer-arrow-callback": "error",
3690
- "prefer-const": "error",
3691
- "prefer-destructuring": "error",
3692
- "prefer-exponentiation-operator": "error",
3693
- "prefer-named-capture-group": "error",
3694
- "prefer-numeric-literals": "error",
3695
- "prefer-object-has-own": "error",
3696
- "prefer-object-spread": "error",
3697
- "prefer-promise-reject-errors": "error",
3698
- "prefer-regex-literals": "error",
3699
- "prefer-rest-params": "error",
3700
- "prefer-spread": "error",
3701
- "prefer-template": "error",
3702
- "preserve-caught-error": "error",
3703
- "radix": "error",
3704
- "require-atomic-updates": "error",
3705
- "require-await": "error",
3706
- "require-unicode-regexp": "error",
3707
- "require-yield": "error",
3708
- "sort-imports": "error",
3709
- "sort-keys": "error",
3710
- "sort-vars": "error",
3711
- "strict": "error",
3712
- "symbol-description": "error",
3713
- "unicode-bom": "error",
3714
- "use-isnan": "error",
3715
- "valid-typeof": "error",
3716
- "vars-on-top": "error",
3717
- "yoda": "error"
3718
- }) });
3719
- }));
3720
-
3721
- //#endregion
3722
- //#region node_modules/@eslint/js/src/configs/eslint-recommended.js
3723
- var require_eslint_recommended = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3724
- module.exports = Object.freeze({ rules: Object.freeze({
3725
- "constructor-super": "error",
3726
- "for-direction": "error",
3727
- "getter-return": "error",
3728
- "no-async-promise-executor": "error",
3729
- "no-case-declarations": "error",
3730
- "no-class-assign": "error",
3731
- "no-compare-neg-zero": "error",
3732
- "no-cond-assign": "error",
3733
- "no-const-assign": "error",
3734
- "no-constant-binary-expression": "error",
3735
- "no-constant-condition": "error",
3736
- "no-control-regex": "error",
3737
- "no-debugger": "error",
3738
- "no-delete-var": "error",
3739
- "no-dupe-args": "error",
3740
- "no-dupe-class-members": "error",
3741
- "no-dupe-else-if": "error",
3742
- "no-dupe-keys": "error",
3743
- "no-duplicate-case": "error",
3744
- "no-empty": "error",
3745
- "no-empty-character-class": "error",
3746
- "no-empty-pattern": "error",
3747
- "no-empty-static-block": "error",
3748
- "no-ex-assign": "error",
3749
- "no-extra-boolean-cast": "error",
3750
- "no-fallthrough": "error",
3751
- "no-func-assign": "error",
3752
- "no-global-assign": "error",
3753
- "no-import-assign": "error",
3754
- "no-invalid-regexp": "error",
3755
- "no-irregular-whitespace": "error",
3756
- "no-loss-of-precision": "error",
3757
- "no-misleading-character-class": "error",
3758
- "no-new-native-nonconstructor": "error",
3759
- "no-nonoctal-decimal-escape": "error",
3760
- "no-obj-calls": "error",
3761
- "no-octal": "error",
3762
- "no-prototype-builtins": "error",
3763
- "no-redeclare": "error",
3764
- "no-regex-spaces": "error",
3765
- "no-self-assign": "error",
3766
- "no-setter-return": "error",
3767
- "no-shadow-restricted-names": "error",
3768
- "no-sparse-arrays": "error",
3769
- "no-this-before-super": "error",
3770
- "no-undef": "error",
3771
- "no-unexpected-multiline": "error",
3772
- "no-unreachable": "error",
3773
- "no-unsafe-finally": "error",
3774
- "no-unsafe-negation": "error",
3775
- "no-unsafe-optional-chaining": "error",
3776
- "no-unused-labels": "error",
3777
- "no-unused-private-class-members": "error",
3778
- "no-unused-vars": "error",
3779
- "no-useless-backreference": "error",
3780
- "no-useless-catch": "error",
3781
- "no-useless-escape": "error",
3782
- "no-with": "error",
3783
- "require-yield": "error",
3784
- "use-isnan": "error",
3785
- "valid-typeof": "error"
3786
- }) });
3787
- }));
3788
-
3789
- //#endregion
3790
- //#region node_modules/@eslint/js/src/index.js
3791
- /**
3792
- * @fileoverview Main package entrypoint.
3793
- * @author Nicholas C. Zakas
3794
- */
3795
- var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3796
- const { name: name$1, version: version$1 } = require_package();
3797
- module.exports = {
3798
- meta: {
3799
- name: name$1,
3800
- version: version$1
3801
- },
3802
- configs: {
3803
- all: require_eslint_all(),
3804
- recommended: require_eslint_recommended()
3805
- }
3806
- };
3807
- }));
3808
-
3809
3481
  //#endregion
3810
3482
  //#region src/configs/helpers/javaScriptLanguageOptions.ts
3811
- var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
3812
3483
  var import_globals$1 = /* @__PURE__ */ __toESM(require_globals(), 1);
3813
3484
  const javaScriptLanguageOptions = { globals: {
3814
3485
  ...import_globals$1.default.node,
@@ -3829,7 +3500,7 @@ var unusedVarsIgnorePatterns_default = unusedVarsIgnorePatterns;
3829
3500
  //#endregion
3830
3501
  //#region src/configs/general/javaScriptBase.ts
3831
3502
  const javaScriptBase = [
3832
- import_src.default.configs.recommended,
3503
+ js.configs.recommended,
3833
3504
  prettierConfig,
3834
3505
  {
3835
3506
  files: [
@@ -4158,11 +3829,11 @@ function createPersonalEslintPluginConfig(plugin) {
4158
3829
  "src/alexPlugin",
4159
3830
  "src/index",
4160
3831
  "src"
4161
- ].map((name$2) => {
3832
+ ].map((name$1) => {
4162
3833
  return {
4163
3834
  importNames: ["default"],
4164
3835
  message: "Do not import the plugin directly from the config files. Please create a function that takes in the plugin and returns the config instead.",
4165
- name: name$2
3836
+ name: name$1
4166
3837
  };
4167
3838
  }), {
4168
3839
  importNames: ["default"],
@@ -4831,7 +4502,7 @@ const alexPlugin = {
4831
4502
  configs: {},
4832
4503
  rules: rules_default
4833
4504
  };
4834
- alexPlugin.configs = configs_default(deepFreeze({ ...alexPlugin }));
4505
+ alexPlugin.configs = configs_default(deepFreeze(deepCopy(alexPlugin)));
4835
4506
  var alexPlugin_default = alexPlugin;
4836
4507
 
4837
4508
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "4.2.4",
3
+ "version": "4.3.0",
4
4
  "description": "A package to provide custom ESLint rules and configs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,38 +16,37 @@
16
16
  ],
17
17
  "scripts": {
18
18
  "build": "tsdown && tsx src/utility/hashConfigChanges.ts",
19
- "change-major": "npm version major -m \"Change version number to v%s\"",
20
- "change-minor": "npm version minor -m \"Change version number to v%s\"",
21
- "change-patch": "npm version patch -m \"Change version number to v%s\"",
22
- "create-local-package": "npm run build && rm -f alextheman-eslint-plugin-*.tgz && npm pack",
23
- "format": "npm run format-prettier && npm run format-eslint",
24
- "format-and-build": "tsx src/utility/checkConfigChanges.ts || npm run build && npm run format",
19
+ "change-major": "pnpm version major -m \"Change version number to v%s\"",
20
+ "change-minor": "pnpm version minor -m \"Change version number to v%s\"",
21
+ "change-patch": "pnpm version patch -m \"Change version number to v%s\"",
22
+ "create-local-package": "pnpm run build && rm -f alextheman-eslint-plugin-*.tgz && pnpm pack",
23
+ "format": "pnpm run format-prettier && pnpm run format-eslint",
24
+ "format-and-build": "tsx src/utility/checkConfigChanges.ts || pnpm run build && pnpm run format",
25
25
  "format-eslint": "eslint --fix --suppress-all \"src/**/*.ts\" \"tests/**/*.ts\" \"package.json\" && rm -f eslint-suppressions.json",
26
- "format-prettier": "npm run format-prettier-typescript && npm run format-prettier-javascript",
26
+ "format-prettier": "pnpm run format-prettier-typescript && pnpm run format-prettier-javascript",
27
27
  "format-prettier-javascript": "prettier --write \"./**/*.js\"",
28
28
  "format-prettier-typescript": "prettier --write --parser typescript \"./**/*.ts\"",
29
- "lint": "npm run lint-tsc && npm run lint-eslint && npm run lint-prettier",
30
- "lint-and-build": "tsx src/utility/checkConfigChanges.ts || npm run build && npm run lint",
29
+ "lint": "pnpm run lint-tsc && pnpm run lint-eslint && pnpm run lint-prettier",
30
+ "lint-and-build": "tsx src/utility/checkConfigChanges.ts || pnpm run build && pnpm run lint",
31
31
  "lint-eslint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" \"package.json\"",
32
- "lint-prettier": "npm run lint-prettier-typescript && npm run lint-prettier-javascript",
32
+ "lint-prettier": "pnpm run lint-prettier-typescript && pnpm run lint-prettier-javascript",
33
33
  "lint-prettier-javascript": "prettier --check \"./**/*.js\"",
34
34
  "lint-prettier-typescript": "prettier --check --parser typescript \"./**/*.ts\"",
35
35
  "lint-tsc": "tsc --noEmit",
36
36
  "prepare": "husky",
37
37
  "test": "vitest run",
38
38
  "test-watch": "vitest",
39
- "update-dependencies": "bash -c 'npx npm-check-updates -u \"$@\" && npm install' --",
40
- "update-peer-dependencies": "bash -c 'npx npm-check-updates --dep peer -u \"$@\" && npm install' --",
41
- "use-live-utility": "npm uninstall @alextheman/utility && npm install @alextheman/utility",
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'"
39
+ "use-live-utility": "pnpm uninstall @alextheman/utility && pnpm install @alextheman/utility",
40
+ "use-local-utility": "dotenv -e .env -- sh -c 'UTILITY_PATH=${LOCAL_UTILITY_PATH:-../utility}; pnpm --dir \"$UTILITY_PATH\" run create-local-package && pnpm uninstall @alextheman/utility && pnpm install \"$UTILITY_PATH\"/alextheman-utility-*.tgz'"
43
41
  },
44
42
  "dependencies": {
45
- "@alextheman/utility": "^3.3.2",
43
+ "@alextheman/utility": "^3.4.0",
46
44
  "@typescript-eslint/utils": "^8.48.0",
47
45
  "common-tags": "^1.8.2",
48
46
  "zod": "^4.1.13"
49
47
  },
50
48
  "devDependencies": {
49
+ "@eslint/js": "^9.39.1",
51
50
  "@types/common-tags": "^1.8.4",
52
51
  "@types/eslint": "^9.6.1",
53
52
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
@@ -78,6 +77,7 @@
78
77
  "vitest": "^4.0.14"
79
78
  },
80
79
  "peerDependencies": {
80
+ "@eslint/js": ">=9.0.0",
81
81
  "eslint": ">=9.0.0",
82
82
  "eslint-config-prettier": ">=10.0.0",
83
83
  "eslint-import-resolver-typescript": ">=4.0.0",
@@ -92,5 +92,6 @@
92
92
  "typescript-eslint": ">=8.0.0",
93
93
  "vite-tsconfig-paths": ">=5.1.4",
94
94
  "vitest": ">=4.0.13"
95
- }
95
+ },
96
+ "packageManager": "pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a"
96
97
  }