diff --git a/.changeset/thin-chicken-doubt.md b/.changeset/thin-chicken-doubt.md new file mode 100644 index 00000000000..7960f8d1492 --- /dev/null +++ b/.changeset/thin-chicken-doubt.md @@ -0,0 +1,5 @@ +--- +'@graphql-eslint/eslint-plugin': patch +--- + +Fix `RuleDocsInfo` type diff --git a/packages/plugin/src/types.ts b/packages/plugin/src/types.ts index 82bc06318d9..5a8104e84f1 100644 --- a/packages/plugin/src/types.ts +++ b/packages/plugin/src/types.ts @@ -52,7 +52,8 @@ export type GraphQLESLintRuleContext = Omit< export type CategoryType = 'Schema' | 'Operations'; -export type RuleDocsInfo = Omit & { +type RuleMetaDataDocs = Required['docs'] +export type RuleDocsInfo = Omit & { category: CategoryType | CategoryType[]; requiresSchema?: true; requiresSiblings?: true;