@alextheman/eslint-plugin 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3735,6 +3735,29 @@ const reactLanguageOptions = {
3735
3735
  };
3736
3736
  var reactLanguageOptions_default = reactLanguageOptions;
3737
3737
 
3738
+ //#endregion
3739
+ //#region src/configs/helpers/typeDocConfig.ts
3740
+ const typeDocConfig = {
3741
+ entryPoints: ["./src/index.ts"],
3742
+ excludeNotDocumented: true,
3743
+ includeVersion: true,
3744
+ outputs: [{
3745
+ name: "html",
3746
+ options: { navigation: {
3747
+ excludeReferences: false,
3748
+ includeCategories: true,
3749
+ includeFolders: true,
3750
+ includeGroups: true
3751
+ } },
3752
+ path: "docs/features/html"
3753
+ }, {
3754
+ name: "markdown",
3755
+ path: "docs/features/markdown"
3756
+ }],
3757
+ plugin: ["typedoc-plugin-markdown", "typedoc-rhineai-theme"]
3758
+ };
3759
+ var typeDocConfig_default = typeDocConfig;
3760
+
3738
3761
  //#endregion
3739
3762
  //#region src/configs/helpers/typeScriptLanguageOptions.ts
3740
3763
  const typeScriptLanguageOptions = {
@@ -3762,6 +3785,34 @@ function vitestConfig(environment = "jsdom") {
3762
3785
  }
3763
3786
  var vitestConfig_default = vitestConfig;
3764
3787
 
3788
+ //#endregion
3789
+ //#region src/configs/helpers/sorting/sortClasses.ts
3790
+ const sortClasses = {
3791
+ customGroups: [],
3792
+ fallbackSort: { type: "unsorted" },
3793
+ groups: [
3794
+ "index-signature",
3795
+ ["private-static-property", "private-property"],
3796
+ ["static-property", "property"],
3797
+ "constructor",
3798
+ "get-method",
3799
+ "set-method",
3800
+ ["private-static-method", "private-static-function-property"],
3801
+ ["static-method", "static-function-property"],
3802
+ ["private-method", "private-function-property"],
3803
+ ["method", "function-property"],
3804
+ "unknown"
3805
+ ],
3806
+ ignoreCase: true,
3807
+ newlinesBetween: 1,
3808
+ order: "asc",
3809
+ partitionByComment: false,
3810
+ partitionByNewLine: false,
3811
+ specialCharacters: "keep",
3812
+ type: "alphabetical"
3813
+ };
3814
+ var sortClasses_default = sortClasses;
3815
+
3765
3816
  //#endregion
3766
3817
  //#region src/configs/helpers/sorting/sortExports.ts
3767
3818
  const sortExports = {
@@ -3870,6 +3921,7 @@ function personalJavaScript(plugin) {
3870
3921
  "no-else-return": "error",
3871
3922
  "no-implicit-coercion": ["error", { allow: ["!!"] }],
3872
3923
  "operator-assignment": ["error", "always"],
3924
+ "perfectionist/sort-classes": ["error", sortClasses_default],
3873
3925
  "perfectionist/sort-exports": ["error", sortExports_default],
3874
3926
  "perfectionist/sort-imports": ["error", sortImports_default],
3875
3927
  "prefer-arrow-callback": ["error", { allowNamedFunctions: false }],
@@ -4056,9 +4108,16 @@ var requireJsdocOptions_default = requireJsdocOptions;
4056
4108
  //#endregion
4057
4109
  //#region src/configs/personal/typeScriptPackage.ts
4058
4110
  const personalTypeScriptPackage = [eslint_plugin_jsdoc.default.configs["flat/recommended-typescript-error"], { rules: {
4059
- "jsdoc/check-tag-names": ["error", { definedTags: ["note"] }],
4111
+ "jsdoc/check-tag-names": ["error", { definedTags: ["category", "note"] }],
4060
4112
  "jsdoc/require-jsdoc": ["warn", requireJsdocOptions_default],
4113
+ "jsdoc/require-tags": ["error", { tags: ["ExportNamedDeclaration", "ExportDefaultDeclaration"].map((context) => {
4114
+ return {
4115
+ context,
4116
+ tag: "category"
4117
+ };
4118
+ }) }],
4061
4119
  "jsdoc/sort-tags": ["error", { tagSequence: [
4120
+ { tags: ["category"] },
4062
4121
  { tags: ["deprecated"] },
4063
4122
  { tags: ["template"] },
4064
4123
  { tags: ["param"] },
@@ -4741,7 +4800,7 @@ var rules_default = {
4741
4800
  //#endregion
4742
4801
  //#region package.json
4743
4802
  var name = "@alextheman/eslint-plugin";
4744
- var version = "5.1.0";
4803
+ var version = "5.2.0";
4745
4804
 
4746
4805
  //#endregion
4747
4806
  //#region src/alexPlugin.ts
@@ -4777,9 +4836,11 @@ exports.parseTestFunction = parseTestFunction;
4777
4836
  exports.parseUseNormalizedImportsOptions = parseUseNormalizedImportsOptions;
4778
4837
  exports.prettierRules = prettierRules_default;
4779
4838
  exports.reactLanguageOptions = reactLanguageOptions_default;
4839
+ exports.sortClasses = sortClasses_default;
4780
4840
  exports.sortExports = sortExports_default;
4781
4841
  exports.sortImports = sortImports_default;
4782
4842
  exports.sortObjects = sortObjects_default;
4843
+ exports.typeDocConfig = typeDocConfig_default;
4783
4844
  exports.typeScriptLanguageOptions = typeScriptLanguageOptions_default;
4784
4845
  exports.unusedVarsIgnorePatterns = unusedVarsIgnorePatterns_default;
4785
4846
  exports.vitestConfig = vitestConfig_default;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { Linter } from "eslint";
2
2
  import { Config } from "prettier";
3
+ import { TypeDocOptions } from "typedoc";
4
+ import { PluginOptions } from "typedoc-plugin-markdown";
3
5
  import * as vite0 from "vite";
4
6
  import { VitestEnvironment } from "vitest/node";
5
7
  import { RuleContext, RuleFix, RuleFixer } from "@typescript-eslint/utils/ts-eslint";
@@ -53,6 +55,9 @@ declare const prettierRules: Config;
53
55
  //#region src/configs/helpers/reactLanguageOptions.d.ts
54
56
  declare const reactLanguageOptions: Linter.LanguageOptions;
55
57
  //#endregion
58
+ //#region src/configs/helpers/typeDocConfig.d.ts
59
+ declare const typeDocConfig: TypeDocOptions & PluginOptions;
60
+ //#endregion
56
61
  //#region src/configs/helpers/typeScriptLanguageOptions.d.ts
57
62
  declare const typeScriptLanguageOptions: Linter.LanguageOptions;
58
63
  //#endregion
@@ -66,6 +71,22 @@ declare const unusedVarsIgnorePatterns: {
66
71
  //#region src/configs/helpers/vitestConfig.d.ts
67
72
  declare function vitestConfig(environment?: VitestEnvironment): vite0.UserConfig;
68
73
  //#endregion
74
+ //#region src/configs/helpers/sorting/sortClasses.d.ts
75
+ declare const sortClasses: {
76
+ customGroups: never[];
77
+ fallbackSort: {
78
+ type: string;
79
+ };
80
+ groups: (string | string[])[];
81
+ ignoreCase: boolean;
82
+ newlinesBetween: number;
83
+ order: string;
84
+ partitionByComment: boolean;
85
+ partitionByNewLine: boolean;
86
+ specialCharacters: string;
87
+ type: string;
88
+ };
89
+ //#endregion
69
90
  //#region src/configs/helpers/sorting/sortExports.d.ts
70
91
  declare const sortExports: {
71
92
  customGroups: never[];
@@ -326,4 +347,4 @@ declare function flattenConfigs<ConfigObject extends { [K in keyof ConfigObject]
326
347
  */
327
348
  declare function getImportSpecifiersAfterRemoving<RuleOptions>(context: Readonly<RuleContext<"message", [RuleOptions]>>, specifiers: TSESTree.ImportClause[], importToRemove: string): string;
328
349
  //#endregion
329
- export { AlexConfigGroupName, AlexFlattenedConfigName, type AlexPlugin, AlexPluginConfigFlattened, AlexPluginConfigObject, CombinedConfig, type GetFlattenedConfigNames as ConfigKey, ConsistentTestFunctionOptions, GeneralConfig, NoNamespaceImportsOptions, NoRelativeImportsOptions, type NoRestrictedImportsOptions, PersonalConfig, PluginConfig, type RestrictedPathImport, type RestrictedPatternImport, RuleFixerFunction, StandardiseErrorMessagesOptions, TestFunction, UseNormalizedImportsOptions, checkCallExpression, combineRestrictedImports, createRuleSchemaFromZodSchema, alexPlugin as default, fixOnCondition, flattenConfigs, getImportSpecifiersAfterRemoving, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules, reactLanguageOptions, sortExports, sortImports, sortObjects, typeScriptLanguageOptions, unusedVarsIgnorePatterns, vitestConfig };
350
+ export { AlexConfigGroupName, AlexFlattenedConfigName, type AlexPlugin, AlexPluginConfigFlattened, AlexPluginConfigObject, CombinedConfig, type GetFlattenedConfigNames as ConfigKey, ConsistentTestFunctionOptions, GeneralConfig, NoNamespaceImportsOptions, NoRelativeImportsOptions, type NoRestrictedImportsOptions, PersonalConfig, PluginConfig, type RestrictedPathImport, type RestrictedPatternImport, RuleFixerFunction, StandardiseErrorMessagesOptions, TestFunction, UseNormalizedImportsOptions, checkCallExpression, combineRestrictedImports, createRuleSchemaFromZodSchema, alexPlugin as default, fixOnCondition, flattenConfigs, getImportSpecifiersAfterRemoving, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules, reactLanguageOptions, sortClasses, sortExports, sortImports, sortObjects, typeDocConfig, typeScriptLanguageOptions, unusedVarsIgnorePatterns, vitestConfig };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,8 @@ import { TSESTree } from "@typescript-eslint/utils";
2
2
  import z from "zod";
3
3
  import { Linter } from "eslint";
4
4
  import { Config } from "prettier";
5
+ import { TypeDocOptions } from "typedoc";
6
+ import { PluginOptions } from "typedoc-plugin-markdown";
5
7
  import * as vite0 from "vite";
6
8
  import { VitestEnvironment } from "vitest/node";
7
9
  import { RuleContext, RuleFix, RuleFixer } from "@typescript-eslint/utils/ts-eslint";
@@ -53,6 +55,9 @@ declare const prettierRules: Config;
53
55
  //#region src/configs/helpers/reactLanguageOptions.d.ts
54
56
  declare const reactLanguageOptions: Linter.LanguageOptions;
55
57
  //#endregion
58
+ //#region src/configs/helpers/typeDocConfig.d.ts
59
+ declare const typeDocConfig: TypeDocOptions & PluginOptions;
60
+ //#endregion
56
61
  //#region src/configs/helpers/typeScriptLanguageOptions.d.ts
57
62
  declare const typeScriptLanguageOptions: Linter.LanguageOptions;
58
63
  //#endregion
@@ -66,6 +71,22 @@ declare const unusedVarsIgnorePatterns: {
66
71
  //#region src/configs/helpers/vitestConfig.d.ts
67
72
  declare function vitestConfig(environment?: VitestEnvironment): vite0.UserConfig;
68
73
  //#endregion
74
+ //#region src/configs/helpers/sorting/sortClasses.d.ts
75
+ declare const sortClasses: {
76
+ customGroups: never[];
77
+ fallbackSort: {
78
+ type: string;
79
+ };
80
+ groups: (string | string[])[];
81
+ ignoreCase: boolean;
82
+ newlinesBetween: number;
83
+ order: string;
84
+ partitionByComment: boolean;
85
+ partitionByNewLine: boolean;
86
+ specialCharacters: string;
87
+ type: string;
88
+ };
89
+ //#endregion
69
90
  //#region src/configs/helpers/sorting/sortExports.d.ts
70
91
  declare const sortExports: {
71
92
  customGroups: never[];
@@ -326,4 +347,4 @@ declare function flattenConfigs<ConfigObject extends { [K in keyof ConfigObject]
326
347
  */
327
348
  declare function getImportSpecifiersAfterRemoving<RuleOptions>(context: Readonly<RuleContext<"message", [RuleOptions]>>, specifiers: TSESTree.ImportClause[], importToRemove: string): string;
328
349
  //#endregion
329
- export { AlexConfigGroupName, AlexFlattenedConfigName, type AlexPlugin, AlexPluginConfigFlattened, AlexPluginConfigObject, CombinedConfig, type GetFlattenedConfigNames as ConfigKey, type ConsistentTestFunctionOptions, GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, type NoRestrictedImportsOptions, PersonalConfig, PluginConfig, type RestrictedPathImport, type RestrictedPatternImport, type RuleFixerFunction, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, checkCallExpression, combineRestrictedImports, createRuleSchemaFromZodSchema, alexPlugin as default, fixOnCondition, flattenConfigs, getImportSpecifiersAfterRemoving, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules, reactLanguageOptions, sortExports, sortImports, sortObjects, typeScriptLanguageOptions, unusedVarsIgnorePatterns, vitestConfig };
350
+ export { AlexConfigGroupName, AlexFlattenedConfigName, type AlexPlugin, AlexPluginConfigFlattened, AlexPluginConfigObject, CombinedConfig, type GetFlattenedConfigNames as ConfigKey, type ConsistentTestFunctionOptions, GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, type NoRestrictedImportsOptions, PersonalConfig, PluginConfig, type RestrictedPathImport, type RestrictedPatternImport, type RuleFixerFunction, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, checkCallExpression, combineRestrictedImports, createRuleSchemaFromZodSchema, alexPlugin as default, fixOnCondition, flattenConfigs, getImportSpecifiersAfterRemoving, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules, reactLanguageOptions, sortClasses, sortExports, sortImports, sortObjects, typeDocConfig, typeScriptLanguageOptions, unusedVarsIgnorePatterns, vitestConfig };
package/dist/index.js CHANGED
@@ -3719,6 +3719,29 @@ const reactLanguageOptions = {
3719
3719
  };
3720
3720
  var reactLanguageOptions_default = reactLanguageOptions;
3721
3721
 
3722
+ //#endregion
3723
+ //#region src/configs/helpers/typeDocConfig.ts
3724
+ const typeDocConfig = {
3725
+ entryPoints: ["./src/index.ts"],
3726
+ excludeNotDocumented: true,
3727
+ includeVersion: true,
3728
+ outputs: [{
3729
+ name: "html",
3730
+ options: { navigation: {
3731
+ excludeReferences: false,
3732
+ includeCategories: true,
3733
+ includeFolders: true,
3734
+ includeGroups: true
3735
+ } },
3736
+ path: "docs/features/html"
3737
+ }, {
3738
+ name: "markdown",
3739
+ path: "docs/features/markdown"
3740
+ }],
3741
+ plugin: ["typedoc-plugin-markdown", "typedoc-rhineai-theme"]
3742
+ };
3743
+ var typeDocConfig_default = typeDocConfig;
3744
+
3722
3745
  //#endregion
3723
3746
  //#region src/configs/helpers/typeScriptLanguageOptions.ts
3724
3747
  const typeScriptLanguageOptions = {
@@ -3746,6 +3769,34 @@ function vitestConfig(environment = "jsdom") {
3746
3769
  }
3747
3770
  var vitestConfig_default = vitestConfig;
3748
3771
 
3772
+ //#endregion
3773
+ //#region src/configs/helpers/sorting/sortClasses.ts
3774
+ const sortClasses = {
3775
+ customGroups: [],
3776
+ fallbackSort: { type: "unsorted" },
3777
+ groups: [
3778
+ "index-signature",
3779
+ ["private-static-property", "private-property"],
3780
+ ["static-property", "property"],
3781
+ "constructor",
3782
+ "get-method",
3783
+ "set-method",
3784
+ ["private-static-method", "private-static-function-property"],
3785
+ ["static-method", "static-function-property"],
3786
+ ["private-method", "private-function-property"],
3787
+ ["method", "function-property"],
3788
+ "unknown"
3789
+ ],
3790
+ ignoreCase: true,
3791
+ newlinesBetween: 1,
3792
+ order: "asc",
3793
+ partitionByComment: false,
3794
+ partitionByNewLine: false,
3795
+ specialCharacters: "keep",
3796
+ type: "alphabetical"
3797
+ };
3798
+ var sortClasses_default = sortClasses;
3799
+
3749
3800
  //#endregion
3750
3801
  //#region src/configs/helpers/sorting/sortExports.ts
3751
3802
  const sortExports = {
@@ -3854,6 +3905,7 @@ function personalJavaScript(plugin) {
3854
3905
  "no-else-return": "error",
3855
3906
  "no-implicit-coercion": ["error", { allow: ["!!"] }],
3856
3907
  "operator-assignment": ["error", "always"],
3908
+ "perfectionist/sort-classes": ["error", sortClasses_default],
3857
3909
  "perfectionist/sort-exports": ["error", sortExports_default],
3858
3910
  "perfectionist/sort-imports": ["error", sortImports_default],
3859
3911
  "prefer-arrow-callback": ["error", { allowNamedFunctions: false }],
@@ -4040,9 +4092,16 @@ var requireJsdocOptions_default = requireJsdocOptions;
4040
4092
  //#endregion
4041
4093
  //#region src/configs/personal/typeScriptPackage.ts
4042
4094
  const personalTypeScriptPackage = [jsdoc.configs["flat/recommended-typescript-error"], { rules: {
4043
- "jsdoc/check-tag-names": ["error", { definedTags: ["note"] }],
4095
+ "jsdoc/check-tag-names": ["error", { definedTags: ["category", "note"] }],
4044
4096
  "jsdoc/require-jsdoc": ["warn", requireJsdocOptions_default],
4097
+ "jsdoc/require-tags": ["error", { tags: ["ExportNamedDeclaration", "ExportDefaultDeclaration"].map((context) => {
4098
+ return {
4099
+ context,
4100
+ tag: "category"
4101
+ };
4102
+ }) }],
4045
4103
  "jsdoc/sort-tags": ["error", { tagSequence: [
4104
+ { tags: ["category"] },
4046
4105
  { tags: ["deprecated"] },
4047
4106
  { tags: ["template"] },
4048
4107
  { tags: ["param"] },
@@ -4725,7 +4784,7 @@ var rules_default = {
4725
4784
  //#endregion
4726
4785
  //#region package.json
4727
4786
  var name = "@alextheman/eslint-plugin";
4728
- var version = "5.1.0";
4787
+ var version = "5.2.0";
4729
4788
 
4730
4789
  //#endregion
4731
4790
  //#region src/alexPlugin.ts
@@ -4746,4 +4805,4 @@ var alexPlugin_default = alexPlugin;
4746
4805
  var src_default = alexPlugin_default;
4747
4806
 
4748
4807
  //#endregion
4749
- export { checkCallExpression_default as checkCallExpression, combineRestrictedImports_default as combineRestrictedImports, createRuleSchemaFromZodSchema_default as createRuleSchemaFromZodSchema, src_default as default, fixOnCondition_default as fixOnCondition, flattenConfigs_default as flattenConfigs, getImportSpecifiersAfterRemoving_default as getImportSpecifiersAfterRemoving, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules_default as prettierRules, reactLanguageOptions_default as reactLanguageOptions, sortExports_default as sortExports, sortImports_default as sortImports, sortObjects_default as sortObjects, typeScriptLanguageOptions_default as typeScriptLanguageOptions, unusedVarsIgnorePatterns_default as unusedVarsIgnorePatterns, vitestConfig_default as vitestConfig };
4808
+ export { checkCallExpression_default as checkCallExpression, combineRestrictedImports_default as combineRestrictedImports, createRuleSchemaFromZodSchema_default as createRuleSchemaFromZodSchema, src_default as default, fixOnCondition_default as fixOnCondition, flattenConfigs_default as flattenConfigs, getImportSpecifiersAfterRemoving_default as getImportSpecifiersAfterRemoving, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules_default as prettierRules, reactLanguageOptions_default as reactLanguageOptions, sortClasses_default as sortClasses, sortExports_default as sortExports, sortImports_default as sortImports, sortObjects_default as sortObjects, typeDocConfig_default as typeDocConfig, typeScriptLanguageOptions_default as typeScriptLanguageOptions, unusedVarsIgnorePatterns_default as unusedVarsIgnorePatterns, vitestConfig_default as vitestConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "A package to provide custom ESLint rules and configs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -50,6 +50,9 @@
50
50
  "prettier": "^3.7.4",
51
51
  "tsdown": "^0.18.1",
52
52
  "tsx": "^4.21.0",
53
+ "typedoc": "^0.28.15",
54
+ "typedoc-plugin-markdown": "^4.9.0",
55
+ "typedoc-rhineai-theme": "^1.2.0",
53
56
  "typescript": "^5.9.3",
54
57
  "typescript-eslint": "^8.50.0",
55
58
  "vite-tsconfig-paths": "^6.0.3",
@@ -70,6 +73,9 @@
70
73
  "eslint-plugin-react": ">=7.0.0",
71
74
  "eslint-plugin-react-hooks": ">=7.0.0",
72
75
  "eslint-plugin-react-refresh": ">=0.4.0",
76
+ "typedoc": ">=0.28.15",
77
+ "typedoc-plugin-markdown": ">=4.9.0",
78
+ "typedoc-rhineai-theme": "^1.2.0",
73
79
  "typescript-eslint": ">=8.0.0",
74
80
  "vite-tsconfig-paths": ">=5.1.4",
75
81
  "vitest": ">=4.0.13"