@alextheman/eslint-plugin 4.4.1 → 4.4.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.
Files changed (3) hide show
  1. package/dist/index.cjs +124 -116
  2. package/dist/index.js +124 -116
  3. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -59,7 +59,7 @@ eslint_plugin_package_json = __toESM(eslint_plugin_package_json);
59
59
 
60
60
  //#region package.json
61
61
  var name = "@alextheman/eslint-plugin";
62
- var version = "4.4.1";
62
+ var version = "4.4.3";
63
63
 
64
64
  //#endregion
65
65
  //#region node_modules/.pnpm/globals@16.5.0/node_modules/globals/globals.json
@@ -3477,8 +3477,8 @@ const testsRestrictedImports = combineRestrictedImports_default(generalRestricte
3477
3477
  var testsRestrictedImports_default = testsRestrictedImports;
3478
3478
 
3479
3479
  //#endregion
3480
- //#region src/configs/personal/testsBase.ts
3481
- const personalTestsBaseConfig = [{
3480
+ //#region src/configs/personal/tests.ts
3481
+ const personalTests = [{
3482
3482
  files: ["**/*.test.{js,ts}"],
3483
3483
  languageOptions: { globals: {
3484
3484
  ...import_globals$2.default.node,
@@ -3505,11 +3505,11 @@ const personalTestsBaseConfig = [{
3505
3505
  "no-restricted-imports": ["error", testsRestrictedImports_default]
3506
3506
  }
3507
3507
  }];
3508
- var testsBase_default$1 = personalTestsBaseConfig;
3508
+ var tests_default$1 = personalTests;
3509
3509
 
3510
3510
  //#endregion
3511
- //#region src/configs/plugin/pluginBase.ts
3512
- function createPluginBaseConfig(plugin) {
3511
+ //#region src/configs/plugin/base.ts
3512
+ function pluginBase(plugin) {
3513
3513
  return [{
3514
3514
  name: "@alextheman/plugin/base",
3515
3515
  plugins: { "@alextheman": plugin },
@@ -3520,11 +3520,11 @@ function createPluginBaseConfig(plugin) {
3520
3520
  }
3521
3521
  }];
3522
3522
  }
3523
- var pluginBase_default = createPluginBaseConfig;
3523
+ var base_default = pluginBase;
3524
3524
 
3525
3525
  //#endregion
3526
- //#region src/configs/plugin/testsBase.ts
3527
- function createPluginTestsBaseConfig(plugin) {
3526
+ //#region src/configs/plugin/tests.ts
3527
+ function pluginTests(plugin) {
3528
3528
  return [{
3529
3529
  files: ["**/*.test.ts"],
3530
3530
  name: "@alextheman/plugin/tests",
@@ -3536,18 +3536,18 @@ function createPluginTestsBaseConfig(plugin) {
3536
3536
  }
3537
3537
  }];
3538
3538
  }
3539
- var testsBase_default$2 = createPluginTestsBaseConfig;
3539
+ var tests_default$2 = pluginTests;
3540
3540
 
3541
3541
  //#endregion
3542
- //#region src/configs/combined/testsBase.ts
3543
- function createCombinedTestsBaseConfig(plugin) {
3542
+ //#region src/configs/combined/tests.ts
3543
+ function combinedTests(plugin) {
3544
3544
  return [
3545
3545
  { name: "@alextheman/combined/tests" },
3546
- ...testsBase_default$2(plugin),
3547
- ...testsBase_default$1
3546
+ ...tests_default$2(plugin),
3547
+ ...tests_default$1
3548
3548
  ];
3549
3549
  }
3550
- var testsBase_default = createCombinedTestsBaseConfig;
3550
+ var tests_default = combinedTests;
3551
3551
 
3552
3552
  //#endregion
3553
3553
  //#region src/configs/helpers/javaScriptLanguageOptions.ts
@@ -3569,8 +3569,8 @@ const unusedVarsIgnorePatterns = {
3569
3569
  var unusedVarsIgnorePatterns_default = unusedVarsIgnorePatterns;
3570
3570
 
3571
3571
  //#endregion
3572
- //#region src/configs/general/javaScriptBase.ts
3573
- const javaScriptBase = [
3572
+ //#region src/configs/general/javaScript.ts
3573
+ const generalJavaScript = [
3574
3574
  __eslint_js.default.configs.recommended,
3575
3575
  eslint_config_prettier.default,
3576
3576
  {
@@ -3607,7 +3607,7 @@ const javaScriptBase = [
3607
3607
  settings: { "import/resolver": { node: true } }
3608
3608
  }
3609
3609
  ];
3610
- var javaScriptBase_default$1 = javaScriptBase;
3610
+ var javaScript_default$1 = generalJavaScript;
3611
3611
 
3612
3612
  //#endregion
3613
3613
  //#region src/configs/helpers/prettierRules.ts
@@ -3711,7 +3711,7 @@ var vitestConfig_default = vitestConfig;
3711
3711
 
3712
3712
  //#endregion
3713
3713
  //#region src/configs/personal/javaScriptBase.ts
3714
- function createPersonalJavaScriptBaseConfig(plugin) {
3714
+ function personalJavaScript(plugin) {
3715
3715
  return [{
3716
3716
  files: [
3717
3717
  "**/*.js",
@@ -3751,20 +3751,20 @@ function createPersonalJavaScriptBaseConfig(plugin) {
3751
3751
  rules: { "@alextheman/no-relative-imports": ["error", { depth: 0 }] }
3752
3752
  }];
3753
3753
  }
3754
- var javaScriptBase_default$2 = createPersonalJavaScriptBaseConfig;
3754
+ var javaScriptBase_default = personalJavaScript;
3755
3755
 
3756
3756
  //#endregion
3757
- //#region src/configs/combined/javaScriptBase.ts
3758
- function createCombinedJavaScriptBaseConfig(plugin) {
3757
+ //#region src/configs/combined/javaScript.ts
3758
+ function combinedJavaScript(plugin) {
3759
3759
  return [
3760
3760
  { name: "@alextheman/combined/javascript" },
3761
- ...pluginBase_default(plugin),
3762
- ...javaScriptBase_default$1,
3763
- ...javaScriptBase_default$2(plugin),
3764
- ...testsBase_default(plugin)
3761
+ ...base_default(plugin),
3762
+ ...javaScript_default$1,
3763
+ ...javaScriptBase_default(plugin),
3764
+ ...tests_default(plugin)
3765
3765
  ];
3766
3766
  }
3767
- var javaScriptBase_default = createCombinedJavaScriptBaseConfig;
3767
+ var javaScript_default = combinedJavaScript;
3768
3768
 
3769
3769
  //#endregion
3770
3770
  //#region src/configs/helpers/eslint-plugin-react-hooks.ts
@@ -3779,8 +3779,8 @@ const reactHooks = {
3779
3779
  var eslint_plugin_react_hooks_default = reactHooks;
3780
3780
 
3781
3781
  //#endregion
3782
- //#region src/configs/general/reactBase.ts
3783
- const reactBase = [
3782
+ //#region src/configs/general/react.ts
3783
+ const generalReact = [
3784
3784
  eslint_plugin_react.default.configs.flat.recommended,
3785
3785
  eslint_plugin_react.default.configs.flat["jsx-runtime"],
3786
3786
  eslint_plugin_jsx_a11y.default.flatConfigs.recommended,
@@ -3812,7 +3812,7 @@ const reactBase = [
3812
3812
  settings: { react: { version: "detect" } }
3813
3813
  }
3814
3814
  ];
3815
- var reactBase_default$1 = reactBase;
3815
+ var react_default$1 = generalReact;
3816
3816
 
3817
3817
  //#endregion
3818
3818
  //#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
@@ -3823,8 +3823,8 @@ const reactRestrictedImports = combineRestrictedImports_default(generalRestricte
3823
3823
  var reactRestrictedImports_default = reactRestrictedImports;
3824
3824
 
3825
3825
  //#endregion
3826
- //#region src/configs/personal/reactBase.ts
3827
- const personalReactBaseConfig = [{
3826
+ //#region src/configs/personal/react.ts
3827
+ const personalReact = [{
3828
3828
  languageOptions: reactLanguageOptions_default,
3829
3829
  name: "@alextheman/personal/react",
3830
3830
  plugins: {
@@ -3840,33 +3840,41 @@ const personalReactBaseConfig = [{
3840
3840
  "react/jsx-boolean-value": "error"
3841
3841
  }
3842
3842
  }];
3843
- var reactBase_default$2 = personalReactBaseConfig;
3843
+ var react_default$2 = personalReact;
3844
3844
 
3845
3845
  //#endregion
3846
- //#region src/configs/combined/reactBase.ts
3847
- const combinedReactBaseConfig = [
3846
+ //#region src/configs/combined/react.ts
3847
+ const combinedReact = [
3848
3848
  { name: "@alextheman/combined/react" },
3849
- ...reactBase_default$1,
3850
- ...reactBase_default$2
3849
+ ...react_default$1,
3850
+ ...react_default$2
3851
3851
  ];
3852
- var reactBase_default = combinedReactBaseConfig;
3852
+ var react_default = combinedReact;
3853
3853
 
3854
3854
  //#endregion
3855
- //#region src/configs/combined/javaScriptReactBase.ts
3856
- function createCombinedJavaScriptReactBaseConfig(plugin) {
3855
+ //#region src/configs/combined/javaScriptReact.ts
3856
+ function combinedJavaScriptReact(plugin) {
3857
3857
  return [
3858
3858
  { name: "@alextheman/combined/javascript-react" },
3859
- ...javaScriptBase_default(plugin),
3860
- ...reactBase_default
3859
+ ...javaScript_default(plugin),
3860
+ ...react_default
3861
3861
  ];
3862
3862
  }
3863
- var javaScriptReactBase_default = createCombinedJavaScriptReactBaseConfig;
3863
+ var javaScriptReact_default = combinedJavaScriptReact;
3864
+
3865
+ //#endregion
3866
+ //#region src/configs/general/packageJson.ts
3867
+ const generalPackageJson = [eslint_plugin_package_json.default.configs.recommended, {
3868
+ plugins: { "package-json": eslint_plugin_package_json.default },
3869
+ rules: { "package-json/scripts-name-casing": "error" }
3870
+ }];
3871
+ var packageJson_default = generalPackageJson;
3864
3872
 
3865
3873
  //#endregion
3866
- //#region src/configs/general/typeScriptBase.ts
3867
- const typeScriptBase = [
3874
+ //#region src/configs/general/typeScript.ts
3875
+ const generalTypeScript = [
3868
3876
  ...typescript_eslint.default.configs.recommended,
3869
- ...javaScriptBase_default$1,
3877
+ ...javaScript_default$1,
3870
3878
  {
3871
3879
  files: ["**/*.ts", "**/*.tsx"],
3872
3880
  languageOptions: typeScriptLanguageOptions_default,
@@ -3885,30 +3893,48 @@ const typeScriptBase = [
3885
3893
  }
3886
3894
  }
3887
3895
  ];
3888
- var typeScriptBase_default$1 = typeScriptBase;
3896
+ var typeScript_default$1 = generalTypeScript;
3897
+
3898
+ //#endregion
3899
+ //#region src/configs/personal/alexCLine.ts
3900
+ const personalAlexCLine = [{
3901
+ files: ["src/commands/index.ts"],
3902
+ name: "@alextheman/personal/alex-c-line",
3903
+ plugins: { perfectionist: eslint_plugin_perfectionist.default },
3904
+ rules: { "perfectionist/sort-objects": ["error", sortObjects_default] }
3905
+ }];
3906
+ var alexCLine_default = personalAlexCLine;
3889
3907
 
3890
3908
  //#endregion
3891
3909
  //#region src/configs/helpers/restrictedImports/eslintPluginRestrictedImports.ts
3892
- const eslintPluginRestrictedImports = combineRestrictedImports_default(generalRestrictedImports_default, { paths: [...[
3893
- "src/alexPlugin",
3894
- "src/index",
3895
- "src"
3896
- ].map((name$1) => {
3897
- return {
3910
+ const eslintPluginRestrictedImports = combineRestrictedImports_default(generalRestrictedImports_default, { paths: [
3911
+ ...[
3912
+ "src/alexPlugin",
3913
+ "src/index",
3914
+ "src"
3915
+ ].map((name$1) => {
3916
+ return {
3917
+ importNames: ["default"],
3918
+ 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.",
3919
+ name: name$1
3920
+ };
3921
+ }),
3922
+ {
3898
3923
  importNames: ["default"],
3899
- 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.",
3900
- name: name$1
3901
- };
3902
- }), {
3903
- importNames: ["default"],
3904
- message: "Please import from \"src/configs/helpers/eslint-plugin-react-hooks\" instead.",
3905
- name: "eslint-plugin-react-hooks"
3906
- }] });
3924
+ message: "Please import from \"src/configs/helpers/eslint-plugin-react-hooks\" instead.",
3925
+ name: "eslint-plugin-react-hooks"
3926
+ },
3927
+ {
3928
+ importNames: ["createRuleTester"],
3929
+ message: "Please import createRuleTester from \"tests/rule-testers/createRuleTester\" instead.",
3930
+ name: "eslint-vitest-rule-tester"
3931
+ }
3932
+ ] });
3907
3933
  var eslintPluginRestrictedImports_default = eslintPluginRestrictedImports;
3908
3934
 
3909
3935
  //#endregion
3910
3936
  //#region src/configs/personal/eslintPlugin.ts
3911
- function createPersonalEslintPluginConfig(plugin) {
3937
+ function personalEslintPlugin(plugin) {
3912
3938
  return [{
3913
3939
  name: "@alextheman/personal/eslint-plugin",
3914
3940
  plugins: {
@@ -3924,7 +3950,7 @@ function createPersonalEslintPluginConfig(plugin) {
3924
3950
  rules: { "perfectionist/sort-objects": ["error", sortObjects_default] }
3925
3951
  }];
3926
3952
  }
3927
- var eslintPlugin_default = createPersonalEslintPluginConfig;
3953
+ var eslintPlugin_default = personalEslintPlugin;
3928
3954
 
3929
3955
  //#endregion
3930
3956
  //#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
@@ -3948,7 +3974,7 @@ var neurosongsBackEndRestrictedImports_default = neurosongsBackEndRestrictedImpo
3948
3974
 
3949
3975
  //#endregion
3950
3976
  //#region src/configs/personal/neurosongsBackEnd.ts
3951
- const neurosongsBackEndConfig = [
3977
+ const personalNeurosongsBackEnd = [
3952
3978
  {
3953
3979
  name: "@alextheman/personal/neurosongs-back-end",
3954
3980
  rules: { "no-restricted-imports": ["error", neurosongsBackEndRestrictedImports_default] }
@@ -3966,7 +3992,7 @@ const neurosongsBackEndConfig = [
3966
3992
  ] }
3967
3993
  }
3968
3994
  ];
3969
- var neurosongsBackEnd_default = neurosongsBackEndConfig;
3995
+ var neurosongsBackEnd_default = personalNeurosongsBackEnd;
3970
3996
 
3971
3997
  //#endregion
3972
3998
  //#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
@@ -3991,15 +4017,15 @@ var neurosongsFrontEndRestrictedImports_default = neurosongsFrontEndRestrictedIm
3991
4017
 
3992
4018
  //#endregion
3993
4019
  //#region src/configs/personal/neurosongsFrontEnd.ts
3994
- const neurosongsFrontEndConfig = [{
4020
+ const personalNeurosongsFrontEnd = [{
3995
4021
  name: "@alextheman/personal/neurosongs-front-end",
3996
4022
  rules: { "no-restricted-imports": ["error", neurosongsFrontEndRestrictedImports_default] }
3997
4023
  }];
3998
- var neurosongsFrontEnd_default = neurosongsFrontEndConfig;
4024
+ var neurosongsFrontEnd_default = personalNeurosongsFrontEnd;
3999
4025
 
4000
4026
  //#endregion
4001
- //#region src/configs/personal/typeScriptBase.ts
4002
- function createPersonalTypeScriptBaseConfig(plugin) {
4027
+ //#region src/configs/personal/typeScript.ts
4028
+ function personalTypeScript(plugin) {
4003
4029
  return [{
4004
4030
  files: ["**/*.ts", "**/*.tsx"],
4005
4031
  languageOptions: typeScriptLanguageOptions_default,
@@ -4019,57 +4045,39 @@ function createPersonalTypeScriptBaseConfig(plugin) {
4019
4045
  }
4020
4046
  }];
4021
4047
  }
4022
- var typeScriptBase_default$2 = createPersonalTypeScriptBaseConfig;
4048
+ var typeScript_default$2 = personalTypeScript;
4023
4049
 
4024
4050
  //#endregion
4025
4051
  //#region src/configs/personal/utility.ts
4026
- const utilityConfig = [{
4052
+ const personalUtility = [{
4027
4053
  name: "@alextheman/personal/utility",
4028
4054
  plugins: { "@typescript-eslint": typescript_eslint.default.plugin },
4029
4055
  rules: { "@typescript-eslint/explicit-module-boundary-types": "error" }
4030
4056
  }];
4031
- var utility_default = utilityConfig;
4057
+ var utility_default = personalUtility;
4032
4058
 
4033
4059
  //#endregion
4034
- //#region src/configs/combined/typeScriptBase.ts
4035
- function createCombinedTypeScriptBaseConfig(plugin) {
4060
+ //#region src/configs/combined/typeScript.ts
4061
+ function combinedTypeScript(plugin) {
4036
4062
  return [
4037
4063
  { name: "@alextheman/combined/typescript" },
4038
- ...javaScriptBase_default(plugin),
4039
- ...typeScriptBase_default$1,
4040
- ...typeScriptBase_default$2(plugin)
4064
+ ...javaScript_default(plugin),
4065
+ ...typeScript_default$1,
4066
+ ...typeScript_default$2(plugin)
4041
4067
  ];
4042
4068
  }
4043
- var typeScriptBase_default = createCombinedTypeScriptBaseConfig;
4069
+ var typeScript_default = combinedTypeScript;
4044
4070
 
4045
4071
  //#endregion
4046
- //#region src/configs/combined/typeScriptReactBase.ts
4047
- function createCombinedTypeScriptReactBaseConfig(plugin) {
4072
+ //#region src/configs/combined/typeScriptReact.ts
4073
+ function combinedTypeScriptReact(plugin) {
4048
4074
  return [
4049
4075
  { name: "@alextheman/combined/typescript-react" },
4050
- ...typeScriptBase_default(plugin),
4051
- ...reactBase_default
4076
+ ...typeScript_default(plugin),
4077
+ ...react_default
4052
4078
  ];
4053
4079
  }
4054
- var typeScriptReactBase_default = createCombinedTypeScriptReactBaseConfig;
4055
-
4056
- //#endregion
4057
- //#region src/configs/general/packageJson.ts
4058
- const packageJsonConfig = [eslint_plugin_package_json.default.configs.recommended, {
4059
- plugins: { "package-json": eslint_plugin_package_json.default },
4060
- rules: { "package-json/scripts-name-casing": "error" }
4061
- }];
4062
- var packageJson_default = packageJsonConfig;
4063
-
4064
- //#endregion
4065
- //#region src/configs/personal/alexCLine.ts
4066
- const alexCLineConfig = [{
4067
- files: ["src/commands/index.ts"],
4068
- name: "@alextheman/personal/alex-c-line",
4069
- plugins: { perfectionist: eslint_plugin_perfectionist.default },
4070
- rules: { "perfectionist/sort-objects": ["error", sortObjects_default] }
4071
- }];
4072
- var alexCLine_default = alexCLineConfig;
4080
+ var typeScriptReact_default = combinedTypeScriptReact;
4073
4081
 
4074
4082
  //#endregion
4075
4083
  //#region src/utility/camelToKebab.ts
@@ -4101,33 +4109,33 @@ var createPluginConfigs_default = createPluginConfigs;
4101
4109
  function createAlexPluginConfigs(plugin) {
4102
4110
  return createPluginConfigs_default({
4103
4111
  combined: {
4104
- javaScript: [...javaScriptBase_default(plugin), ...packageJson_default],
4105
- javaScriptReact: [...javaScriptReactBase_default(plugin), ...packageJson_default],
4106
- react: [...reactBase_default, ...packageJson_default],
4107
- tests: [...testsBase_default(plugin), ...packageJson_default],
4108
- typeScript: [...typeScriptBase_default(plugin), ...packageJson_default],
4109
- typeScriptReact: [...typeScriptReactBase_default(plugin), ...packageJson_default]
4112
+ javaScript: [...javaScript_default(plugin), ...packageJson_default],
4113
+ javaScriptReact: [...javaScriptReact_default(plugin), ...packageJson_default],
4114
+ react: [...react_default, ...packageJson_default],
4115
+ tests: [...tests_default(plugin), ...packageJson_default],
4116
+ typeScript: [...typeScript_default(plugin), ...packageJson_default],
4117
+ typeScriptReact: [...typeScriptReact_default(plugin), ...packageJson_default]
4110
4118
  },
4111
4119
  general: {
4112
- javaScript: javaScriptBase_default$1,
4120
+ javaScript: javaScript_default$1,
4113
4121
  packageJson: packageJson_default,
4114
- react: reactBase_default$1,
4115
- typeScript: typeScriptBase_default$1
4122
+ react: react_default$1,
4123
+ typeScript: typeScript_default$1
4116
4124
  },
4117
4125
  personal: {
4118
4126
  alexCLine: alexCLine_default,
4119
4127
  eslintPlugin: eslintPlugin_default(plugin),
4120
- javaScript: javaScriptBase_default$2(plugin),
4128
+ javaScript: javaScriptBase_default(plugin),
4121
4129
  neurosongsBackEnd: neurosongsBackEnd_default,
4122
4130
  neurosongsFrontEnd: neurosongsFrontEnd_default,
4123
- react: reactBase_default$2,
4124
- tests: testsBase_default$1,
4125
- typeScript: typeScriptBase_default$2(plugin),
4131
+ react: react_default$2,
4132
+ tests: tests_default$1,
4133
+ typeScript: typeScript_default$2(plugin),
4126
4134
  utility: utility_default
4127
4135
  },
4128
4136
  plugin: {
4129
- base: pluginBase_default(plugin),
4130
- tests: testsBase_default$2(plugin)
4137
+ base: base_default(plugin),
4138
+ tests: tests_default$2(plugin)
4131
4139
  }
4132
4140
  });
4133
4141
  }
package/dist/index.js CHANGED
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
45
45
  //#endregion
46
46
  //#region package.json
47
47
  var name = "@alextheman/eslint-plugin";
48
- var version = "4.4.1";
48
+ var version = "4.4.3";
49
49
 
50
50
  //#endregion
51
51
  //#region node_modules/.pnpm/globals@16.5.0/node_modules/globals/globals.json
@@ -3463,8 +3463,8 @@ const testsRestrictedImports = combineRestrictedImports_default(generalRestricte
3463
3463
  var testsRestrictedImports_default = testsRestrictedImports;
3464
3464
 
3465
3465
  //#endregion
3466
- //#region src/configs/personal/testsBase.ts
3467
- const personalTestsBaseConfig = [{
3466
+ //#region src/configs/personal/tests.ts
3467
+ const personalTests = [{
3468
3468
  files: ["**/*.test.{js,ts}"],
3469
3469
  languageOptions: { globals: {
3470
3470
  ...import_globals$2.default.node,
@@ -3491,11 +3491,11 @@ const personalTestsBaseConfig = [{
3491
3491
  "no-restricted-imports": ["error", testsRestrictedImports_default]
3492
3492
  }
3493
3493
  }];
3494
- var testsBase_default$1 = personalTestsBaseConfig;
3494
+ var tests_default$1 = personalTests;
3495
3495
 
3496
3496
  //#endregion
3497
- //#region src/configs/plugin/pluginBase.ts
3498
- function createPluginBaseConfig(plugin) {
3497
+ //#region src/configs/plugin/base.ts
3498
+ function pluginBase(plugin) {
3499
3499
  return [{
3500
3500
  name: "@alextheman/plugin/base",
3501
3501
  plugins: { "@alextheman": plugin },
@@ -3506,11 +3506,11 @@ function createPluginBaseConfig(plugin) {
3506
3506
  }
3507
3507
  }];
3508
3508
  }
3509
- var pluginBase_default = createPluginBaseConfig;
3509
+ var base_default = pluginBase;
3510
3510
 
3511
3511
  //#endregion
3512
- //#region src/configs/plugin/testsBase.ts
3513
- function createPluginTestsBaseConfig(plugin) {
3512
+ //#region src/configs/plugin/tests.ts
3513
+ function pluginTests(plugin) {
3514
3514
  return [{
3515
3515
  files: ["**/*.test.ts"],
3516
3516
  name: "@alextheman/plugin/tests",
@@ -3522,18 +3522,18 @@ function createPluginTestsBaseConfig(plugin) {
3522
3522
  }
3523
3523
  }];
3524
3524
  }
3525
- var testsBase_default$2 = createPluginTestsBaseConfig;
3525
+ var tests_default$2 = pluginTests;
3526
3526
 
3527
3527
  //#endregion
3528
- //#region src/configs/combined/testsBase.ts
3529
- function createCombinedTestsBaseConfig(plugin) {
3528
+ //#region src/configs/combined/tests.ts
3529
+ function combinedTests(plugin) {
3530
3530
  return [
3531
3531
  { name: "@alextheman/combined/tests" },
3532
- ...testsBase_default$2(plugin),
3533
- ...testsBase_default$1
3532
+ ...tests_default$2(plugin),
3533
+ ...tests_default$1
3534
3534
  ];
3535
3535
  }
3536
- var testsBase_default = createCombinedTestsBaseConfig;
3536
+ var tests_default = combinedTests;
3537
3537
 
3538
3538
  //#endregion
3539
3539
  //#region src/configs/helpers/javaScriptLanguageOptions.ts
@@ -3555,8 +3555,8 @@ const unusedVarsIgnorePatterns = {
3555
3555
  var unusedVarsIgnorePatterns_default = unusedVarsIgnorePatterns;
3556
3556
 
3557
3557
  //#endregion
3558
- //#region src/configs/general/javaScriptBase.ts
3559
- const javaScriptBase = [
3558
+ //#region src/configs/general/javaScript.ts
3559
+ const generalJavaScript = [
3560
3560
  js.configs.recommended,
3561
3561
  prettierConfig,
3562
3562
  {
@@ -3593,7 +3593,7 @@ const javaScriptBase = [
3593
3593
  settings: { "import/resolver": { node: true } }
3594
3594
  }
3595
3595
  ];
3596
- var javaScriptBase_default$1 = javaScriptBase;
3596
+ var javaScript_default$1 = generalJavaScript;
3597
3597
 
3598
3598
  //#endregion
3599
3599
  //#region src/configs/helpers/prettierRules.ts
@@ -3697,7 +3697,7 @@ var vitestConfig_default = vitestConfig;
3697
3697
 
3698
3698
  //#endregion
3699
3699
  //#region src/configs/personal/javaScriptBase.ts
3700
- function createPersonalJavaScriptBaseConfig(plugin) {
3700
+ function personalJavaScript(plugin) {
3701
3701
  return [{
3702
3702
  files: [
3703
3703
  "**/*.js",
@@ -3737,20 +3737,20 @@ function createPersonalJavaScriptBaseConfig(plugin) {
3737
3737
  rules: { "@alextheman/no-relative-imports": ["error", { depth: 0 }] }
3738
3738
  }];
3739
3739
  }
3740
- var javaScriptBase_default$2 = createPersonalJavaScriptBaseConfig;
3740
+ var javaScriptBase_default = personalJavaScript;
3741
3741
 
3742
3742
  //#endregion
3743
- //#region src/configs/combined/javaScriptBase.ts
3744
- function createCombinedJavaScriptBaseConfig(plugin) {
3743
+ //#region src/configs/combined/javaScript.ts
3744
+ function combinedJavaScript(plugin) {
3745
3745
  return [
3746
3746
  { name: "@alextheman/combined/javascript" },
3747
- ...pluginBase_default(plugin),
3748
- ...javaScriptBase_default$1,
3749
- ...javaScriptBase_default$2(plugin),
3750
- ...testsBase_default(plugin)
3747
+ ...base_default(plugin),
3748
+ ...javaScript_default$1,
3749
+ ...javaScriptBase_default(plugin),
3750
+ ...tests_default(plugin)
3751
3751
  ];
3752
3752
  }
3753
- var javaScriptBase_default = createCombinedJavaScriptBaseConfig;
3753
+ var javaScript_default = combinedJavaScript;
3754
3754
 
3755
3755
  //#endregion
3756
3756
  //#region src/configs/helpers/eslint-plugin-react-hooks.ts
@@ -3765,8 +3765,8 @@ const reactHooks = {
3765
3765
  var eslint_plugin_react_hooks_default = reactHooks;
3766
3766
 
3767
3767
  //#endregion
3768
- //#region src/configs/general/reactBase.ts
3769
- const reactBase = [
3768
+ //#region src/configs/general/react.ts
3769
+ const generalReact = [
3770
3770
  reactPlugin.configs.flat.recommended,
3771
3771
  reactPlugin.configs.flat["jsx-runtime"],
3772
3772
  jsxA11y.flatConfigs.recommended,
@@ -3798,7 +3798,7 @@ const reactBase = [
3798
3798
  settings: { react: { version: "detect" } }
3799
3799
  }
3800
3800
  ];
3801
- var reactBase_default$1 = reactBase;
3801
+ var react_default$1 = generalReact;
3802
3802
 
3803
3803
  //#endregion
3804
3804
  //#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
@@ -3809,8 +3809,8 @@ const reactRestrictedImports = combineRestrictedImports_default(generalRestricte
3809
3809
  var reactRestrictedImports_default = reactRestrictedImports;
3810
3810
 
3811
3811
  //#endregion
3812
- //#region src/configs/personal/reactBase.ts
3813
- const personalReactBaseConfig = [{
3812
+ //#region src/configs/personal/react.ts
3813
+ const personalReact = [{
3814
3814
  languageOptions: reactLanguageOptions_default,
3815
3815
  name: "@alextheman/personal/react",
3816
3816
  plugins: {
@@ -3826,33 +3826,41 @@ const personalReactBaseConfig = [{
3826
3826
  "react/jsx-boolean-value": "error"
3827
3827
  }
3828
3828
  }];
3829
- var reactBase_default$2 = personalReactBaseConfig;
3829
+ var react_default$2 = personalReact;
3830
3830
 
3831
3831
  //#endregion
3832
- //#region src/configs/combined/reactBase.ts
3833
- const combinedReactBaseConfig = [
3832
+ //#region src/configs/combined/react.ts
3833
+ const combinedReact = [
3834
3834
  { name: "@alextheman/combined/react" },
3835
- ...reactBase_default$1,
3836
- ...reactBase_default$2
3835
+ ...react_default$1,
3836
+ ...react_default$2
3837
3837
  ];
3838
- var reactBase_default = combinedReactBaseConfig;
3838
+ var react_default = combinedReact;
3839
3839
 
3840
3840
  //#endregion
3841
- //#region src/configs/combined/javaScriptReactBase.ts
3842
- function createCombinedJavaScriptReactBaseConfig(plugin) {
3841
+ //#region src/configs/combined/javaScriptReact.ts
3842
+ function combinedJavaScriptReact(plugin) {
3843
3843
  return [
3844
3844
  { name: "@alextheman/combined/javascript-react" },
3845
- ...javaScriptBase_default(plugin),
3846
- ...reactBase_default
3845
+ ...javaScript_default(plugin),
3846
+ ...react_default
3847
3847
  ];
3848
3848
  }
3849
- var javaScriptReactBase_default = createCombinedJavaScriptReactBaseConfig;
3849
+ var javaScriptReact_default = combinedJavaScriptReact;
3850
+
3851
+ //#endregion
3852
+ //#region src/configs/general/packageJson.ts
3853
+ const generalPackageJson = [packageJson.configs.recommended, {
3854
+ plugins: { "package-json": packageJson },
3855
+ rules: { "package-json/scripts-name-casing": "error" }
3856
+ }];
3857
+ var packageJson_default = generalPackageJson;
3850
3858
 
3851
3859
  //#endregion
3852
- //#region src/configs/general/typeScriptBase.ts
3853
- const typeScriptBase = [
3860
+ //#region src/configs/general/typeScript.ts
3861
+ const generalTypeScript = [
3854
3862
  ...tseslint.configs.recommended,
3855
- ...javaScriptBase_default$1,
3863
+ ...javaScript_default$1,
3856
3864
  {
3857
3865
  files: ["**/*.ts", "**/*.tsx"],
3858
3866
  languageOptions: typeScriptLanguageOptions_default,
@@ -3871,30 +3879,48 @@ const typeScriptBase = [
3871
3879
  }
3872
3880
  }
3873
3881
  ];
3874
- var typeScriptBase_default$1 = typeScriptBase;
3882
+ var typeScript_default$1 = generalTypeScript;
3883
+
3884
+ //#endregion
3885
+ //#region src/configs/personal/alexCLine.ts
3886
+ const personalAlexCLine = [{
3887
+ files: ["src/commands/index.ts"],
3888
+ name: "@alextheman/personal/alex-c-line",
3889
+ plugins: { perfectionist },
3890
+ rules: { "perfectionist/sort-objects": ["error", sortObjects_default] }
3891
+ }];
3892
+ var alexCLine_default = personalAlexCLine;
3875
3893
 
3876
3894
  //#endregion
3877
3895
  //#region src/configs/helpers/restrictedImports/eslintPluginRestrictedImports.ts
3878
- const eslintPluginRestrictedImports = combineRestrictedImports_default(generalRestrictedImports_default, { paths: [...[
3879
- "src/alexPlugin",
3880
- "src/index",
3881
- "src"
3882
- ].map((name$1) => {
3883
- return {
3896
+ const eslintPluginRestrictedImports = combineRestrictedImports_default(generalRestrictedImports_default, { paths: [
3897
+ ...[
3898
+ "src/alexPlugin",
3899
+ "src/index",
3900
+ "src"
3901
+ ].map((name$1) => {
3902
+ return {
3903
+ importNames: ["default"],
3904
+ 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.",
3905
+ name: name$1
3906
+ };
3907
+ }),
3908
+ {
3884
3909
  importNames: ["default"],
3885
- 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.",
3886
- name: name$1
3887
- };
3888
- }), {
3889
- importNames: ["default"],
3890
- message: "Please import from \"src/configs/helpers/eslint-plugin-react-hooks\" instead.",
3891
- name: "eslint-plugin-react-hooks"
3892
- }] });
3910
+ message: "Please import from \"src/configs/helpers/eslint-plugin-react-hooks\" instead.",
3911
+ name: "eslint-plugin-react-hooks"
3912
+ },
3913
+ {
3914
+ importNames: ["createRuleTester"],
3915
+ message: "Please import createRuleTester from \"tests/rule-testers/createRuleTester\" instead.",
3916
+ name: "eslint-vitest-rule-tester"
3917
+ }
3918
+ ] });
3893
3919
  var eslintPluginRestrictedImports_default = eslintPluginRestrictedImports;
3894
3920
 
3895
3921
  //#endregion
3896
3922
  //#region src/configs/personal/eslintPlugin.ts
3897
- function createPersonalEslintPluginConfig(plugin) {
3923
+ function personalEslintPlugin(plugin) {
3898
3924
  return [{
3899
3925
  name: "@alextheman/personal/eslint-plugin",
3900
3926
  plugins: {
@@ -3910,7 +3936,7 @@ function createPersonalEslintPluginConfig(plugin) {
3910
3936
  rules: { "perfectionist/sort-objects": ["error", sortObjects_default] }
3911
3937
  }];
3912
3938
  }
3913
- var eslintPlugin_default = createPersonalEslintPluginConfig;
3939
+ var eslintPlugin_default = personalEslintPlugin;
3914
3940
 
3915
3941
  //#endregion
3916
3942
  //#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
@@ -3934,7 +3960,7 @@ var neurosongsBackEndRestrictedImports_default = neurosongsBackEndRestrictedImpo
3934
3960
 
3935
3961
  //#endregion
3936
3962
  //#region src/configs/personal/neurosongsBackEnd.ts
3937
- const neurosongsBackEndConfig = [
3963
+ const personalNeurosongsBackEnd = [
3938
3964
  {
3939
3965
  name: "@alextheman/personal/neurosongs-back-end",
3940
3966
  rules: { "no-restricted-imports": ["error", neurosongsBackEndRestrictedImports_default] }
@@ -3952,7 +3978,7 @@ const neurosongsBackEndConfig = [
3952
3978
  ] }
3953
3979
  }
3954
3980
  ];
3955
- var neurosongsBackEnd_default = neurosongsBackEndConfig;
3981
+ var neurosongsBackEnd_default = personalNeurosongsBackEnd;
3956
3982
 
3957
3983
  //#endregion
3958
3984
  //#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
@@ -3977,15 +4003,15 @@ var neurosongsFrontEndRestrictedImports_default = neurosongsFrontEndRestrictedIm
3977
4003
 
3978
4004
  //#endregion
3979
4005
  //#region src/configs/personal/neurosongsFrontEnd.ts
3980
- const neurosongsFrontEndConfig = [{
4006
+ const personalNeurosongsFrontEnd = [{
3981
4007
  name: "@alextheman/personal/neurosongs-front-end",
3982
4008
  rules: { "no-restricted-imports": ["error", neurosongsFrontEndRestrictedImports_default] }
3983
4009
  }];
3984
- var neurosongsFrontEnd_default = neurosongsFrontEndConfig;
4010
+ var neurosongsFrontEnd_default = personalNeurosongsFrontEnd;
3985
4011
 
3986
4012
  //#endregion
3987
- //#region src/configs/personal/typeScriptBase.ts
3988
- function createPersonalTypeScriptBaseConfig(plugin) {
4013
+ //#region src/configs/personal/typeScript.ts
4014
+ function personalTypeScript(plugin) {
3989
4015
  return [{
3990
4016
  files: ["**/*.ts", "**/*.tsx"],
3991
4017
  languageOptions: typeScriptLanguageOptions_default,
@@ -4005,57 +4031,39 @@ function createPersonalTypeScriptBaseConfig(plugin) {
4005
4031
  }
4006
4032
  }];
4007
4033
  }
4008
- var typeScriptBase_default$2 = createPersonalTypeScriptBaseConfig;
4034
+ var typeScript_default$2 = personalTypeScript;
4009
4035
 
4010
4036
  //#endregion
4011
4037
  //#region src/configs/personal/utility.ts
4012
- const utilityConfig = [{
4038
+ const personalUtility = [{
4013
4039
  name: "@alextheman/personal/utility",
4014
4040
  plugins: { "@typescript-eslint": tseslint.plugin },
4015
4041
  rules: { "@typescript-eslint/explicit-module-boundary-types": "error" }
4016
4042
  }];
4017
- var utility_default = utilityConfig;
4043
+ var utility_default = personalUtility;
4018
4044
 
4019
4045
  //#endregion
4020
- //#region src/configs/combined/typeScriptBase.ts
4021
- function createCombinedTypeScriptBaseConfig(plugin) {
4046
+ //#region src/configs/combined/typeScript.ts
4047
+ function combinedTypeScript(plugin) {
4022
4048
  return [
4023
4049
  { name: "@alextheman/combined/typescript" },
4024
- ...javaScriptBase_default(plugin),
4025
- ...typeScriptBase_default$1,
4026
- ...typeScriptBase_default$2(plugin)
4050
+ ...javaScript_default(plugin),
4051
+ ...typeScript_default$1,
4052
+ ...typeScript_default$2(plugin)
4027
4053
  ];
4028
4054
  }
4029
- var typeScriptBase_default = createCombinedTypeScriptBaseConfig;
4055
+ var typeScript_default = combinedTypeScript;
4030
4056
 
4031
4057
  //#endregion
4032
- //#region src/configs/combined/typeScriptReactBase.ts
4033
- function createCombinedTypeScriptReactBaseConfig(plugin) {
4058
+ //#region src/configs/combined/typeScriptReact.ts
4059
+ function combinedTypeScriptReact(plugin) {
4034
4060
  return [
4035
4061
  { name: "@alextheman/combined/typescript-react" },
4036
- ...typeScriptBase_default(plugin),
4037
- ...reactBase_default
4062
+ ...typeScript_default(plugin),
4063
+ ...react_default
4038
4064
  ];
4039
4065
  }
4040
- var typeScriptReactBase_default = createCombinedTypeScriptReactBaseConfig;
4041
-
4042
- //#endregion
4043
- //#region src/configs/general/packageJson.ts
4044
- const packageJsonConfig = [packageJson.configs.recommended, {
4045
- plugins: { "package-json": packageJson },
4046
- rules: { "package-json/scripts-name-casing": "error" }
4047
- }];
4048
- var packageJson_default = packageJsonConfig;
4049
-
4050
- //#endregion
4051
- //#region src/configs/personal/alexCLine.ts
4052
- const alexCLineConfig = [{
4053
- files: ["src/commands/index.ts"],
4054
- name: "@alextheman/personal/alex-c-line",
4055
- plugins: { perfectionist },
4056
- rules: { "perfectionist/sort-objects": ["error", sortObjects_default] }
4057
- }];
4058
- var alexCLine_default = alexCLineConfig;
4066
+ var typeScriptReact_default = combinedTypeScriptReact;
4059
4067
 
4060
4068
  //#endregion
4061
4069
  //#region src/utility/camelToKebab.ts
@@ -4087,33 +4095,33 @@ var createPluginConfigs_default = createPluginConfigs;
4087
4095
  function createAlexPluginConfigs(plugin) {
4088
4096
  return createPluginConfigs_default({
4089
4097
  combined: {
4090
- javaScript: [...javaScriptBase_default(plugin), ...packageJson_default],
4091
- javaScriptReact: [...javaScriptReactBase_default(plugin), ...packageJson_default],
4092
- react: [...reactBase_default, ...packageJson_default],
4093
- tests: [...testsBase_default(plugin), ...packageJson_default],
4094
- typeScript: [...typeScriptBase_default(plugin), ...packageJson_default],
4095
- typeScriptReact: [...typeScriptReactBase_default(plugin), ...packageJson_default]
4098
+ javaScript: [...javaScript_default(plugin), ...packageJson_default],
4099
+ javaScriptReact: [...javaScriptReact_default(plugin), ...packageJson_default],
4100
+ react: [...react_default, ...packageJson_default],
4101
+ tests: [...tests_default(plugin), ...packageJson_default],
4102
+ typeScript: [...typeScript_default(plugin), ...packageJson_default],
4103
+ typeScriptReact: [...typeScriptReact_default(plugin), ...packageJson_default]
4096
4104
  },
4097
4105
  general: {
4098
- javaScript: javaScriptBase_default$1,
4106
+ javaScript: javaScript_default$1,
4099
4107
  packageJson: packageJson_default,
4100
- react: reactBase_default$1,
4101
- typeScript: typeScriptBase_default$1
4108
+ react: react_default$1,
4109
+ typeScript: typeScript_default$1
4102
4110
  },
4103
4111
  personal: {
4104
4112
  alexCLine: alexCLine_default,
4105
4113
  eslintPlugin: eslintPlugin_default(plugin),
4106
- javaScript: javaScriptBase_default$2(plugin),
4114
+ javaScript: javaScriptBase_default(plugin),
4107
4115
  neurosongsBackEnd: neurosongsBackEnd_default,
4108
4116
  neurosongsFrontEnd: neurosongsFrontEnd_default,
4109
- react: reactBase_default$2,
4110
- tests: testsBase_default$1,
4111
- typeScript: typeScriptBase_default$2(plugin),
4117
+ react: react_default$2,
4118
+ tests: tests_default$1,
4119
+ typeScript: typeScript_default$2(plugin),
4112
4120
  utility: utility_default
4113
4121
  },
4114
4122
  plugin: {
4115
- base: pluginBase_default(plugin),
4116
- tests: testsBase_default$2(plugin)
4123
+ base: base_default(plugin),
4124
+ tests: tests_default$2(plugin)
4117
4125
  }
4118
4126
  });
4119
4127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "4.4.1",
3
+ "version": "4.4.3",
4
4
  "description": "A package to provide custom ESLint rules and configs",
5
5
  "repository": {
6
6
  "type": "git",