@alextheman/eslint-plugin 4.1.0 → 4.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.d.cts CHANGED
@@ -1,133 +1,149 @@
1
- import { Linter } from 'eslint';
2
- import { IgnoreCase } from '@alextheman/utility';
3
- import { Config } from 'prettier';
4
- import * as vite from 'vite';
5
- import { VitestEnvironment } from 'vitest/node';
6
- import z from 'zod';
7
- import { RuleFixer, RuleFix, RuleContext } from '@typescript-eslint/utils/ts-eslint';
8
- import { TSESTree } from '@typescript-eslint/utils';
9
- import { JSONSchema4 } from '@typescript-eslint/utils/json-schema';
10
-
11
- var name = "@alextheman/eslint-plugin";
12
- var version = "4.1.0";
13
-
1
+ import { Linter } from "eslint";
2
+ import { IgnoreCase } from "@alextheman/utility";
3
+ import { Config } from "prettier";
4
+ import * as vite0 from "vite";
5
+ import { VitestEnvironment } from "vitest/node";
6
+ import { RuleContext, RuleFix, RuleFixer } from "@typescript-eslint/utils/ts-eslint";
7
+ import z from "zod";
8
+ import { TSESTree } from "@typescript-eslint/utils";
9
+ import { JSONSchema4 } from "@typescript-eslint/utils/json-schema";
10
+
11
+ //#region package.d.ts
12
+ declare let name: string;
13
+ declare let version: string;
14
+ //#endregion
15
+ //#region src/utility/camelToKebab.d.ts
14
16
  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;
15
-
17
+ //#endregion
18
+ //#region src/configs/AlexPluginConfigGroup.d.ts
16
19
  type GeneralConfig = "javaScript" | "typeScript" | "react" | "packageJson";
17
20
  type PluginConfig = "base" | "tests";
18
21
  type PersonalConfig = "javaScript" | "typeScript" | "react" | "tests" | "eslintPlugin" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utility" | "alexCLine";
19
22
  type CombinedConfig = "javaScript" | "typeScript" | "react" | "tests" | "typeScriptReact" | "javaScriptReact";
20
23
  interface AlexPluginConfigGroup {
21
- general: Record<GeneralConfig, Linter.Config[]>;
22
- plugin: Record<PluginConfig, Linter.Config[]>;
23
- personal: Record<PersonalConfig, Linter.Config[]>;
24
- combined: Record<CombinedConfig, Linter.Config[]>;
24
+ general: Record<GeneralConfig, Linter.Config[]>;
25
+ plugin: Record<PluginConfig, Linter.Config[]>;
26
+ personal: Record<PersonalConfig, Linter.Config[]>;
27
+ combined: Record<CombinedConfig, Linter.Config[]>;
25
28
  }
26
29
  type ConfigGroupName = keyof AlexPluginConfigGroup;
27
- type ConfigKey = {
28
- [Group in ConfigGroupName & string]: `${CamelToKebab<Group>}/${CamelToKebab<keyof AlexPluginConfigGroup[Group] & string>}`;
29
- }[ConfigGroupName & string];
30
-
30
+ type ConfigKey = { [Group in ConfigGroupName & string]: `${CamelToKebab<Group>}/${CamelToKebab<keyof AlexPluginConfigGroup[Group] & string>}` }[ConfigGroupName & string];
31
+ //#endregion
32
+ //#region src/configs/index.d.ts
31
33
  declare function createAlexPluginConfigs(plugin: AlexPlugin): Record<ConfigKey, Linter.Config[]>;
32
-
34
+ //#endregion
35
+ //#region src/alexPlugin.d.ts
33
36
  interface AlexPlugin {
34
- meta: {
35
- name: typeof name;
36
- version: typeof version;
37
- namespace: "alextheman";
38
- };
39
- configs: ReturnType<typeof createAlexPluginConfigs>;
40
- rules: Record<string, any>;
37
+ meta: {
38
+ name: typeof name;
39
+ version: typeof version;
40
+ namespace: "alextheman";
41
+ };
42
+ configs: ReturnType<typeof createAlexPluginConfigs>;
43
+ rules: Record<string, any>;
41
44
  }
42
45
  declare const alexPlugin: AlexPlugin;
43
-
46
+ //#endregion
47
+ //#region src/configs/helpers/prettierRules.d.ts
44
48
  declare const prettierRules: Config;
