@alextheman/eslint-plugin 4.1.0 → 4.2.1

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,178 @@
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/sorting/sortExports.d.ts
54
+ declare const sortExports: {
55
+ customGroups: never[];
56
+ fallbackSort: {
57
+ type: string;
58
+ };
59
+ groups: string[];
60
+ ignoreCase: boolean;
61
+ newlinesBetween: number;
62
+ order: string;
63
+ partitionByComment: boolean;
64
+ partitionByNewLine: boolean;
65
+ specialCharacters: string;
66
+ type: string;
67
+ };
68
+ //#endregion
69
+ //#region src/configs/helpers/sorting/sortImports.d.ts
70
+ declare const sortImports: {
71
+ groups: string[];
72
+ ignoreCase: boolean;
73
+ internalPattern: string[];
74
+ newlinesBetween: number;
75
+ order: string;
76
+ partitionByComment: boolean;
77
+ partitionByNewLine: boolean;
78
+ specialCharacters: string;
79
+ type: string;
80
+ };
81
+ //#endregion
82
+ //#region src/configs/helpers/sorting/sortObjects.d.ts
48
83
  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;
84
+ customGroups: never[];
85
+ destructuredObjects: boolean;
86
+ fallbackSort: {
64
87
  type: string;
65
- useConfigurationIf: {};
88
+ };
89
+ groups: never[];
90
+ ignoreCase: boolean;
91
+ ignorePattern: never[];
92
+ newlinesBetween: string;
93
+ objectDeclarations: boolean;
94
+ order: string;
95
+ partitionByComment: boolean;
96
+ partitionByNewLine: boolean;
97
+ specialCharacters: string;
98
+ styledComponents: boolean;
99
+ type: string;
100
+ useConfigurationIf: {};
66
101
  };
67
-
102
+ //#endregion
103
+ //#region src/configs/helpers/typeScriptLanguageOptions.d.ts
68
104
  declare const typeScriptLanguageOptions: Linter.LanguageOptions;
69
-
105
+ //#endregion
106
+ //#region src/configs/helpers/unusedVarsIgnorePatterns.d.ts
70
107
  declare const unusedVarsIgnorePatterns: {
71
- argsIgnorePattern: string;
72
- caughtErrorsIgnorePattern: string;
73
- varsIgnorePattern: string;
108
+ argsIgnorePattern: string;
109
+ caughtErrorsIgnorePattern: string;
110
+ varsIgnorePattern: string;
74
111
  };
75
-
76
- declare function vitestConfig(environment?: VitestEnvironment): vite.UserConfig;
77
-
112
+ //#endregion
113
+ //#region src/configs/helpers/vitestConfig.d.ts
114
+ declare function vitestConfig(environment?: VitestEnvironment): vite0.UserConfig;
115
+ //#endregion
116
+ //#region src/rules/consistent-test-function.d.ts
78
117
  declare const validTestFunctionsSchema: z.ZodEnum<{
79
- test: "test";
80
- it: "it";
118
+ test: "test";
119
+ it: "it";
81
120
  }>;
82
121
  type TestFunction = z.infer<typeof validTestFunctionsSchema>;
83
122
  declare function parseTestFunction(data: unknown): TestFunction;
84
123
  declare const consistentTestFunctionOptionsSchema: z.ZodObject<{
85
- preference: z.ZodOptional<z.ZodEnum<{
86
- test: "test";
87
- it: "it";
88
- }>>;
89
- fixable: z.ZodOptional<z.ZodBoolean>;
124
+ preference: z.ZodOptional<z.ZodEnum<{
125
+ test: "test";
126
+ it: "it";
127
+ }>>;
128
+ fixable: z.ZodOptional<z.ZodBoolean>;
90
129
  }, z.core.$strip>;
91
130
  type ConsistentTestFunctionOptions = z.infer<typeof consistentTestFunctionOptionsSchema>;
92
131
  declare function parseConsistentTestFunctionOptions(data: unknown): ConsistentTestFunctionOptions;
93
-
132
+ //#endregion
133
+ //#region src/rules/helpers/fixOnCondition.d.ts
94
134
  type RuleFixerFunction = (fixer: RuleFixer) => RuleFix | null;
95
135
  declare function fixOnCondition(fixable: boolean, fix: RuleFixerFunction): RuleFixerFunction;
96
-
136
+ //#endregion
137
+ //#region src/rules/no-namespace-imports.d.ts
97
138
  declare const noNamespaceImportsOptionsSchema: z.ZodObject<{
98
- allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
140
  }, z.core.$strip>;
100
141
  type NoNamespaceImportsOptions = z.infer<typeof noNamespaceImportsOptionsSchema>;
101
142
  declare function parseNoNamespaceImportsOptions(data: unknown): NoNamespaceImportsOptions;
102
-
143
+ //#endregion
144
+ //#region src/rules/no-relative-imports.d.ts
103
145
  declare const noRelativeImportsOptionsSchema: z.ZodObject<{
104
- depth: z.ZodOptional<z.ZodInt>;
146
+ depth: z.ZodOptional<z.ZodInt>;
105
147
  }, z.core.$strip>;
