@alextheman/eslint-plugin 4.4.1 → 4.4.2
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 +102 -102
- package/dist/index.js +102 -102
- 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.
|
|
62
|
+
var version = "4.4.2";
|
|
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/
|
|
3481
|
-
const
|
|
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
|
|
3508
|
+
var tests_default$1 = personalTests;
|
|
3509
3509
|
|
|
3510
3510
|
//#endregion
|
|
3511
|
-
//#region src/configs/plugin/
|
|
3512
|
-
function
|
|
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
|
|
3523
|
+
var base_default = pluginBase;
|
|
3524
3524
|
|
|
3525
3525
|
//#endregion
|
|
3526
|
-
//#region src/configs/plugin/
|
|
3527
|
-
function
|
|
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
|
|
3539
|
+
var tests_default$2 = pluginTests;
|
|
3540
3540
|
|
|
3541
3541
|
//#endregion
|
|
3542
|
-
//#region src/configs/combined/
|
|
3543
|
-
function
|
|
3542
|
+
//#region src/configs/combined/tests.ts
|
|
3543
|
+
function combinedTests(plugin) {
|
|
3544
3544
|
return [
|
|
3545
3545
|
{ name: "@alextheman/combined/tests" },
|
|
3546
|
-
...
|
|
3547
|
-
...
|
|
3546
|
+
...tests_default$2(plugin),
|
|
3547
|
+
...tests_default$1
|
|
3548
3548
|
];
|
|
3549
3549
|
}
|
|
3550
|
-
var
|
|
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/
|
|
3573
|
-
const
|
|
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
|
|
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
|
|
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
|
|
3754
|
+
var javaScriptBase_default = personalJavaScript;
|
|
3755
3755
|
|
|
3756
3756
|
//#endregion
|
|
3757
|
-
//#region src/configs/combined/
|
|
3758
|
-
function
|
|
3757
|
+
//#region src/configs/combined/javaScript.ts
|
|
3758
|
+
function combinedJavaScript(plugin) {
|
|
3759
3759
|
return [
|
|
3760
3760
|
{ name: "@alextheman/combined/javascript" },
|
|
3761
|
-
...
|
|
3762
|
-
...
|
|
3763
|
-
...javaScriptBase_default
|
|
3764
|
-
...
|
|
3761
|
+
...base_default(plugin),
|
|
3762
|
+
...javaScript_default$1,
|
|
3763
|
+
...javaScriptBase_default(plugin),
|
|
3764
|
+
...tests_default(plugin)
|
|
3765
3765
|
];
|
|
3766
3766
|
}
|
|
3767
|
-
var
|
|
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/
|
|
3783
|
-
const
|
|
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
|
|
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/
|
|
3827
|
-
const
|
|
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
|
|
3843
|
+
var react_default$2 = personalReact;
|
|
3844
3844
|
|
|
3845
3845
|
//#endregion
|
|
3846
|
-
//#region src/configs/combined/
|
|
3847
|
-
const
|
|
3846
|
+
//#region src/configs/combined/react.ts
|
|
3847
|
+
const combinedReact = [
|
|
3848
3848
|
{ name: "@alextheman/combined/react" },
|
|
3849
|
-
...
|
|
3850
|
-
...
|
|
3849
|
+
...react_default$1,
|
|
3850
|
+
...react_default$2
|
|
3851
3851
|
];
|
|
3852
|
-
var
|
|
3852
|
+
var react_default = combinedReact;
|
|
3853
3853
|
|
|
3854
3854
|
//#endregion
|
|
3855
|
-
//#region src/configs/combined/
|
|
3856
|
-
function
|
|
3855
|
+
//#region src/configs/combined/javaScriptReact.ts
|
|
3856
|
+
function combinedJavaScriptReact(plugin) {
|
|
3857
3857
|
return [
|
|
3858
3858
|
{ name: "@alextheman/combined/javascript-react" },
|
|
3859
|
-
...
|
|
3860
|
-
...
|
|
3859
|
+
...javaScript_default(plugin),
|
|
3860
|
+
...react_default
|
|
3861
3861
|
];
|
|
3862
3862
|
}
|
|
3863
|
-
var
|
|
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/
|
|
3867
|
-
const
|
|
3874
|
+
//#region src/configs/general/typeScript.ts
|
|
3875
|
+
const generalTypeScript = [
|
|
3868
3876
|
...typescript_eslint.default.configs.recommended,
|
|
3869
|
-
...
|
|
3877
|
+
...javaScript_default$1,
|
|
3870
3878
|
{
|
|
3871
3879
|
files: ["**/*.ts", "**/*.tsx"],
|
|
3872
3880
|
languageOptions: typeScriptLanguageOptions_default,
|
|
@@ -3885,7 +3893,17 @@ const typeScriptBase = [
|
|
|
3885
3893
|
}
|
|
3886
3894
|
}
|
|
3887
3895
|
];
|
|
3888
|
-
var
|
|
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
|
|
@@ -3908,7 +3926,7 @@ var eslintPluginRestrictedImports_default = eslintPluginRestrictedImports;
|
|
|
3908
3926
|
|
|
3909
3927
|
//#endregion
|
|
3910
3928
|
//#region src/configs/personal/eslintPlugin.ts
|
|
3911
|
-
function
|
|
3929
|
+
function personalEslintPlugin(plugin) {
|
|
3912
3930
|
return [{
|
|
3913
3931
|
name: "@alextheman/personal/eslint-plugin",
|
|
3914
3932
|
plugins: {
|
|
@@ -3924,7 +3942,7 @@ function createPersonalEslintPluginConfig(plugin) {
|
|
|
3924
3942
|
rules: { "perfectionist/sort-objects": ["error", sortObjects_default] }
|
|
3925
3943
|
}];
|
|
3926
3944
|
}
|
|
3927
|
-
var eslintPlugin_default =
|
|
3945
|
+
var eslintPlugin_default = personalEslintPlugin;
|
|
3928
3946
|
|
|
3929
3947
|
//#endregion
|
|
3930
3948
|
//#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
|
|
@@ -3948,7 +3966,7 @@ var neurosongsBackEndRestrictedImports_default = neurosongsBackEndRestrictedImpo
|
|
|
3948
3966
|
|
|
3949
3967
|
//#endregion
|
|
3950
3968
|
//#region src/configs/personal/neurosongsBackEnd.ts
|
|
3951
|
-
const
|
|
3969
|
+
const personalNeurosongsBackEnd = [
|
|
3952
3970
|
{
|
|
3953
3971
|
name: "@alextheman/personal/neurosongs-back-end",
|
|
3954
3972
|
rules: { "no-restricted-imports": ["error", neurosongsBackEndRestrictedImports_default] }
|
|
@@ -3966,7 +3984,7 @@ const neurosongsBackEndConfig = [
|
|
|
3966
3984
|
] }
|
|
3967
3985
|
}
|
|
3968
3986
|
];
|
|
3969
|
-
var neurosongsBackEnd_default =
|
|
3987
|
+
var neurosongsBackEnd_default = personalNeurosongsBackEnd;
|
|
3970
3988
|
|
|
3971
3989
|
//#endregion
|
|
3972
3990
|
//#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
|
|
@@ -3991,15 +4009,15 @@ var neurosongsFrontEndRestrictedImports_default = neurosongsFrontEndRestrictedIm
|
|
|
3991
4009
|
|
|
3992
4010
|
//#endregion
|
|
3993
4011
|
//#region src/configs/personal/neurosongsFrontEnd.ts
|
|
3994
|
-
const
|
|
4012
|
+
const personalNeurosongsFrontEnd = [{
|
|
3995
4013
|
name: "@alextheman/personal/neurosongs-front-end",
|
|
3996
4014
|
rules: { "no-restricted-imports": ["error", neurosongsFrontEndRestrictedImports_default] }
|
|
3997
4015
|
}];
|
|
3998
|
-
var neurosongsFrontEnd_default =
|
|
4016
|
+
var neurosongsFrontEnd_default = personalNeurosongsFrontEnd;
|
|
3999
4017
|
|
|
4000
4018
|
//#endregion
|
|
4001
|
-
//#region src/configs/personal/
|
|
4002
|
-
function
|
|
4019
|
+
//#region src/configs/personal/typeScript.ts
|
|
4020
|
+
function personalTypeScript(plugin) {
|
|
4003
4021
|
return [{
|
|
4004
4022
|
files: ["**/*.ts", "**/*.tsx"],
|
|
4005
4023
|
languageOptions: typeScriptLanguageOptions_default,
|
|
@@ -4019,57 +4037,39 @@ function createPersonalTypeScriptBaseConfig(plugin) {
|
|
|
4019
4037
|
}
|
|
4020
4038
|
}];
|
|
4021
4039
|
}
|
|
4022
|
-
var
|
|
4040
|
+
var typeScript_default$2 = personalTypeScript;
|
|
4023
4041
|
|
|
4024
4042
|
//#endregion
|
|
4025
4043
|
//#region src/configs/personal/utility.ts
|
|
4026
|
-
const
|
|
4044
|
+
const personalUtility = [{
|
|
4027
4045
|
name: "@alextheman/personal/utility",
|
|
4028
4046
|
plugins: { "@typescript-eslint": typescript_eslint.default.plugin },
|
|
4029
4047
|
rules: { "@typescript-eslint/explicit-module-boundary-types": "error" }
|
|
4030
4048
|
}];
|
|
4031
|
-
var utility_default =
|
|
4049
|
+
var utility_default = personalUtility;
|
|
4032
4050
|
|
|
4033
4051
|
//#endregion
|
|
4034
|
-
//#region src/configs/combined/
|
|
4035
|
-
function
|
|
4052
|
+
//#region src/configs/combined/typeScript.ts
|
|
4053
|
+
function combinedTypeScript(plugin) {
|
|
4036
4054
|
return [
|
|
4037
4055
|
{ name: "@alextheman/combined/typescript" },
|
|
4038
|
-
...
|
|
4039
|
-
...
|
|
4040
|
-
...
|
|
4056
|
+
...javaScript_default(plugin),
|
|
4057
|
+
...typeScript_default$1,
|
|
4058
|
+
...typeScript_default$2(plugin)
|
|
4041
4059
|
];
|
|
4042
4060
|
}
|
|
4043
|
-
var
|
|
4061
|
+
var typeScript_default = combinedTypeScript;
|
|
4044
4062
|
|
|
4045
4063
|
//#endregion
|
|
4046
|
-
//#region src/configs/combined/
|
|
4047
|
-
function
|
|
4064
|
+
//#region src/configs/combined/typeScriptReact.ts
|
|
4065
|
+
function combinedTypeScriptReact(plugin) {
|
|
4048
4066
|
return [
|
|
4049
4067
|
{ name: "@alextheman/combined/typescript-react" },
|
|
4050
|
-
...
|
|
4051
|
-
...
|
|
4068
|
+
...typeScript_default(plugin),
|
|
4069
|
+
...react_default
|
|
4052
4070
|
];
|
|
4053
4071
|
}
|
|
4054
|
-
var
|
|
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;
|
|
4072
|
+
var typeScriptReact_default = combinedTypeScriptReact;
|
|
4073
4073
|
|
|
4074
4074
|
//#endregion
|
|
4075
4075
|
//#region src/utility/camelToKebab.ts
|
|
@@ -4101,33 +4101,33 @@ var createPluginConfigs_default = createPluginConfigs;
|
|
|
4101
4101
|
function createAlexPluginConfigs(plugin) {
|
|
4102
4102
|
return createPluginConfigs_default({
|
|
4103
4103
|
combined: {
|
|
4104
|
-
javaScript: [...
|
|
4105
|
-
javaScriptReact: [...
|
|
4106
|
-
react: [...
|
|
4107
|
-
tests: [...
|
|
4108
|
-
typeScript: [...
|
|
4109
|
-
typeScriptReact: [...
|
|
4104
|
+
javaScript: [...javaScript_default(plugin), ...packageJson_default],
|
|
4105
|
+
javaScriptReact: [...javaScriptReact_default(plugin), ...packageJson_default],
|
|
4106
|
+
react: [...react_default, ...packageJson_default],
|
|
4107
|
+
tests: [...tests_default(plugin), ...packageJson_default],
|
|
4108
|
+
typeScript: [...typeScript_default(plugin), ...packageJson_default],
|
|
4109
|
+
typeScriptReact: [...typeScriptReact_default(plugin), ...packageJson_default]
|
|
4110
4110
|
},
|
|
4111
4111
|
general: {
|
|
4112
|
-
javaScript:
|
|
4112
|
+
javaScript: javaScript_default$1,
|
|
4113
4113
|
packageJson: packageJson_default,
|
|
4114
|
-
react:
|
|
4115
|
-
typeScript:
|
|
4114
|
+
react: react_default$1,
|
|
4115
|
+
typeScript: typeScript_default$1
|
|
4116
4116
|
},
|
|
4117
4117
|
personal: {
|
|
4118
4118
|
alexCLine: alexCLine_default,
|
|
4119
4119
|
eslintPlugin: eslintPlugin_default(plugin),
|
|
4120
|
-
javaScript: javaScriptBase_default
|
|
4120
|
+
javaScript: javaScriptBase_default(plugin),
|
|
4121
4121
|
neurosongsBackEnd: neurosongsBackEnd_default,
|
|
4122
4122
|
neurosongsFrontEnd: neurosongsFrontEnd_default,
|
|
4123
|
-
react:
|
|
4124
|
-
tests:
|
|
4125
|
-
typeScript:
|
|
4123
|
+
react: react_default$2,
|
|
4124
|
+
tests: tests_default$1,
|
|
4125
|
+
typeScript: typeScript_default$2(plugin),
|
|
4126
4126
|
utility: utility_default
|
|
4127
4127
|
},
|
|
4128
4128
|
plugin: {
|
|
4129
|
-
base:
|
|
4130
|
-
tests:
|
|
4129
|
+
base: base_default(plugin),
|
|
4130
|
+
tests: tests_default$2(plugin)
|
|
4131
4131
|
}
|
|
4132
4132
|
});
|
|
4133
4133
|
}
|
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.
|
|
48
|
+
var version = "4.4.2";
|
|
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/
|
|
3467
|
-
const
|
|
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
|
|
3494
|
+
var tests_default$1 = personalTests;
|
|
3495
3495
|
|
|
3496
3496
|
//#endregion
|
|
3497
|
-
//#region src/configs/plugin/
|
|
3498
|
-
function
|
|
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
|
|
3509
|
+
var base_default = pluginBase;
|
|
3510
3510
|
|
|
3511
3511
|
//#endregion
|
|
3512
|
-
//#region src/configs/plugin/
|
|
3513
|
-
function
|
|
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
|
|
3525
|
+
var tests_default$2 = pluginTests;
|
|
3526
3526
|
|
|
3527
3527
|
//#endregion
|
|
3528
|
-
//#region src/configs/combined/
|
|
3529
|
-
function
|
|
3528
|
+
//#region src/configs/combined/tests.ts
|
|
3529
|
+
function combinedTests(plugin) {
|
|
3530
3530
|
return [
|
|
3531
3531
|
{ name: "@alextheman/combined/tests" },
|
|
3532
|
-
...
|
|
3533
|
-
...
|
|
3532
|
+
...tests_default$2(plugin),
|
|
3533
|
+
...tests_default$1
|
|
3534
3534
|
];
|
|
3535
3535
|
}
|
|
3536
|
-
var
|
|
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/
|
|
3559
|
-
const
|
|
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
|
|
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
|
|
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
|
|
3740
|
+
var javaScriptBase_default = personalJavaScript;
|
|
3741
3741
|
|
|
3742
3742
|
//#endregion
|
|
3743
|
-
//#region src/configs/combined/
|
|
3744
|
-
function
|
|
3743
|
+
//#region src/configs/combined/javaScript.ts
|
|
3744
|
+
function combinedJavaScript(plugin) {
|
|
3745
3745
|
return [
|
|
3746
3746
|
{ name: "@alextheman/combined/javascript" },
|
|
3747
|
-
...
|
|
3748
|
-
...
|
|
3749
|
-
...javaScriptBase_default
|
|
3750
|
-
...
|
|
3747
|
+
...base_default(plugin),
|
|
3748
|
+
...javaScript_default$1,
|
|
3749
|
+
...javaScriptBase_default(plugin),
|
|
3750
|
+
...tests_default(plugin)
|
|
3751
3751
|
];
|
|
3752
3752
|
}
|
|
3753
|
-
var
|
|
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/
|
|
3769
|
-
const
|
|
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
|
|
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/
|
|
3813
|
-
const
|
|
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
|
|
3829
|
+
var react_default$2 = personalReact;
|
|
3830
3830
|
|
|
3831
3831
|
//#endregion
|
|
3832
|
-
//#region src/configs/combined/
|
|
3833
|
-
const
|
|
3832
|
+
//#region src/configs/combined/react.ts
|
|
3833
|
+
const combinedReact = [
|
|
3834
3834
|
{ name: "@alextheman/combined/react" },
|
|
3835
|
-
...
|
|
3836
|
-
...
|
|
3835
|
+
...react_default$1,
|
|
3836
|
+
...react_default$2
|
|
3837
3837
|
];
|
|
3838
|
-
var
|
|
3838
|
+
var react_default = combinedReact;
|
|
3839
3839
|
|
|
3840
3840
|
//#endregion
|
|
3841
|
-
//#region src/configs/combined/
|
|
3842
|
-
function
|
|
3841
|
+
//#region src/configs/combined/javaScriptReact.ts
|
|
3842
|
+
function combinedJavaScriptReact(plugin) {
|
|
3843
3843
|
return [
|
|
3844
3844
|
{ name: "@alextheman/combined/javascript-react" },
|
|
3845
|
-
...
|
|
3846
|
-
...
|
|
3845
|
+
...javaScript_default(plugin),
|
|
3846
|
+
...react_default
|
|
3847
3847
|
];
|
|
3848
3848
|
}
|
|
3849
|
-
var
|
|
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/
|
|
3853
|
-
const
|
|
3860
|
+
//#region src/configs/general/typeScript.ts
|
|
3861
|
+
const generalTypeScript = [
|
|
3854
3862
|
...tseslint.configs.recommended,
|
|
3855
|
-
...
|
|
3863
|
+
...javaScript_default$1,
|
|
3856
3864
|
{
|
|
3857
3865
|
files: ["**/*.ts", "**/*.tsx"],
|
|
3858
3866
|
languageOptions: typeScriptLanguageOptions_default,
|
|
@@ -3871,7 +3879,17 @@ const typeScriptBase = [
|
|
|
3871
3879
|
}
|
|
3872
3880
|
}
|
|
3873
3881
|
];
|
|
3874
|
-
var
|
|
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
|
|
@@ -3894,7 +3912,7 @@ var eslintPluginRestrictedImports_default = eslintPluginRestrictedImports;
|
|
|
3894
3912
|
|
|
3895
3913
|
//#endregion
|
|
3896
3914
|
//#region src/configs/personal/eslintPlugin.ts
|
|
3897
|
-
function
|
|
3915
|
+
function personalEslintPlugin(plugin) {
|
|
3898
3916
|
return [{
|
|
3899
3917
|
name: "@alextheman/personal/eslint-plugin",
|
|
3900
3918
|
plugins: {
|
|
@@ -3910,7 +3928,7 @@ function createPersonalEslintPluginConfig(plugin) {
|
|
|
3910
3928
|
rules: { "perfectionist/sort-objects": ["error", sortObjects_default] }
|
|
3911
3929
|
}];
|
|
3912
3930
|
}
|
|
3913
|
-
var eslintPlugin_default =
|
|
3931
|
+
var eslintPlugin_default = personalEslintPlugin;
|
|
3914
3932
|
|
|
3915
3933
|
//#endregion
|
|
3916
3934
|
//#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
|
|
@@ -3934,7 +3952,7 @@ var neurosongsBackEndRestrictedImports_default = neurosongsBackEndRestrictedImpo
|
|
|
3934
3952
|
|
|
3935
3953
|
//#endregion
|
|
3936
3954
|
//#region src/configs/personal/neurosongsBackEnd.ts
|
|
3937
|
-
const
|
|
3955
|
+
const personalNeurosongsBackEnd = [
|
|
3938
3956
|
{
|
|
3939
3957
|
name: "@alextheman/personal/neurosongs-back-end",
|
|
3940
3958
|
rules: { "no-restricted-imports": ["error", neurosongsBackEndRestrictedImports_default] }
|
|
@@ -3952,7 +3970,7 @@ const neurosongsBackEndConfig = [
|
|
|
3952
3970
|
] }
|
|
3953
3971
|
}
|
|
3954
3972
|
];
|
|
3955
|
-
var neurosongsBackEnd_default =
|
|
3973
|
+
var neurosongsBackEnd_default = personalNeurosongsBackEnd;
|
|
3956
3974
|
|
|
3957
3975
|
//#endregion
|
|
3958
3976
|
//#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
|
|
@@ -3977,15 +3995,15 @@ var neurosongsFrontEndRestrictedImports_default = neurosongsFrontEndRestrictedIm
|
|
|
3977
3995
|
|
|
3978
3996
|
//#endregion
|
|
3979
3997
|
//#region src/configs/personal/neurosongsFrontEnd.ts
|
|
3980
|
-
const
|
|
3998
|
+
const personalNeurosongsFrontEnd = [{
|
|
3981
3999
|
name: "@alextheman/personal/neurosongs-front-end",
|
|
3982
4000
|
rules: { "no-restricted-imports": ["error", neurosongsFrontEndRestrictedImports_default] }
|
|
3983
4001
|
}];
|
|
3984
|
-
var neurosongsFrontEnd_default =
|
|
4002
|
+
var neurosongsFrontEnd_default = personalNeurosongsFrontEnd;
|
|
3985
4003
|
|
|
3986
4004
|
//#endregion
|
|
3987
|
-
//#region src/configs/personal/
|
|
3988
|
-
function
|
|
4005
|
+
//#region src/configs/personal/typeScript.ts
|
|
4006
|
+
function personalTypeScript(plugin) {
|
|
3989
4007
|
return [{
|
|
3990
4008
|
files: ["**/*.ts", "**/*.tsx"],
|
|
3991
4009
|
languageOptions: typeScriptLanguageOptions_default,
|
|
@@ -4005,57 +4023,39 @@ function createPersonalTypeScriptBaseConfig(plugin) {
|
|
|
4005
4023
|
}
|
|
4006
4024
|
}];
|
|
4007
4025
|
}
|
|
4008
|
-
var
|
|
4026
|
+
var typeScript_default$2 = personalTypeScript;
|
|
4009
4027
|
|
|
4010
4028
|
//#endregion
|
|
4011
4029
|
//#region src/configs/personal/utility.ts
|
|
4012
|
-
const
|
|
4030
|
+
const personalUtility = [{
|
|
4013
4031
|
name: "@alextheman/personal/utility",
|
|
4014
4032
|
plugins: { "@typescript-eslint": tseslint.plugin },
|
|
4015
4033
|
rules: { "@typescript-eslint/explicit-module-boundary-types": "error" }
|
|
4016
4034
|
}];
|
|
4017
|
-
var utility_default =
|
|
4035
|
+
var utility_default = personalUtility;
|
|
4018
4036
|
|
|
4019
4037
|
//#endregion
|
|
4020
|
-
//#region src/configs/combined/
|
|
4021
|
-
function
|
|
4038
|
+
//#region src/configs/combined/typeScript.ts
|
|
4039
|
+
function combinedTypeScript(plugin) {
|
|
4022
4040
|
return [
|
|
4023
4041
|
{ name: "@alextheman/combined/typescript" },
|
|
4024
|
-
...
|
|
4025
|
-
...
|
|
4026
|
-
...
|
|
4042
|
+
...javaScript_default(plugin),
|
|
4043
|
+
...typeScript_default$1,
|
|
4044
|
+
...typeScript_default$2(plugin)
|
|
4027
4045
|
];
|
|
4028
4046
|
}
|
|
4029
|
-
var
|
|
4047
|
+
var typeScript_default = combinedTypeScript;
|
|
4030
4048
|
|
|
4031
4049
|
//#endregion
|
|
4032
|
-
//#region src/configs/combined/
|
|
4033
|
-
function
|
|
4050
|
+
//#region src/configs/combined/typeScriptReact.ts
|
|
4051
|
+
function combinedTypeScriptReact(plugin) {
|
|
4034
4052
|
return [
|
|
4035
4053
|
{ name: "@alextheman/combined/typescript-react" },
|
|
4036
|
-
...
|
|
4037
|
-
...
|
|
4054
|
+
...typeScript_default(plugin),
|
|
4055
|
+
...react_default
|
|
4038
4056
|
];
|
|
4039
4057
|
}
|
|
4040
|
-
var
|
|
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;
|
|
4058
|
+
var typeScriptReact_default = combinedTypeScriptReact;
|
|
4059
4059
|
|
|
4060
4060
|
//#endregion
|
|
4061
4061
|
//#region src/utility/camelToKebab.ts
|
|
@@ -4087,33 +4087,33 @@ var createPluginConfigs_default = createPluginConfigs;
|
|
|
4087
4087
|
function createAlexPluginConfigs(plugin) {
|
|
4088
4088
|
return createPluginConfigs_default({
|
|
4089
4089
|
combined: {
|
|
4090
|
-
javaScript: [...
|
|
4091
|
-
javaScriptReact: [...
|
|
4092
|
-
react: [...
|
|
4093
|
-
tests: [...
|
|
4094
|
-
typeScript: [...
|
|
4095
|
-
typeScriptReact: [...
|
|
4090
|
+
javaScript: [...javaScript_default(plugin), ...packageJson_default],
|
|
4091
|
+
javaScriptReact: [...javaScriptReact_default(plugin), ...packageJson_default],
|
|
4092
|
+
react: [...react_default, ...packageJson_default],
|
|
4093
|
+
tests: [...tests_default(plugin), ...packageJson_default],
|
|
4094
|
+
typeScript: [...typeScript_default(plugin), ...packageJson_default],
|
|
4095
|
+
typeScriptReact: [...typeScriptReact_default(plugin), ...packageJson_default]
|
|
4096
4096
|
},
|
|
4097
4097
|
general: {
|
|
4098
|
-
javaScript:
|
|
4098
|
+
javaScript: javaScript_default$1,
|
|
4099
4099
|
packageJson: packageJson_default,
|
|
4100
|
-
react:
|
|
4101
|
-
typeScript:
|
|
4100
|
+
react: react_default$1,
|
|
4101
|
+
typeScript: typeScript_default$1
|
|
4102
4102
|
},
|
|
4103
4103
|
personal: {
|
|
4104
4104
|
alexCLine: alexCLine_default,
|
|
4105
4105
|
eslintPlugin: eslintPlugin_default(plugin),
|
|
4106
|
-
javaScript: javaScriptBase_default
|
|
4106
|
+
javaScript: javaScriptBase_default(plugin),
|
|
4107
4107
|
neurosongsBackEnd: neurosongsBackEnd_default,
|
|
4108
4108
|
neurosongsFrontEnd: neurosongsFrontEnd_default,
|
|
4109
|
-
react:
|
|
4110
|
-
tests:
|
|
4111
|
-
typeScript:
|
|
4109
|
+
react: react_default$2,
|
|
4110
|
+
tests: tests_default$1,
|
|
4111
|
+
typeScript: typeScript_default$2(plugin),
|
|
4112
4112
|
utility: utility_default
|
|
4113
4113
|
},
|
|
4114
4114
|
plugin: {
|
|
4115
|
-
base:
|
|
4116
|
-
tests:
|
|
4115
|
+
base: base_default(plugin),
|
|
4116
|
+
tests: tests_default$2(plugin)
|
|
4117
4117
|
}
|
|
4118
4118
|
});
|
|
4119
4119
|
}
|