diff --git a/packages/config-yaml/src/schemas/index.ts b/packages/config-yaml/src/schemas/index.ts index 9b5a4870d..224278cd7 100644 --- a/packages/config-yaml/src/schemas/index.ts +++ b/packages/config-yaml/src/schemas/index.ts @@ -49,7 +49,9 @@ const ruleObjectSchema = z.object({ }); const ruleSchema = z.union([z.string(), ruleObjectSchema]); -// TODO: What should be required? +/** + * A schema for rules.json files + */ export const rulesJsonSchema = z.object({ name: z.string(), version: z.string(), @@ -60,6 +62,9 @@ export const rulesJsonSchema = z.object({ export type Rule = z.infer; export type RuleObject = z.infer; +/** + * A schema for rules.json files + */ export type RulesJson = z.infer; const defaultUsesSchema = z.string();