45
-
49
+ //#endregion
50
+ //#region src/configs/helpers/reactLanguageOptions.d.ts
46
51
  declare const reactLanguageOptions: Linter.LanguageOptions;
47
-
52
+ //#endregion
53
+ //#region src/configs/helpers/sortObjects.d.ts
48
54
  declare const sortObjects: {
49
- customGroups: never[];
50
- destructuredObjects: boolean;
51
- fallbackSort: {
52
- type: string;
53
- };
54
- groups: never[];
55
- ignoreCase: boolean;
56
- ignorePattern: never[];
57
- newlinesBetween: string;
58
- objectDeclarations: boolean;
59
- order: string;
60
- partitionByComment: boolean;
61
- partitionByNewLine: boolean;
62
- specialCharacters: string;
63
- styledComponents: boolean;
55
+ customGroups: never[];
56
+ destructuredObjects: boolean;
57
+ fallbackSort: {
64
58
  type: string;
65
- useConfigurationIf: {};
59
+ };
60
+ groups: never[];
61
+ ignoreCase: boolean;
62
+ ignorePattern: never[];
63
+ newlinesBetween: string;
64
+ objectDeclarations: boolean;
65
+ order: string;
66
+ partitionByComment: boolean;
67
+ partitionByNewLine: boolean;
68
+ specialCharacters: string;
69
+ styledComponents: boolean;
70
+ type: string;
71
+ useConfigurationIf: {};
66
72
  };
67
-
73
+ //#endregion
74
+ //#region src/configs/helpers/typeScriptLanguageOptions.d.ts
68
75
  declare const typeScriptLanguageOptions: Linter.LanguageOptions;
69
-
76
+ //#endregion
77
+ //#region src/configs/helpers/unusedVarsIgnorePatterns.d.ts
70
78
  declare const unusedVarsIgnorePatterns: {
71
- argsIgnorePattern: string;
72
- caughtErrorsIgnorePattern: string;
73
- varsIgnorePattern: string;
79
+ argsIgnorePattern: string;
80
+ caughtErrorsIgnorePattern: string;
81
+ varsIgnorePattern: string;
74
82
  };
75
-
76
- declare function vitestConfig(environment?: VitestEnvironment): vite.UserConfig;
77
-
83
+ //#endregion
84
+ //#region src/configs/helpers/vitestConfig.d.ts
85
+ declare function vitestConfig(environment?: VitestEnvironment): vite0.UserConfig;
86
+ //#endregion
87
+ //#region src/rules/consistent-test-function.d.ts
78
88
  declare const validTestFunctionsSchema: z.ZodEnum<{
79
- test: "test";
80
- it: "it";
89
+ test: "test";
90
+ it: "it";
81
91
  }>;
82
92
  type TestFunction = z.infer<typeof validTestFunctionsSchema>;
83
93
  declare function parseTestFunction(data: unknown): TestFunction;
84
94
  declare const consistentTestFunctionOptionsSchema: z.ZodObject<{
85
- preference: z.ZodOptional<z.ZodEnum<{
86
- test: "test";
87
- it: "it";
88
- }>>;
89
- fixable: z.ZodOptional<z.ZodBoolean>;
95
+ preference: z.ZodOptional<z.ZodEnum<{
96
+ test: "test";
97
+ it: "it";
98
+ }>>;
99
+ fixable: z.ZodOptional<z.ZodBoolean>;
90
100
  }, z.core.$strip>;
91
101
  type ConsistentTestFunctionOptions = z.infer<typeof consistentTestFunctionOptionsSchema>;
92
102
  declare function parseConsistentTestFunctionOptions(data: unknown): ConsistentTestFunctionOptions;
93
-
103
+ //#endregion
104
+ //#region src/rules/helpers/fixOnCondition.d.ts
94
105
  type RuleFixerFunction = (fixer: RuleFixer) => RuleFix | null;
95
106
  declare function fixOnCondition(fixable: boolean, fix: RuleFixerFunction): RuleFixerFunction;
96
-
107
+ //#endregion
108
+ //#region src/rules/no-namespace-imports.d.ts
97
109
  declare const noNamespaceImportsOptionsSchema: z.ZodObject<{
98
- allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
111
  }, z.core.$strip>;
