From d0c2e551175169192733a2e9b6057cfb9d330c30 Mon Sep 17 00:00:00 2001 From: Bertalan Eck Date: Tue, 27 Sep 2022 12:40:36 +0100 Subject: [PATCH 1/2] Fixed type issue for RuleDocsInfo --- packages/plugin/src/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; From 453d4c81a50531a695e10c7f18c7e9352f5b5491 Mon Sep 17 00:00:00 2001 From: Bertalan Eck Date: Tue, 27 Sep 2022 12:52:58 +0100 Subject: [PATCH 2/2] Create thin-chicken-doubt.md --- .changeset/thin-chicken-doubt.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/thin-chicken-doubt.md 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