@alextheman/eslint-plugin 2.7.7 → 2.7.8
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 +82 -51
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +84 -53
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3759,7 +3759,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
3759
3759
|
|
|
3760
3760
|
// package.json
|
|
3761
3761
|
var name = "@alextheman/eslint-plugin";
|
|
3762
|
-
var version = "2.7.
|
|
3762
|
+
var version = "2.7.8";
|
|
3763
3763
|
|
|
3764
3764
|
// src/configs/index.ts
|
|
3765
3765
|
var import_eslint_plugin_package_json = __toESM(require("eslint-plugin-package-json"), 1);
|
|
@@ -3772,6 +3772,7 @@ var personalTestsBaseConfig = [
|
|
|
3772
3772
|
languageOptions: {
|
|
3773
3773
|
globals: __spreadValues(__spreadValues(__spreadValues({}, import_globals.default.node), import_globals.default.browser), import_globals.default.vitest)
|
|
3774
3774
|
},
|
|
3775
|
+
name: "@alextheman/personal/tests",
|
|
3775
3776
|
rules: {
|
|
3776
3777
|
"no-restricted-globals": [
|
|
3777
3778
|
"error",
|
|
@@ -3808,6 +3809,7 @@ var testsBase_default = personalTestsBaseConfig;
|
|
|
3808
3809
|
function createPluginBaseConfig(plugin) {
|
|
3809
3810
|
return [
|
|
3810
3811
|
{
|
|
3812
|
+
name: "@alextheman/plugin/base",
|
|
3811
3813
|
plugins: {
|
|
3812
3814
|
"@alextheman": plugin
|
|
3813
3815
|
},
|
|
@@ -3826,6 +3828,7 @@ function createPluginTestsBaseConfig(plugin) {
|
|
|
3826
3828
|
return [
|
|
3827
3829
|
{
|
|
3828
3830
|
files: ["**/*.test.ts"],
|
|
3831
|
+
name: "@alextheman/plugin/tests",
|
|
3829
3832
|
plugins: {
|
|
3830
3833
|
"@alextheman": plugin
|
|
3831
3834
|
},
|
|
@@ -3841,7 +3844,11 @@ var testsBase_default2 = createPluginTestsBaseConfig;
|
|
|
3841
3844
|
|
|
3842
3845
|
// src/configs/combined/testsBase.ts
|
|
3843
3846
|
function createCombinedTestsBaseConfig(plugin) {
|
|
3844
|
-
return [
|
|
3847
|
+
return [
|
|
3848
|
+
{ name: "@alextheman/combined/tests" },
|
|
3849
|
+
...testsBase_default2(plugin),
|
|
3850
|
+
...testsBase_default
|
|
3851
|
+
];
|
|
3845
3852
|
}
|
|
3846
3853
|
var testsBase_default3 = createCombinedTestsBaseConfig;
|
|
3847
3854
|
|
|
@@ -3849,17 +3856,23 @@ var testsBase_default3 = createCombinedTestsBaseConfig;
|
|
|
3849
3856
|
var import_js = __toESM(require_src(), 1);
|
|
3850
3857
|
var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
|
|
3851
3858
|
var import_eslint_plugin_import = __toESM(require("eslint-plugin-import"), 1);
|
|
3859
|
+
|
|
3860
|
+
// src/configs/miscellaneous/javaScriptLanguageOptions.ts
|
|
3852
3861
|
var import_globals2 = __toESM(require_globals2(), 1);
|
|
3862
|
+
var javaScriptLanguageOptions = {
|
|
3863
|
+
globals: __spreadValues(__spreadValues(__spreadValues({}, import_globals2.default.node), import_globals2.default.browser), import_globals2.default.vitest)
|
|
3864
|
+
};
|
|
3865
|
+
var javaScriptLanguageOptions_default = javaScriptLanguageOptions;
|
|
3866
|
+
|
|
3867
|
+
// src/configs/general/javaScriptBase.ts
|
|
3853
3868
|
var javaScriptBase = [
|
|
3854
3869
|
import_js.default.configs.recommended,
|
|
3855
3870
|
import_eslint_config_prettier.default,
|
|
3856
3871
|
{
|
|
3857
3872
|
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
|
|
3858
3873
|
ignores: ["dist"],
|
|
3859
|
-
languageOptions:
|
|
3860
|
-
|
|
3861
|
-
},
|
|
3862
|
-
name: "@alextheman/eslint-config-javascript-base",
|
|
3874
|
+
languageOptions: javaScriptLanguageOptions_default,
|
|
3875
|
+
name: "@alextheman/general/javascript",
|
|
3863
3876
|
plugins: {
|
|
3864
3877
|
import: import_eslint_plugin_import.default
|
|
3865
3878
|
},
|
|
@@ -3920,6 +3933,8 @@ function createPersonalJavaScriptBaseConfig(plugin) {
|
|
|
3920
3933
|
return [
|
|
3921
3934
|
{
|
|
3922
3935
|
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
|
|
3936
|
+
languageOptions: javaScriptLanguageOptions_default,
|
|
3937
|
+
name: "@alextheman/personal/javascript",
|
|
3923
3938
|
plugins: {
|
|
3924
3939
|
"@alextheman": plugin,
|
|
3925
3940
|
perfectionist: import_eslint_plugin_perfectionist.default,
|
|
@@ -3976,6 +3991,9 @@ var javaScriptBase_default2 = createPersonalJavaScriptBaseConfig;
|
|
|
3976
3991
|
// src/configs/combined/javaScriptBase.ts
|
|
3977
3992
|
function createCombinedJavaScriptBaseConfig(plugin) {
|
|
3978
3993
|
return [
|
|
3994
|
+
{
|
|
3995
|
+
name: "@alextheman/combined/javascript"
|
|
3996
|
+
},
|
|
3979
3997
|
...pluginBase_default(plugin),
|
|
3980
3998
|
...javaScriptBase_default,
|
|
3981
3999
|
...javaScriptBase_default2(plugin),
|
|
@@ -3989,22 +4007,28 @@ var import_eslint_plugin_jsx_a11y = __toESM(require("eslint-plugin-jsx-a11y"), 1
|
|
|
3989
4007
|
var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
|
|
3990
4008
|
var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
|
|
3991
4009
|
var import_eslint_plugin_react_refresh = __toESM(require("eslint-plugin-react-refresh"), 1);
|
|
4010
|
+
|
|
4011
|
+
// src/configs/miscellaneous/reactLanguageOptions.ts
|
|
3992
4012
|
var import_globals3 = __toESM(require_globals2(), 1);
|
|
4013
|
+
var reactLanguageOptions = {
|
|
4014
|
+
ecmaVersion: 2020,
|
|
4015
|
+
globals: import_globals3.default.browser,
|
|
4016
|
+
parserOptions: {
|
|
4017
|
+
ecmaFeatures: {
|
|
4018
|
+
jsx: true
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
4021
|
+
};
|
|
4022
|
+
var reactLanguageOptions_default = reactLanguageOptions;
|
|
4023
|
+
|
|
4024
|
+
// src/configs/general/reactBase.ts
|
|
3993
4025
|
var reactBase = [
|
|
3994
4026
|
import_eslint_plugin_react.default.configs.flat.recommended,
|
|
3995
4027
|
import_eslint_plugin_react.default.configs.flat["jsx-runtime"],
|
|
3996
4028
|
import_eslint_plugin_jsx_a11y.default.flatConfigs.recommended,
|
|
3997
4029
|
{
|
|
3998
|
-
languageOptions:
|
|
3999
|
-
|
|
4000
|
-
globals: import_globals3.default.browser,
|
|
4001
|
-
parserOptions: {
|
|
4002
|
-
ecmaFeatures: {
|
|
4003
|
-
jsx: true
|
|
4004
|
-
}
|
|
4005
|
-
}
|
|
4006
|
-
},
|
|
4007
|
-
name: "@alextheman/eslint-config-react-base",
|
|
4030
|
+
languageOptions: reactLanguageOptions_default,
|
|
4031
|
+
name: "@alextheman/general/react",
|
|
4008
4032
|
plugins: {
|
|
4009
4033
|
react: import_eslint_plugin_react.default,
|
|
4010
4034
|
"react-hooks": import_eslint_plugin_react_hooks.default,
|
|
@@ -4034,19 +4058,10 @@ var reactBase_default = reactBase;
|
|
|
4034
4058
|
var import_eslint_plugin_react2 = __toESM(require("eslint-plugin-react"), 1);
|
|
4035
4059
|
var import_eslint_plugin_react_hooks2 = __toESM(require("eslint-plugin-react-hooks"), 1);
|
|
4036
4060
|
var import_eslint_plugin_react_refresh2 = __toESM(require("eslint-plugin-react-refresh"), 1);
|
|
4037
|
-
var import_globals4 = __toESM(require_globals2(), 1);
|
|
4038
4061
|
var personalReactBaseConfig = [
|
|
4039
4062
|
{
|
|
4040
|
-
languageOptions:
|
|
4041
|
-
|
|
4042
|
-
globals: import_globals4.default.browser,
|
|
4043
|
-
parserOptions: {
|
|
4044
|
-
ecmaFeatures: {
|
|
4045
|
-
jsx: true
|
|
4046
|
-
}
|
|
4047
|
-
}
|
|
4048
|
-
},
|
|
4049
|
-
name: "@alextheman/eslint-config-react-base",
|
|
4063
|
+
languageOptions: reactLanguageOptions_default,
|
|
4064
|
+
name: "@alextheman/personal/react",
|
|
4050
4065
|
plugins: {
|
|
4051
4066
|
react: import_eslint_plugin_react2.default,
|
|
4052
4067
|
"react-hooks": import_eslint_plugin_react_hooks2.default,
|
|
@@ -4073,33 +4088,47 @@ var personalReactBaseConfig = [
|
|
|
4073
4088
|
var reactBase_default2 = personalReactBaseConfig;
|
|
4074
4089
|
|
|
4075
4090
|
// src/configs/combined/reactBase.ts
|
|
4076
|
-
var combinedReactBaseConfig = [
|
|
4091
|
+
var combinedReactBaseConfig = [
|
|
4092
|
+
{ name: "@alextheman/combined/react" },
|
|
4093
|
+
...reactBase_default,
|
|
4094
|
+
...reactBase_default2
|
|
4095
|
+
];
|
|
4077
4096
|
var reactBase_default3 = combinedReactBaseConfig;
|
|
4078
4097
|
|
|
4079
4098
|
// src/configs/combined/javaScriptReactBase.ts
|
|
4080
4099
|
function createCombinedJavaScriptReactBaseConfig(plugin) {
|
|
4081
|
-
return [
|
|
4100
|
+
return [
|
|
4101
|
+
{ name: "@alextheman/combined/javascript-react" },
|
|
4102
|
+
...javaScriptBase_default3(plugin),
|
|
4103
|
+
...reactBase_default3
|
|
4104
|
+
];
|
|
4082
4105
|
}
|
|
4083
4106
|
var javaScriptReactBase_default = createCombinedJavaScriptReactBaseConfig;
|
|
4084
4107
|
|
|
4085
4108
|
// src/configs/general/typeScriptBase.ts
|
|
4086
|
-
var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
|
|
4087
4109
|
var import_typescript_eslint = __toESM(require("typescript-eslint"), 1);
|
|
4110
|
+
|
|
4111
|
+
// src/configs/miscellaneous/typeScriptLanguageOptions.ts
|
|
4112
|
+
var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
|
|
4113
|
+
var typeScriptLanguageOptions = {
|
|
4114
|
+
parser: import_parser.default,
|
|
4115
|
+
parserOptions: {
|
|
4116
|
+
ecmaVersion: "latest",
|
|
4117
|
+
projectService: true,
|
|
4118
|
+
sourceType: "module",
|
|
4119
|
+
tsconfigRootDir: process.cwd()
|
|
4120
|
+
}
|
|
4121
|
+
};
|
|
4122
|
+
var typeScriptLanguageOptions_default = typeScriptLanguageOptions;
|
|
4123
|
+
|
|
4124
|
+
// src/configs/general/typeScriptBase.ts
|
|
4088
4125
|
var typeScriptBase = [
|
|
4089
4126
|
...import_typescript_eslint.default.configs.recommended,
|
|
4090
4127
|
...javaScriptBase_default,
|
|
4091
4128
|
{
|
|
4092
4129
|
files: ["**/*.ts", "**/*.tsx"],
|
|
4093
|
-
languageOptions:
|
|
4094
|
-
|
|
4095
|
-
parserOptions: {
|
|
4096
|
-
ecmaVersion: "latest",
|
|
4097
|
-
projectService: true,
|
|
4098
|
-
sourceType: "module",
|
|
4099
|
-
tsconfigRootDir: process.cwd()
|
|
4100
|
-
}
|
|
4101
|
-
},
|
|
4102
|
-
name: "@alextheman/eslint-config-typescript-base",
|
|
4130
|
+
languageOptions: typeScriptLanguageOptions_default,
|
|
4131
|
+
name: "@alextheman/general/typescript",
|
|
4103
4132
|
rules: {
|
|
4104
4133
|
"@typescript-eslint/consistent-type-exports": "error",
|
|
4105
4134
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
@@ -4158,6 +4187,7 @@ var sortObjects_default = sortObjects;
|
|
|
4158
4187
|
function createPersonalEslintPluginConfig(plugin) {
|
|
4159
4188
|
return [
|
|
4160
4189
|
{
|
|
4190
|
+
name: "@alextheman/personal/eslint-plugin",
|
|
4161
4191
|
plugins: {
|
|
4162
4192
|
"@alextheman": plugin,
|
|
4163
4193
|
perfectionist: import_eslint_plugin_perfectionist2.default
|
|
@@ -4198,6 +4228,7 @@ var eslintPlugin_default = createPersonalEslintPluginConfig;
|
|
|
4198
4228
|
// src/configs/personal/neurosongsBackEnd.ts
|
|
4199
4229
|
var neurosongsBackEndConfig = [
|
|
4200
4230
|
{
|
|
4231
|
+
name: "@alextheman/personal/neurosongs-back-end",
|
|
4201
4232
|
rules: {
|
|
4202
4233
|
"no-restricted-imports": [
|
|
4203
4234
|
"error",
|
|
@@ -4246,6 +4277,7 @@ var neurosongsBackEnd_default = neurosongsBackEndConfig;
|
|
|
4246
4277
|
// src/configs/personal/neurosongsFrontEnd.ts
|
|
4247
4278
|
var neurosongsFrontEndConfig = [
|
|
4248
4279
|
{
|
|
4280
|
+
name: "@alextheman/personal/neurosongs-front-end",
|
|
4249
4281
|
rules: {
|
|
4250
4282
|
"no-restricted-imports": [
|
|
4251
4283
|
"error",
|
|
@@ -4289,21 +4321,13 @@ var neurosongsFrontEndConfig = [
|
|
|
4289
4321
|
var neurosongsFrontEnd_default = neurosongsFrontEndConfig;
|
|
4290
4322
|
|
|
4291
4323
|
// src/configs/personal/typeScriptBase.ts
|
|
4292
|
-
var import_parser2 = __toESM(require("@typescript-eslint/parser"), 1);
|
|
4293
4324
|
var import_typescript_eslint2 = __toESM(require("typescript-eslint"), 1);
|
|
4294
4325
|
function createPersonalTypeScriptBaseConfig(plugin) {
|
|
4295
4326
|
return [
|
|
4296
4327
|
{
|
|
4297
4328
|
files: ["**/*.ts", "**/*.tsx"],
|
|
4298
|
-
languageOptions:
|
|
4299
|
-
|
|
4300
|
-
parserOptions: {
|
|
4301
|
-
ecmaVersion: "latest",
|
|
4302
|
-
projectService: true,
|
|
4303
|
-
sourceType: "module",
|
|
4304
|
-
tsconfigRootDir: process.cwd()
|
|
4305
|
-
}
|
|
4306
|
-
},
|
|
4329
|
+
languageOptions: typeScriptLanguageOptions_default,
|
|
4330
|
+
name: "@alextheman/personal/typescript",
|
|
4307
4331
|
plugins: {
|
|
4308
4332
|
"@alextheman": plugin,
|
|
4309
4333
|
"@typescript-eslint": import_typescript_eslint2.default.plugin
|
|
@@ -4327,6 +4351,7 @@ var typeScriptBase_default2 = createPersonalTypeScriptBaseConfig;
|
|
|
4327
4351
|
var import_typescript_eslint3 = __toESM(require("typescript-eslint"), 1);
|
|
4328
4352
|
var utilityConfig = [
|
|
4329
4353
|
{
|
|
4354
|
+
name: "@alextheman/personal/utility",
|
|
4330
4355
|
plugins: {
|
|
4331
4356
|
"@typescript-eslint": import_typescript_eslint3.default.plugin
|
|
4332
4357
|
},
|
|
@@ -4340,6 +4365,7 @@ var utility_default = utilityConfig;
|
|
|
4340
4365
|
// src/configs/combined/typeScriptBase.ts
|
|
4341
4366
|
function createCombinedTypeScriptBaseConfig(plugin) {
|
|
4342
4367
|
return [
|
|
4368
|
+
{ name: "@alextheman/combined/typescript" },
|
|
4343
4369
|
...javaScriptBase_default3(plugin),
|
|
4344
4370
|
...typeScriptBase_default,
|
|
4345
4371
|
...typeScriptBase_default2(plugin)
|
|
@@ -4349,7 +4375,11 @@ var typeScriptBase_default3 = createCombinedTypeScriptBaseConfig;
|
|
|
4349
4375
|
|
|
4350
4376
|
// src/configs/combined/typeScriptReactBase.ts
|
|
4351
4377
|
function createCombinedTypeScriptReactBaseConfig(plugin) {
|
|
4352
|
-
return [
|
|
4378
|
+
return [
|
|
4379
|
+
{ name: "@alextheman/combined/typescript-react" },
|
|
4380
|
+
...typeScriptBase_default3(plugin),
|
|
4381
|
+
...reactBase_default3
|
|
4382
|
+
];
|
|
4353
4383
|
}
|
|
4354
4384
|
var typeScriptReactBase_default = createCombinedTypeScriptReactBaseConfig;
|
|
4355
4385
|
|
|
@@ -4358,6 +4388,7 @@ var import_eslint_plugin_perfectionist3 = __toESM(require("eslint-plugin-perfect
|
|
|
4358
4388
|
var alexCLineConfig = [
|
|
4359
4389
|
{
|
|
4360
4390
|
files: ["src/commands/index.ts"],
|
|
4391
|
+
name: "@alextheman/personal/alex-c-line",
|
|
4361
4392
|
plugins: {
|
|
4362
4393
|
perfectionist: import_eslint_plugin_perfectionist3.default
|
|
4363
4394
|
},
|
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { Config } from 'prettier';
|
|
|
4
4
|
import z from 'zod';
|
|
5
5
|
|
|
6
6
|
var name = "@alextheman/eslint-plugin";
|
|
7
|
-
var version = "2.7.
|
|
7
|
+
var version = "2.7.8";
|
|
8
8
|
|
|
9
9
|
type CamelToKebab<S extends string> = S extends `${IgnoreCase<"J">}avaScript${infer Rest}` ? Rest extends "" ? "javascript" : `javascript${CamelToKebab<Rest>}` : S extends `${IgnoreCase<"T">}ypeScript${infer Rest}` ? Rest extends "" ? "typescript" : `typescript${CamelToKebab<Rest>}` : S extends `${infer Head}${infer Tail}` ? Head extends Lowercase<Head> ? `${Head}${CamelToKebab<Tail>}` : `-${Lowercase<Head>}${CamelToKebab<Tail>}` : S;
|
|
10
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Config } from 'prettier';
|
|
|
4
4
|
import z from 'zod';
|
|
5
5
|
|
|
6
6
|
var name = "@alextheman/eslint-plugin";
|
|
7
|
-
var version = "2.7.
|
|
7
|
+
var version = "2.7.8";
|
|
8
8
|
|
|
9
9
|
type CamelToKebab<S extends string> = S extends `${IgnoreCase<"J">}avaScript${infer Rest}` ? Rest extends "" ? "javascript" : `javascript${CamelToKebab<Rest>}` : S extends `${IgnoreCase<"T">}ypeScript${infer Rest}` ? Rest extends "" ? "typescript" : `typescript${CamelToKebab<Rest>}` : S extends `${infer Head}${infer Tail}` ? Head extends Lowercase<Head> ? `${Head}${CamelToKebab<Tail>}` : `-${Lowercase<Head>}${CamelToKebab<Tail>}` : S;
|
|
10
10
|
|
package/dist/index.js
CHANGED
|
@@ -3743,7 +3743,7 @@ var require_src = __commonJS({
|
|
|
3743
3743
|
|
|
3744
3744
|
// package.json
|
|
3745
3745
|
var name = "@alextheman/eslint-plugin";
|
|
3746
|
-
var version = "2.7.
|
|
3746
|
+
var version = "2.7.8";
|
|
3747
3747
|
|
|
3748
3748
|
// src/configs/index.ts
|
|
3749
3749
|
import packageJson from "eslint-plugin-package-json";
|
|
@@ -3756,6 +3756,7 @@ var personalTestsBaseConfig = [
|
|
|
3756
3756
|
languageOptions: {
|
|
3757
3757
|
globals: __spreadValues(__spreadValues(__spreadValues({}, import_globals.default.node), import_globals.default.browser), import_globals.default.vitest)
|
|
3758
3758
|
},
|
|
3759
|
+
name: "@alextheman/personal/tests",
|
|
3759
3760
|
rules: {
|
|
3760
3761
|
"no-restricted-globals": [
|
|
3761
3762
|
"error",
|
|
@@ -3792,6 +3793,7 @@ var testsBase_default = personalTestsBaseConfig;
|
|
|
3792
3793
|
function createPluginBaseConfig(plugin) {
|
|
3793
3794
|
return [
|
|
3794
3795
|
{
|
|
3796
|
+
name: "@alextheman/plugin/base",
|
|
3795
3797
|
plugins: {
|
|
3796
3798
|
"@alextheman": plugin
|
|
3797
3799
|
},
|
|
@@ -3810,6 +3812,7 @@ function createPluginTestsBaseConfig(plugin) {
|
|
|
3810
3812
|
return [
|
|
3811
3813
|
{
|
|
3812
3814
|
files: ["**/*.test.ts"],
|
|
3815
|
+
name: "@alextheman/plugin/tests",
|
|
3813
3816
|
plugins: {
|
|
3814
3817
|
"@alextheman": plugin
|
|
3815
3818
|
},
|
|
@@ -3825,25 +3828,35 @@ var testsBase_default2 = createPluginTestsBaseConfig;
|
|
|
3825
3828
|
|
|
3826
3829
|
// src/configs/combined/testsBase.ts
|
|
3827
3830
|
function createCombinedTestsBaseConfig(plugin) {
|
|
3828
|
-
return [
|
|
3831
|
+
return [
|
|
3832
|
+
{ name: "@alextheman/combined/tests" },
|
|
3833
|
+
...testsBase_default2(plugin),
|
|
3834
|
+
...testsBase_default
|
|
3835
|
+
];
|
|
3829
3836
|
}
|
|
3830
3837
|
var testsBase_default3 = createCombinedTestsBaseConfig;
|
|
3831
3838
|
|
|
3832
3839
|
// src/configs/general/javaScriptBase.ts
|
|
3833
3840
|
var import_js = __toESM(require_src(), 1);
|
|
3834
|
-
var import_globals2 = __toESM(require_globals2(), 1);
|
|
3835
3841
|
import prettierConfig from "eslint-config-prettier";
|
|
3836
3842
|
import importPlugin from "eslint-plugin-import";
|
|
3843
|
+
|
|
3844
|
+
// src/configs/miscellaneous/javaScriptLanguageOptions.ts
|
|
3845
|
+
var import_globals2 = __toESM(require_globals2(), 1);
|
|
3846
|
+
var javaScriptLanguageOptions = {
|
|
3847
|
+
globals: __spreadValues(__spreadValues(__spreadValues({}, import_globals2.default.node), import_globals2.default.browser), import_globals2.default.vitest)
|
|
3848
|
+
};
|
|
3849
|
+
var javaScriptLanguageOptions_default = javaScriptLanguageOptions;
|
|
3850
|
+
|
|
3851
|
+
// src/configs/general/javaScriptBase.ts
|
|
3837
3852
|
var javaScriptBase = [
|
|
3838
3853
|
import_js.default.configs.recommended,
|
|
3839
3854
|
prettierConfig,
|
|
3840
3855
|
{
|
|
3841
3856
|
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
|
|
3842
3857
|
ignores: ["dist"],
|
|
3843
|
-
languageOptions:
|
|
3844
|
-
|
|
3845
|
-
},
|
|
3846
|
-
name: "@alextheman/eslint-config-javascript-base",
|
|
3858
|
+
languageOptions: javaScriptLanguageOptions_default,
|
|
3859
|
+
name: "@alextheman/general/javascript",
|
|
3847
3860
|
plugins: {
|
|
3848
3861
|
import: importPlugin
|
|
3849
3862
|
},
|
|
@@ -3904,6 +3917,8 @@ function createPersonalJavaScriptBaseConfig(plugin) {
|
|
|
3904
3917
|
return [
|
|
3905
3918
|
{
|
|
3906
3919
|
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
|
|
3920
|
+
languageOptions: javaScriptLanguageOptions_default,
|
|
3921
|
+
name: "@alextheman/personal/javascript",
|
|
3907
3922
|
plugins: {
|
|
3908
3923
|
"@alextheman": plugin,
|
|
3909
3924
|
perfectionist,
|
|
@@ -3960,6 +3975,9 @@ var javaScriptBase_default2 = createPersonalJavaScriptBaseConfig;
|
|
|
3960
3975
|
// src/configs/combined/javaScriptBase.ts
|
|
3961
3976
|
function createCombinedJavaScriptBaseConfig(plugin) {
|
|
3962
3977
|
return [
|
|
3978
|
+
{
|
|
3979
|
+
name: "@alextheman/combined/javascript"
|
|
3980
|
+
},
|
|
3963
3981
|
...pluginBase_default(plugin),
|
|
3964
3982
|
...javaScriptBase_default,
|
|
3965
3983
|
...javaScriptBase_default2(plugin),
|
|
@@ -3969,26 +3987,32 @@ function createCombinedJavaScriptBaseConfig(plugin) {
|
|
|
3969
3987
|
var javaScriptBase_default3 = createCombinedJavaScriptBaseConfig;
|
|
3970
3988
|
|
|
3971
3989
|
// src/configs/general/reactBase.ts
|
|
3972
|
-
var import_globals3 = __toESM(require_globals2(), 1);
|
|
3973
3990
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
3974
3991
|
import reactPlugin from "eslint-plugin-react";
|
|
3975
3992
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
3976
3993
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
3994
|
+
|
|
3995
|
+
// src/configs/miscellaneous/reactLanguageOptions.ts
|
|
3996
|
+
var import_globals3 = __toESM(require_globals2(), 1);
|
|
3997
|
+
var reactLanguageOptions = {
|
|
3998
|
+
ecmaVersion: 2020,
|
|
3999
|
+
globals: import_globals3.default.browser,
|
|
4000
|
+
parserOptions: {
|
|
4001
|
+
ecmaFeatures: {
|
|
4002
|
+
jsx: true
|
|
4003
|
+
}
|
|
4004
|
+
}
|
|
4005
|
+
};
|
|
4006
|
+
var reactLanguageOptions_default = reactLanguageOptions;
|
|
4007
|
+
|
|
4008
|
+
// src/configs/general/reactBase.ts
|
|
3977
4009
|
var reactBase = [
|
|
3978
4010
|
reactPlugin.configs.flat.recommended,
|
|
3979
4011
|
reactPlugin.configs.flat["jsx-runtime"],
|
|
3980
4012
|
jsxA11y.flatConfigs.recommended,
|
|
3981
4013
|
{
|
|
3982
|
-
languageOptions:
|
|
3983
|
-
|
|
3984
|
-
globals: import_globals3.default.browser,
|
|
3985
|
-
parserOptions: {
|
|
3986
|
-
ecmaFeatures: {
|
|
3987
|
-
jsx: true
|
|
3988
|
-
}
|
|
3989
|
-
}
|
|
3990
|
-
},
|
|
3991
|
-
name: "@alextheman/eslint-config-react-base",
|
|
4014
|
+
languageOptions: reactLanguageOptions_default,
|
|
4015
|
+
name: "@alextheman/general/react",
|
|
3992
4016
|
plugins: {
|
|
3993
4017
|
react: reactPlugin,
|
|
3994
4018
|
"react-hooks": reactHooks,
|
|
@@ -4015,22 +4039,13 @@ var reactBase = [
|
|
|
4015
4039
|
var reactBase_default = reactBase;
|
|
4016
4040
|
|
|
4017
4041
|
// src/configs/personal/reactBase.ts
|
|
4018
|
-
var import_globals4 = __toESM(require_globals2(), 1);
|
|
4019
4042
|
import reactPlugin2 from "eslint-plugin-react";
|
|
4020
4043
|
import reactHooks2 from "eslint-plugin-react-hooks";
|
|
4021
4044
|
import reactRefresh2 from "eslint-plugin-react-refresh";
|
|
4022
4045
|
var personalReactBaseConfig = [
|
|
4023
4046
|
{
|
|
4024
|
-
languageOptions:
|
|
4025
|
-
|
|
4026
|
-
globals: import_globals4.default.browser,
|
|
4027
|
-
parserOptions: {
|
|
4028
|
-
ecmaFeatures: {
|
|
4029
|
-
jsx: true
|
|
4030
|
-
}
|
|
4031
|
-
}
|
|
4032
|
-
},
|
|
4033
|
-
name: "@alextheman/eslint-config-react-base",
|
|
4047
|
+
languageOptions: reactLanguageOptions_default,
|
|
4048
|
+
name: "@alextheman/personal/react",
|
|
4034
4049
|
plugins: {
|
|
4035
4050
|
react: reactPlugin2,
|
|
4036
4051
|
"react-hooks": reactHooks2,
|
|
@@ -4057,33 +4072,47 @@ var personalReactBaseConfig = [
|
|
|
4057
4072
|
var reactBase_default2 = personalReactBaseConfig;
|
|
4058
4073
|
|
|
4059
4074
|
// src/configs/combined/reactBase.ts
|
|
4060
|
-
var combinedReactBaseConfig = [
|
|
4075
|
+
var combinedReactBaseConfig = [
|
|
4076
|
+
{ name: "@alextheman/combined/react" },
|
|
4077
|
+
...reactBase_default,
|
|
4078
|
+
...reactBase_default2
|
|
4079
|
+
];
|
|
4061
4080
|
var reactBase_default3 = combinedReactBaseConfig;
|
|
4062
4081
|
|
|
4063
4082
|
// src/configs/combined/javaScriptReactBase.ts
|
|
4064
4083
|
function createCombinedJavaScriptReactBaseConfig(plugin) {
|
|
4065
|
-
return [
|
|
4084
|
+
return [
|
|
4085
|
+
{ name: "@alextheman/combined/javascript-react" },
|
|
4086
|
+
...javaScriptBase_default3(plugin),
|
|
4087
|
+
...reactBase_default3
|
|
4088
|
+
];
|
|
4066
4089
|
}
|
|
4067
4090
|
var javaScriptReactBase_default = createCombinedJavaScriptReactBaseConfig;
|
|
4068
4091
|
|
|
4069
4092
|
// src/configs/general/typeScriptBase.ts
|
|
4070
|
-
import tsparser from "@typescript-eslint/parser";
|
|
4071
4093
|
import tseslint from "typescript-eslint";
|
|
4094
|
+
|
|
4095
|
+
// src/configs/miscellaneous/typeScriptLanguageOptions.ts
|
|
4096
|
+
import tsparser from "@typescript-eslint/parser";
|
|
4097
|
+
var typeScriptLanguageOptions = {
|
|
4098
|
+
parser: tsparser,
|
|
4099
|
+
parserOptions: {
|
|
4100
|
+
ecmaVersion: "latest",
|
|
4101
|
+
projectService: true,
|
|
4102
|
+
sourceType: "module",
|
|
4103
|
+
tsconfigRootDir: process.cwd()
|
|
4104
|
+
}
|
|
4105
|
+
};
|
|
4106
|
+
var typeScriptLanguageOptions_default = typeScriptLanguageOptions;
|
|
4107
|
+
|
|
4108
|
+
// src/configs/general/typeScriptBase.ts
|
|
4072
4109
|
var typeScriptBase = [
|
|
4073
4110
|
...tseslint.configs.recommended,
|
|
4074
4111
|
...javaScriptBase_default,
|
|
4075
4112
|
{
|
|
4076
4113
|
files: ["**/*.ts", "**/*.tsx"],
|
|
4077
|
-
languageOptions:
|
|
4078
|
-
|
|
4079
|
-
parserOptions: {
|
|
4080
|
-
ecmaVersion: "latest",
|
|
4081
|
-
projectService: true,
|
|
4082
|
-
sourceType: "module",
|
|
4083
|
-
tsconfigRootDir: process.cwd()
|
|
4084
|
-
}
|
|
4085
|
-
},
|
|
4086
|
-
name: "@alextheman/eslint-config-typescript-base",
|
|
4114
|
+
languageOptions: typeScriptLanguageOptions_default,
|
|
4115
|
+
name: "@alextheman/general/typescript",
|
|
4087
4116
|
rules: {
|
|
4088
4117
|
"@typescript-eslint/consistent-type-exports": "error",
|
|
4089
4118
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
@@ -4142,6 +4171,7 @@ var sortObjects_default = sortObjects;
|
|
|
4142
4171
|
function createPersonalEslintPluginConfig(plugin) {
|
|
4143
4172
|
return [
|
|
4144
4173
|
{
|
|
4174
|
+
name: "@alextheman/personal/eslint-plugin",
|
|
4145
4175
|
plugins: {
|
|
4146
4176
|
"@alextheman": plugin,
|
|
4147
4177
|
perfectionist: perfectionist2
|
|
@@ -4182,6 +4212,7 @@ var eslintPlugin_default = createPersonalEslintPluginConfig;
|
|
|
4182
4212
|
// src/configs/personal/neurosongsBackEnd.ts
|
|
4183
4213
|
var neurosongsBackEndConfig = [
|
|
4184
4214
|
{
|
|
4215
|
+
name: "@alextheman/personal/neurosongs-back-end",
|
|
4185
4216
|
rules: {
|
|
4186
4217
|
"no-restricted-imports": [
|
|
4187
4218
|
"error",
|
|
@@ -4230,6 +4261,7 @@ var neurosongsBackEnd_default = neurosongsBackEndConfig;
|
|
|
4230
4261
|
// src/configs/personal/neurosongsFrontEnd.ts
|
|
4231
4262
|
var neurosongsFrontEndConfig = [
|
|
4232
4263
|
{
|
|
4264
|
+
name: "@alextheman/personal/neurosongs-front-end",
|
|
4233
4265
|
rules: {
|
|
4234
4266
|
"no-restricted-imports": [
|
|
4235
4267
|
"error",
|
|
@@ -4273,21 +4305,13 @@ var neurosongsFrontEndConfig = [
|
|
|
4273
4305
|
var neurosongsFrontEnd_default = neurosongsFrontEndConfig;
|
|
4274
4306
|
|
|
4275
4307
|
// src/configs/personal/typeScriptBase.ts
|
|
4276
|
-
import tsparser2 from "@typescript-eslint/parser";
|
|
4277
4308
|
import tseslint2 from "typescript-eslint";
|
|
4278
4309
|
function createPersonalTypeScriptBaseConfig(plugin) {
|
|
4279
4310
|
return [
|
|
4280
4311
|
{
|
|
4281
4312
|
files: ["**/*.ts", "**/*.tsx"],
|
|
4282
|
-
languageOptions:
|
|
4283
|
-
|
|
4284
|
-
parserOptions: {
|
|
4285
|
-
ecmaVersion: "latest",
|
|
4286
|
-
projectService: true,
|
|
4287
|
-
sourceType: "module",
|
|
4288
|
-
tsconfigRootDir: process.cwd()
|
|
4289
|
-
}
|
|
4290
|
-
},
|
|
4313
|
+
languageOptions: typeScriptLanguageOptions_default,
|
|
4314
|
+
name: "@alextheman/personal/typescript",
|
|
4291
4315
|
plugins: {
|
|
4292
4316
|
"@alextheman": plugin,
|
|
4293
4317
|
"@typescript-eslint": tseslint2.plugin
|
|
@@ -4311,6 +4335,7 @@ var typeScriptBase_default2 = createPersonalTypeScriptBaseConfig;
|
|
|
4311
4335
|
import tseslint3 from "typescript-eslint";
|
|
4312
4336
|
var utilityConfig = [
|
|
4313
4337
|
{
|
|
4338
|
+
name: "@alextheman/personal/utility",
|
|
4314
4339
|
plugins: {
|
|
4315
4340
|
"@typescript-eslint": tseslint3.plugin
|
|
4316
4341
|
},
|
|
@@ -4324,6 +4349,7 @@ var utility_default = utilityConfig;
|
|
|
4324
4349
|
// src/configs/combined/typeScriptBase.ts
|
|
4325
4350
|
function createCombinedTypeScriptBaseConfig(plugin) {
|
|
4326
4351
|
return [
|
|
4352
|
+
{ name: "@alextheman/combined/typescript" },
|
|
4327
4353
|
...javaScriptBase_default3(plugin),
|
|
4328
4354
|
...typeScriptBase_default,
|
|
4329
4355
|
...typeScriptBase_default2(plugin)
|
|
@@ -4333,7 +4359,11 @@ var typeScriptBase_default3 = createCombinedTypeScriptBaseConfig;
|
|
|
4333
4359
|
|
|
4334
4360
|
// src/configs/combined/typeScriptReactBase.ts
|
|
4335
4361
|
function createCombinedTypeScriptReactBaseConfig(plugin) {
|
|
4336
|
-
return [
|
|
4362
|
+
return [
|
|
4363
|
+
{ name: "@alextheman/combined/typescript-react" },
|
|
4364
|
+
...typeScriptBase_default3(plugin),
|
|
4365
|
+
...reactBase_default3
|
|
4366
|
+
];
|
|
4337
4367
|
}
|
|
4338
4368
|
var typeScriptReactBase_default = createCombinedTypeScriptReactBaseConfig;
|
|
4339
4369
|
|
|
@@ -4342,6 +4372,7 @@ import perfectionist3 from "eslint-plugin-perfectionist";
|
|
|
4342
4372
|
var alexCLineConfig = [
|
|
4343
4373
|
{
|
|
4344
4374
|
files: ["src/commands/index.ts"],
|
|
4375
|
+
name: "@alextheman/personal/alex-c-line",
|
|
4345
4376
|
plugins: {
|
|
4346
4377
|
perfectionist: perfectionist3
|
|
4347
4378
|
},
|