100
112
  type NoNamespaceImportsOptions = z.infer<typeof noNamespaceImportsOptionsSchema>;
101
113
  declare function parseNoNamespaceImportsOptions(data: unknown): NoNamespaceImportsOptions;
102
-
114
+ //#endregion
115
+ //#region src/rules/no-relative-imports.d.ts
103
116
  declare const noRelativeImportsOptionsSchema: z.ZodObject<{
104
- depth: z.ZodOptional<z.ZodInt>;
117
+ depth: z.ZodOptional<z.ZodInt>;
105
118
  }, z.core.$strip>;
106
119
  type NoRelativeImportsOptions = z.infer<typeof noRelativeImportsOptionsSchema>;
107
120
  declare function parseNoRelativeImportsOptions(data: unknown): NoRelativeImportsOptions;
108
-
121
+ //#endregion
122
+ //#region src/rules/standardise-error-messages.d.ts
109
123
  declare const standardiseErrorMessagesOptionsSchema: z.ZodObject<{
110
- regex: z.ZodOptional<z.ZodString>;
124
+ regex: z.ZodOptional<z.ZodString>;
111
125
  }, z.core.$strip>;
112
126
  type StandardiseErrorMessagesOptions = z.infer<typeof standardiseErrorMessagesOptionsSchema>;
113
127
  declare function parseStandardiseErrorMessagesOptions(data: unknown): StandardiseErrorMessagesOptions;
114
-
128
+ //#endregion
129
+ //#region src/rules/use-normalized-imports.d.ts
115
130
  declare const useNormalizedImportsOptionsSchema: z.ZodObject<{
116
- fixable: z.ZodOptional<z.ZodBoolean>;
131
+ fixable: z.ZodOptional<z.ZodBoolean>;
117
132
  }, z.core.$strip>;
118
133
  type UseNormalizedImportsOptions = z.infer<typeof useNormalizedImportsOptionsSchema>;
119
134
  declare function parseUseNormalizedImportsOptions(data: unknown): {
120
- fixable?: boolean | undefined;
135
+ fixable?: boolean | undefined;
121
136
  };
122
-
137
+ //#endregion
138
+ //#region src/utility/checkCallExpression.d.ts
123
139
  declare function checkCallExpression(node: TSESTree.CallExpression, objectName: string, propertyName: string): boolean;
124
-
140
+ //#endregion
141
+ //#region src/utility/createRuleSchemaFromZodSchema.d.ts
125
142
  declare function createRuleSchemaFromZodSchema(schema: z.ZodType): JSONSchema4[];
126
-
127
- declare function getImportSpecifiersAfterRemoving(context: Readonly<RuleContext<"message", [
128
- {
129
- preference: string;
130
- }
131
- ]>>, specifiers: TSESTree.ImportClause[], importToRemove: string): string;
132
-
133
- export { type AlexPlugin, type AlexPluginConfigGroup, type CombinedConfig, type ConfigGroupName, type ConfigKey, type ConsistentTestFunctionOptions, type GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, type PersonalConfig, type PluginConfig, type RuleFixerFunction, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, checkCallExpression, createRuleSchemaFromZodSchema, alexPlugin as default, fixOnCondition, getImportSpecifiersAfterRemoving, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules, reactLanguageOptions, sortObjects, typeScriptLanguageOptions, unusedVarsIgnorePatterns, vitestConfig };
143
+ //#endregion
144
+ //#region src/utility/getImportSpecifiersAfterRemoving.d.ts
145
+ declare function getImportSpecifiersAfterRemoving(context: Readonly<RuleContext<"message", [{
146
+ preference: string;
147
+ }]>>, specifiers: TSESTree.ImportClause[], importToRemove: string): string;
148
+ //#endregion
149
+ export { type AlexPlugin, AlexPluginConfigGroup, CombinedConfig, ConfigGroupName, ConfigKey, ConsistentTestFunctionOptions, GeneralConfig, NoNamespaceImportsOptions, NoRelativeImportsOptions, PersonalConfig, PluginConfig, RuleFixerFunction, StandardiseErrorMessagesOptions, TestFunction, UseNormalizedImportsOptions, checkCallExpression, createRuleSchemaFromZodSchema, alexPlugin as default, fixOnCondition, getImportSpecifiersAfterRemoving, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules, reactLanguageOptions, sortObjects, typeScriptLanguageOptions, unusedVarsIgnorePatterns, vitestConfig };
package/dist/index.d.ts CHANGED
@@ -1,133 +1,149 @@
1
- import { Linter } from 'eslint';
2
- import { IgnoreCase } from '@alextheman/utility';
3
- import { Config } from 'prettier';
4
- import * as vite from 'vite';
5
- import { VitestEnvironment } from 'vitest/node';
6
- import z from 'zod';
7
- import { RuleFixer, RuleFix, RuleContext } from '@typescript-eslint/utils/ts-eslint';
8
- import { TSESTree } from '@typescript-eslint/utils';
9
- import { JSONSchema4 } from '@typescript-eslint/utils/json-schema';
10
-
11
- var name = "@alextheman/eslint-plugin";
12
- var version = "4.1.0";
13
-
1
+ import { IgnoreCase } from "@alextheman/utility";
2
+ import { TSESTree } from "@typescript-eslint/utils";
3
+ import z from "zod";
4
+ import { Linter } from "eslint";
5
+ import { Config } from "prettier";
6
+ import * as vite0 from "vite";
7
+ import { VitestEnvironment } from "vitest/node";
8
+ import { RuleContext, RuleFix, RuleFixer } from "@typescript-eslint/utils/ts-eslint";
9
+ import { JSONSchema4 } from "@typescript-eslint/utils/json-schema";
10
+
11
+ //#region package.d.ts
12
+ declare let name: string;
13
+ declare let version: string;
14
+ //#endregion
15
+ //#region src/utility/camelToKebab.d.ts
14
16
  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;
