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