@alextheman/eslint-plugin 2.8.2 → 3.0.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
@@ -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.8.2";
7
+ var version = "3.0.0";
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
 
@@ -64,35 +64,39 @@ declare const validTestFunctionsSchema: z.ZodEnum<{
64
64
  }>;
65
65
  type TestFunction = z.infer<typeof validTestFunctionsSchema>;
66
66
  declare function parseTestFunction(data: unknown): TestFunction;
67
+ declare const consistentTestFunctionOptionsSchema: z.ZodObject<{
68
+ preference: z.ZodOptional<z.ZodEnum<{
69
+ test: "test";
70
+ it: "it";
71
+ }>>;
72
+ }, z.core.$strip>;
73
+ type ConsistentTestFunctionOptions = z.infer<typeof consistentTestFunctionOptionsSchema>;
74
+ declare function parseConsistentTestFunctionOptions(data: unknown): ConsistentTestFunctionOptions;
67
75
 
68
- /** Generated from src/utility/generateRuleOptionsTypes.ts.
69
- * You may execute the above file to re-generate this type using `npm run generate-rule-options-types` */
70
- interface ConsistentTestFunctionOptions {
71
- preference?: "it" | "test";
72
- }
76
+ declare const noNamespaceImportsOptionsSchema: z.ZodObject<{
77
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
+ }, z.core.$strip>;
79
+ type NoNamespaceImportsOptions = z.infer<typeof noNamespaceImportsOptionsSchema>;
80
+ declare function parseNoNamespaceImportsOptions(data: unknown): NoNamespaceImportsOptions;
73
81
 
74
- /** Generated from src/utility/generateRuleOptionsTypes.ts.
75
- * You may execute the above file to re-generate this type using `npm run generate-rule-options-types` */
76
- interface NoNamespaceImportsOptions {
77
- allow?: string[];
78
- }
82
+ declare const noRelativeImportsOptionsSchema: z.ZodObject<{
83
+ depth: z.ZodOptional<z.ZodInt>;
84
+ }, z.core.$strip>;
85
+ type NoRelativeImportsOptions = z.infer<typeof noRelativeImportsOptionsSchema>;
86
+ declare function parseNoRelativeImportsOptions(data: unknown): NoRelativeImportsOptions;
79
87
 
80
- /** Generated from src/utility/generateRuleOptionsTypes.ts.
81
- * You may execute the above file to re-generate this type using `npm run generate-rule-options-types` */
82
- interface NoRelativeImportsOptions {
83
- depth?: number;
84
- }
88
+ declare const standardiseErrorMessagesOptionsSchema: z.ZodObject<{
89
+ regex: z.ZodOptional<z.ZodString>;
90
+ }, z.core.$strip>;
91
+ type StandardiseErrorMessagesOptions = z.infer<typeof standardiseErrorMessagesOptionsSchema>;
92
+ declare function parseStandardiseErrorMessagesOptions(data: unknown): StandardiseErrorMessagesOptions;
85
93
 
86
- /** Generated from src/utility/generateRuleOptionsTypes.ts.
87
- * You may execute the above file to re-generate this type using `npm run generate-rule-options-types` */
88
- interface StandardiseErrorMessagesOptions {
89
- regex?: string;
90
- }
91
-
92
- /** Generated from src/utility/generateRuleOptionsTypes.ts.
93
- * You may execute the above file to re-generate this type using `npm run generate-rule-options-types` */
94
- interface UseNormalizedImportsOptions {
95
- fixable?: boolean;
96
- }
94
+ declare const useNormalizedImportsOptionsSchema: z.ZodObject<{
95
+ fixable: z.ZodOptional<z.ZodBoolean>;
96
+ }, z.core.$strip>;
97
+ type UseNormalizedImportsOptions = z.infer<typeof useNormalizedImportsOptionsSchema>;
98
+ declare function parseUseNormalizedImportsOptions(data: unknown): {
99
+ fixable?: boolean | undefined;
100
+ };
97
101
 
98
- export { type AlexPlugin, type AlexPluginConfigGroup, type CombinedConfig, type ConfigGroupName, type ConfigKey, type ConsistentTestFunctionOptions, type GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, type PersonalConfig, type PluginConfig, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, alexPlugin as default, parseTestFunction, prettierRules, sortObjects };
102
+ export { type AlexPlugin, type AlexPluginConfigGroup, type CombinedConfig, type ConfigGroupName, type ConfigKey, type ConsistentTestFunctionOptions, type GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, type PersonalConfig, type PluginConfig, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, alexPlugin as default, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules, sortObjects };
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.8.2";
7
+ var version = "3.0.0";
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
 
@@ -64,35 +64,39 @@ declare const validTestFunctionsSchema: z.ZodEnum<{
64
64
  }>;