15
-
17
+ //#endregion
18
+ //#region src/configs/AlexPluginConfigGroup.d.ts
16
19
  type GeneralConfig = "javaScript" | "typeScript" | "react" | "packageJson";
17
20
  type PluginConfig = "base" | "tests";
18
21
  type PersonalConfig = "javaScript" | "typeScript" | "react" | "tests" | "eslintPlugin" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utility" | "alexCLine";
19
22
  type CombinedConfig = "javaScript" | "typeScript" | "react" | "tests" | "typeScriptReact" | "javaScriptReact";
20
23
  interface AlexPluginConfigGroup {
21
- general: Record<GeneralConfig, Linter.Config[]>;
22
- plugin: Record<PluginConfig, Linter.Config[]>;
23
- personal: Record<PersonalConfig, Linter.Config[]>;
24
- combined: Record<CombinedConfig, Linter.Config[]>;
24
+ general: Record<GeneralConfig, Linter.Config[]>;
25
+ plugin: Record<PluginConfig, Linter.Config[]>;
26
+ personal: Record<PersonalConfig, Linter.Config[]>;
27
+ combined: Record<CombinedConfig, Linter.Config[]>;
25
28
  }
26
29
  type ConfigGroupName = keyof AlexPluginConfigGroup;
27
- type ConfigKey = {
28
- [Group in ConfigGroupName & string]: `${CamelToKebab<Group>}/${CamelToKebab<keyof AlexPluginConfigGroup[Group] & string>}`;
29
- }[ConfigGroupName & string];
30
-
30
+ type ConfigKey = { [Group in ConfigGroupName & string]: `${CamelToKebab<Group>}/${CamelToKebab<keyof AlexPluginConfigGroup[Group] & string>}` }[ConfigGroupName & string];
31
+ //#endregion
32
+ //#region src/configs/index.d.ts
31
33
  declare function createAlexPluginConfigs(plugin: AlexPlugin): Record<ConfigKey, Linter.Config[]>;
32
-
34
+ //#endregion
35
+ //#region src/alexPlugin.d.ts
33
36
  interface AlexPlugin {
34
- meta: {
35
- name: typeof name;
36
- version: typeof version;
37
- namespace: "alextheman";
38
- };
39
- configs: ReturnType<typeof createAlexPluginConfigs>;
40
- rules: Record<string, any>;
37
+ meta: {
38
+ name: typeof name;
39
+ version: typeof version;
40
+ namespace: "alextheman";
41
+ };
42
+ configs: ReturnType<typeof createAlexPluginConfigs>;
43
+ rules: Record<string, any>;
41
44
  }
42
45
  declare const alexPlugin: AlexPlugin;