106
148
  type NoRelativeImportsOptions = z.infer<typeof noRelativeImportsOptionsSchema>;
107
149
  declare function parseNoRelativeImportsOptions(data: unknown): NoRelativeImportsOptions;
108
-
150
+ //#endregion
151
+ //#region src/rules/standardise-error-messages.d.ts
109
152
  declare const standardiseErrorMessagesOptionsSchema: z.ZodObject<{
110
- regex: z.ZodOptional<z.ZodString>;
153
+ regex: z.ZodOptional<z.ZodString>;
111
154
  }, z.core.$strip>;
112
155
  type StandardiseErrorMessagesOptions = z.infer<typeof standardiseErrorMessagesOptionsSchema>;
113
156
  declare function parseStandardiseErrorMessagesOptions(data: unknown): StandardiseErrorMessagesOptions;
114
-
157
+ //#endregion
158
+ //#region src/rules/use-normalized-imports.d.ts
115
159
  declare const useNormalizedImportsOptionsSchema: z.ZodObject<{
116
- fixable: z.ZodOptional<z.ZodBoolean>;
160
+ fixable: z.ZodOptional<z.ZodBoolean>;
117
161
  }, z.core.$strip>;
118
162
  type UseNormalizedImportsOptions = z.infer<typeof useNormalizedImportsOptionsSchema>;
119
163
  declare function parseUseNormalizedImportsOptions(data: unknown): {
120
- fixable?: boolean | undefined;
164
+ fixable?: boolean | undefined;
121
165
  };
122
-
166
+ //#endregion
167
+ //#region src/utility/checkCallExpression.d.ts
123
168
  declare function checkCallExpression(node: TSESTree.CallExpression, objectName: string, propertyName: string): boolean;
124
-
169
+ //#endregion
170
+ //#region src/utility/createRuleSchemaFromZodSchema.d.ts
125
171
  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 };
172
+ //#endregion
173
+ //#region src/utility/getImportSpecifiersAfterRemoving.d.ts
174
+ declare function getImportSpecifiersAfterRemoving(context: Readonly<RuleContext<"message", [{
175
+ preference: string;
176
+ }]>>, specifiers: TSESTree.ImportClause[], importToRemove: string): string;
177
+ //#endregion
178
+ 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, sortExports, sortImports, sortObjects, typeScriptLanguageOptions, unusedVarsIgnorePatterns, vitestConfig };
package/dist/index.d.ts CHANGED
@@ -1,133 +1,178 @@
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/sorting/sortExports.d.ts
54
+ declare const sortExports: {
55
+ customGroups: never[];
56
+ fallbackSort: {
57
+ type: string;
58
+ };
59
+ groups: string[];
60
+ ignoreCase: boolean;
61
+ newlinesBetween: number;
62
+ order: string;
63
+ partitionByComment: boolean;
64
+ partitionByNewLine: boolean;
65
+ specialCharacters: string;
66
+ type: string;
67
+ };
68
+ //#endregion
69
+ //#region src/configs/helpers/sorting/sortImports.d.ts
70
+ declare const sortImports: {
71
+ groups: string[];
72
+ ignoreCase: boolean;
73
+ internalPattern: string[];
74
+ newlinesBetween: number;
75
+ order: string;
76
+ partitionByComment: boolean;
77
+ partitionByNewLine: boolean;
78
+ specialCharacters: string;
79
+ type: string;
80
+ };
81
+ //#endregion
82
+ //#region src/configs/helpers/sorting/sortObjects.d.ts
48
83
  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;
84
+ customGroups: never[];
85
+ destructuredObjects: boolean;
86
+ fallbackSort: {
64
87
  type: string;
65
- useConfigurationIf: {};
88
+ };
89
+ groups: never[];
90
+ ignoreCase: boolean;
91
+ ignorePattern: never[];
92
+ newlinesBetween: string;
93
+ objectDeclarations: boolean;
94
+ order: string;
95
+ partitionByComment: boolean;
96
+ partitionByNewLine: boolean;
97
+ specialCharacters: string;
98
+ styledComponents: boolean;
99
+ type: string;
100
+ useConfigurationIf: {};
66
101
  };
67
-
102
+ //#endregion
103
+ //#region src/configs/helpers/typeScriptLanguageOptions.d.ts
68
104
  declare const typeScriptLanguageOptions: Linter.LanguageOptions;
69
-
105
+ //#endregion
106
+ //#region src/configs/helpers/unusedVarsIgnorePatterns.d.ts
70
107
  declare const unusedVarsIgnorePatterns: {
71
- argsIgnorePattern: string;
72
- caughtErrorsIgnorePattern: string;
73
- varsIgnorePattern: string;
108
+ argsIgnorePattern: string;
109
+ caughtErrorsIgnorePattern: string;
110
+ varsIgnorePattern: string;
74
111
  };