65
65
  type TestFunction = z.infer<typeof validTestFunctionsSchema>;
66
66
  declare function parseTestFunction(data: unknown): TestFunction;
67
+ declare const consistentTestFunctionOptionsSchema: z.ZodObject<{
68
+ preference: z.ZodOptional<z.ZodEnum<{
69
+ test: "test";
70
+ it: "it";
71
+ }>>;
72
+ }, z.core.$strip>;
73
+ type ConsistentTestFunctionOptions = z.infer<typeof consistentTestFunctionOptionsSchema>;
74
+ declare function parseConsistentTestFunctionOptions(data: unknown): ConsistentTestFunctionOptions;
67
75
 
68
- /** Generated from src/utility/generateRuleOptionsTypes.ts.
69
- * You may execute the above file to re-generate this type using `npm run generate-rule-options-types` */
70
- interface ConsistentTestFunctionOptions {
71
- preference?: "it" | "test";
72
- }
76
+ declare const noNamespaceImportsOptionsSchema: z.ZodObject<{
77
+ allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
+ }, z.core.$strip>;
79
+ type NoNamespaceImportsOptions = z.infer<typeof noNamespaceImportsOptionsSchema>;
80
+ declare function parseNoNamespaceImportsOptions(data: unknown): NoNamespaceImportsOptions;
73
81
 
74
- /** Generated from src/utility/generateRuleOptionsTypes.ts.
75
- * You may execute the above file to re-generate this type using `npm run generate-rule-options-types` */
76
- interface NoNamespaceImportsOptions {
77
- allow?: string[];
78
- }
82
+ declare const noRelativeImportsOptionsSchema: z.ZodObject<{
83
+ depth: z.ZodOptional<z.ZodInt>;
84
+ }, z.core.$strip>;
85
+ type NoRelativeImportsOptions = z.infer<typeof noRelativeImportsOptionsSchema>;
86
+ declare function parseNoRelativeImportsOptions(data: unknown): NoRelativeImportsOptions;
79
87
 
80
- /** Generated from src/utility/generateRuleOptionsTypes.ts.
81
- * You may execute the above file to re-generate this type using `npm run generate-rule-options-types` */
82
- interface NoRelativeImportsOptions {
83
- depth?: number;
84
- }
88
+ declare const standardiseErrorMessagesOptionsSchema: z.ZodObject<{
89
+ regex: z.ZodOptional<z.ZodString>;
90
+ }, z.core.$strip>;
91
+ type StandardiseErrorMessagesOptions = z.infer<typeof standardiseErrorMessagesOptionsSchema>;
92
+ declare function parseStandardiseErrorMessagesOptions(data: unknown): StandardiseErrorMessagesOptions;
85
93
 
86
- /** Generated from src/utility/generateRuleOptionsTypes.ts.
87
- * You may execute the above file to re-generate this type using `npm run generate-rule-options-types` */
88
- interface StandardiseErrorMessagesOptions {
89
- regex?: string;
90
- }
91
-
92
- /** Generated from src/utility/generateRuleOptionsTypes.ts.
93
- * You may execute the above file to re-generate this type using `npm run generate-rule-options-types` */
94
- interface UseNormalizedImportsOptions {
95
- fixable?: boolean;
96
- }
94
+ declare const useNormalizedImportsOptionsSchema: z.ZodObject<{
95
+ fixable: z.ZodOptional<z.ZodBoolean>;
96
+ }, z.core.$strip>;
97
+ type UseNormalizedImportsOptions = z.infer<typeof useNormalizedImportsOptionsSchema>;
98
+ declare function parseUseNormalizedImportsOptions(data: unknown): {
99
+ fixable?: boolean | undefined;
100
+ };
97
101
 
98
- export { type AlexPlugin, type AlexPluginConfigGroup, type CombinedConfig, type ConfigGroupName, type ConfigKey, type ConsistentTestFunctionOptions, type GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, type PersonalConfig, type PluginConfig, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, alexPlugin as default, parseTestFunction, prettierRules, sortObjects };
102
+ export { type AlexPlugin, type AlexPluginConfigGroup, type CombinedConfig, type ConfigGroupName, type ConfigKey, type ConsistentTestFunctionOptions, type GeneralConfig, type NoNamespaceImportsOptions, type NoRelativeImportsOptions, type PersonalConfig, type PluginConfig, type StandardiseErrorMessagesOptions, type TestFunction, type UseNormalizedImportsOptions, alexPlugin as default, parseConsistentTestFunctionOptions, parseNoNamespaceImportsOptions, parseNoRelativeImportsOptions, parseStandardiseErrorMessagesOptions, parseTestFunction, parseUseNormalizedImportsOptions, prettierRules, sortObjects };