43
-
46
+ //#endregion
47
+ //#region src/configs/helpers/prettierRules.d.ts
44
48
  declare const prettierRules: Config;
45
-
49
+ //#endregion
50
+ //#region src/configs/helpers/reactLanguageOptions.d.ts
46
51
  declare const reactLanguageOptions: Linter.LanguageOptions;
47
-
52
+ //#endregion
53
+ //#region src/configs/helpers/sortObjects.d.ts
48
54
  declare const sortObjects: {
49
- customGroups: never[];
50
- destructuredObjects: boolean;
51
- fallbackSort: {
52
- type: string;
53
- };
54
- groups: never[];
55
- ignoreCase: boolean;
56
- ignorePattern: never[];
57
- newlinesBetween: string;
58
- objectDeclarations: boolean;
59
- order: string;
60
- partitionByComment: boolean;
61
- partitionByNewLine: boolean;
62
- specialCharacters: string;
63
- styledComponents: boolean;
55
+ customGroups: never[];
56
+ destructuredObjects: boolean;
57
+ fallbackSort: {
64
58
  type: string;
65
- useConfigurationIf: {};
59
+ };
60
+ groups: never[];
61
+ ignoreCase: boolean;
62
+ ignorePattern: never[];
63
+ newlinesBetween: string;
64
+ objectDeclarations: boolean;
65
+ order: string;
66
+ partitionByComment: boolean;
67
+ partitionByNewLine: boolean;
68
+ specialCharacters: string;
69
+ styledComponents: boolean;
70
+ type: string;
71
+ useConfigurationIf: {};
66
72
  };
67
-
73
+ //#endregion
74
+ //#region src/configs/helpers/typeScriptLanguageOptions.d.ts
68
75
  declare const typeScriptLanguageOptions: Linter.LanguageOptions;
69
-
76
+ //#endregion
77
+ //#region src/configs/helpers/unusedVarsIgnorePatterns.d.ts
70
78
  declare const unusedVarsIgnorePatterns: {
71
- argsIgnorePattern: string;
72
- caughtErrorsIgnorePattern: string;
73
- varsIgnorePattern: string;
79
+ argsIgnorePattern: string;
80
+ caughtErrorsIgnorePattern: string;
81
+ varsIgnorePattern: string;
74
82
  };
75
-
76
- declare function vitestConfig(environment?: VitestEnvironment): vite.UserConfig;
77
-
83
+ //#endregion
84
+ //#region src/configs/helpers/vitestConfig.d.ts
85
+ declare function vitestConfig(environment?: VitestEnvironment): vite0.UserConfig;
86
+ //#endregion
87
+ //#region src/rules/consistent-test-function.d.ts
78
88
  declare const validTestFunctionsSchema: z.ZodEnum<{
79
- test: "test";
80
- it: "it";
89
+ test: "test";
90
+ it: "it";
81
91
  }>;
82
92
  type TestFunction = z.infer<typeof validTestFunctionsSchema>;
83
93
  declare function parseTestFunction(data: unknown): TestFunction;
84
94
  declare const consistentTestFunctionOptionsSchema: z.ZodObject<{
85
- preference: z.ZodOptional<z.ZodEnum<{
86
- test: "test";
87
- it: "it";
88
- }>>;
89
- fixable: z.ZodOptional<z.ZodBoolean>;
95
+ preference: z.ZodOptional<z.ZodEnum<{
96
+ test: "test";
97
+ it: "it";
98
+ }>>;
99
+ fixable: z.ZodOptional<z.ZodBoolean>;
90
100
  }, z.core.$strip>;
91
101
  type ConsistentTestFunctionOptions = z.infer<typeof consistentTestFunctionOptionsSchema>;
92
102
  declare function parseConsistentTestFunctionOptions(data: unknown): ConsistentTestFunctionOptions;
93
-
103
+ //#endregion
104
+ //#region src/rules/helpers/fixOnCondition.d.ts
94
105
  type RuleFixerFunction = (fixer: RuleFixer) => RuleFix | null;
95
106
  declare function fixOnCondition(fixable: boolean, fix: RuleFixerFunction): RuleFixerFunction;
96
-
107
+ //#endregion
108
+ //#region src/rules/no-namespace-imports.d.ts
97
109
  declare const noNamespaceImportsOptionsSchema: z.ZodObject<{
98
- allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
111
  }, z.core.$strip>;