75
-
76
- declare function vitestConfig(environment?: VitestEnvironment): vite.UserConfig;
77
-
112
+ //#endregion
113
+ //#region src/configs/helpers/vitestConfig.d.ts
114
+ declare function vitestConfig(environment?: VitestEnvironment): vite0.UserConfig;
115
+ //#endregion
116
+ //#region src/rules/consistent-test-function.d.ts
78
117
  declare const validTestFunctionsSchema: z.ZodEnum<{
79
- test: "test";
80
- it: "it";
118
+ test: "test";
119
+ it: "it";
81
120
  }>;
82
121
  type TestFunction = z.infer<typeof validTestFunctionsSchema>;
83
122
  declare function parseTestFunction(data: unknown): TestFunction;
84
123
  declare const consistentTestFunctionOptionsSchema: z.ZodObject<{
85
- preference: z.ZodOptional<z.ZodEnum<{
86
- test: "test";
87
- it: "it";
88
- }>>;
89
- fixable: z.ZodOptional<z.ZodBoolean>;
124
+ preference: z.ZodOptional<z.ZodEnum<{
125
+ test: "test";
126
+ it: "it";
127
+ }>>;
128
+ fixable: z.ZodOptional<z.ZodBoolean>;
90
129
  }, z.core.$strip>;
91
130
  type ConsistentTestFunctionOptions = z.infer<typeof consistentTestFunctionOptionsSchema>;
92
131
  declare function parseConsistentTestFunctionOptions(data: unknown): ConsistentTestFunctionOptions;
93
-
132
+ //#endregion
133
+ //#region src/rules/helpers/fixOnCondition.d.ts
94
134
  type RuleFixerFunction = (fixer: RuleFixer) => RuleFix | null;
95
135
  declare function fixOnCondition(fixable: boolean, fix: RuleFixerFunction): RuleFixerFunction;
96
-
136
+ //#endregion
137
+ //#region src/rules/no-namespace-imports.d.ts
97
138
  declare const noNamespaceImportsOptionsSchema: z.ZodObject<{
98
- allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
140
  }, z.core.$strip>;
100
141
  type NoNamespaceImportsOptions = z.infer<typeof noNamespaceImportsOptionsSchema>;
101
142
  declare function parseNoNamespaceImportsOptions(data: unknown): NoNamespaceImportsOptions;
102
-
143
+ //#endregion
144
+ //#region src/rules/no-relative-imports.d.ts
103
145
  declare const noRelativeImportsOptionsSchema: z.ZodObject<{
104
- depth: z.ZodOptional<z.ZodInt>;
146
+ depth: z.ZodOptional<z.ZodInt>;
105
147
  }, z.core.$strip>;
106
148
  type NoRelativeImportsOptions = z.infer<typeof noRelativeImportsOptionsSchema>;
107
149
  declare function parseNoRelativeImportsOptions(data: unknown): NoRelativeImportsOptions;
108
-
150
+ //#endregion
151
+ //#region src/rules/standardise-error-messages.d.ts
109
152
  declare const standardiseErrorMessagesOptionsSchema: z.ZodObject<{
110
- regex: z.ZodOptional<z.ZodString>;
153
+ regex: z.ZodOptional<z.ZodString>;
111
154
  }, z.core.$strip>;
112
155
  type StandardiseErrorMessagesOptions = z.infer<typeof standardiseErrorMessagesOptionsSchema>;
113
156
  declare function parseStandardiseErrorMessagesOptions(data: unknown): StandardiseErrorMessagesOptions;
114
-
157
+ //#endregion
158
+ //#region src/rules/use-normalized-imports.d.ts
115
159
  declare const useNormalizedImportsOptionsSchema: z.ZodObject<{
116
- fixable: z.ZodOptional<z.ZodBoolean>;
160
+ fixable: z.ZodOptional<z.ZodBoolean>;
117
161
  }, z.core.$strip>;
118
162
  type UseNormalizedImportsOptions = z.infer<typeof useNormalizedImportsOptionsSchema>;
119
163
  declare function parseUseNormalizedImportsOptions(data: unknown): {
120
- fixable?: boolean | undefined;
164
+ fixable?: boolean | undefined;
121
165
  };
122
-
166
+ //#endregion
167
+ //#region src/utility/checkCallExpression.d.ts
123
168
  declare function checkCallExpression(node: TSESTree.CallExpression, objectName: string, propertyName: string): boolean;
124
-
169
+ //#endregion
170
+ //#region src/utility/createRuleSchemaFromZodSchema.d.ts
125
171
  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 };
172
+ //#endregion
173
+ //#region src/utility/getImportSpecifiersAfterRemoving.d.ts
174
+ declare function getImportSpecifiersAfterRemoving(context: Readonly<RuleContext<"message", [{
175
+ preference: string;
176
+ }]>>, specifiers: TSESTree.ImportClause[], importToRemove: string): string;
177
+ //#endregion
178
+ 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, sortExports, sortImports, sortObjects, typeScriptLanguageOptions, unusedVarsIgnorePatterns, vitestConfig };