100
112
  type NoNamespaceImportsOptions = z.infer<typeof noNamespaceImportsOptionsSchema>;
101
113
  declare function parseNoNamespaceImportsOptions(data: unknown): NoNamespaceImportsOptions;
102
-
114
+ //#endregion
115
+ //#region src/rules/no-relative-imports.d.ts
103
116
  declare const noRelativeImportsOptionsSchema: z.ZodObject<{
104
- depth: z.ZodOptional<z.ZodInt>;
117
+ depth: z.ZodOptional<z.ZodInt>;
105
118
  }, z.core.$strip>;
106
119
  type NoRelativeImportsOptions = z.infer<typeof noRelativeImportsOptionsSchema>;
107
120
  declare function parseNoRelativeImportsOptions(data: unknown): NoRelativeImportsOptions;
108
-
121
+ //#endregion
122
+ //#region src/rules/standardise-error-messages.d.ts
109
123
  declare const standardiseErrorMessagesOptionsSchema: z.ZodObject<{
110
- regex: z.ZodOptional<z.ZodString>;
124
+ regex: z.ZodOptional<z.ZodString>;
111
125
  }, z.core.$strip>;
112
126
  type StandardiseErrorMessagesOptions = z.infer<typeof standardiseErrorMessagesOptionsSchema>;
113
127
  declare function parseStandardiseErrorMessagesOptions(data: unknown): StandardiseErrorMessagesOptions;
114
-
128
+ //#endregion
129
+ //#region src/rules/use-normalized-imports.d.ts
115
130
  declare const useNormalizedImportsOptionsSchema: z.ZodObject<{
116
- fixable: z.ZodOptional<z.ZodBoolean>;
131
+ fixable: z.ZodOptional<z.ZodBoolean>;
117
132
  }, z.core.$strip>;
118
133
  type UseNormalizedImportsOptions = z.infer<typeof useNormalizedImportsOptionsSchema>;
119
134
  declare function parseUseNormalizedImportsOptions(data: unknown): {
120
- fixable?: boolean | undefined;
135
+ fixable?: boolean | undefined;
121
136
  };
122
-
137
+ //#endregion
138
+ //#region src/utility/checkCallExpression.d.ts
123
139
  declare function checkCallExpression(node: TSESTree.CallExpression, objectName: string, propertyName: string): boolean;
124
-
140
+ //#endregion
141
+ //#region src/utility/createRuleSchemaFromZodSchema.d.ts
125
142
  declare function createRuleSchemaFromZodSchema(schema: z.ZodType): JSONSchema4[];
126
-
127
- declare function getImportSpecifiersAfterRemoving(context: Readonly<RuleContext<"message", [
128
- {
129
- preference: string;
130
- }
131
- ]>>, specifiers: TSESTree.ImportClause[], importToRemove: string): string;
132
-
133
- export { type AlexPlugin, type AlexPluginConfigGroup, type CombinedConfig, type ConfigGroupName, type ConfigKey, type ConsistentTestFunctionOptions, type GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, type PersonalConfig, type PluginConfig, type RuleFixerFunction, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, checkCallExpression, createRuleSchemaFromZodSchema, alexPlugin as default, fixOnCondition, getImportSpecifiersAfterRemoving, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules, reactLanguageOptions, sortObjects, typeScriptLanguageOptions, unusedVarsIgnorePatterns, vitestConfig };
143
+ //#endregion
144
+ //#region src/utility/getImportSpecifiersAfterRemoving.d.ts
145
+ declare function getImportSpecifiersAfterRemoving(context: Readonly<RuleContext<"message", [{
146
+ preference: string;
147
+ }]>>, specifiers: TSESTree.ImportClause[], importToRemove: string): string;
148
+ //#endregion
149
+ export { type AlexPlugin, AlexPluginConfigGroup, CombinedConfig, ConfigGroupName, ConfigKey, type ConsistentTestFunctionOptions, GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, PersonalConfig, PluginConfig, type RuleFixerFunction, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, checkCallExpression, createRuleSchemaFromZodSchema, alexPlugin as default, fixOnCondition, getImportSpecifiersAfterRemoving, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules, reactLanguageOptions, sortObjects, typeScriptLanguageOptions, unusedVarsIgnorePatterns, vitestConfig };