We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeError: Cannot read properties of undefined (reading 'type')
require-description
1 parent baf4619 commit 84d78b7Copy full SHA for 84d78b7
.changeset/pretty-moons-happen.md
@@ -0,0 +1,6 @@
1
+---
2
+'@graphql-eslint/eslint-plugin': patch
3
4
+
5
+fix error `TypeError: Cannot read properties of undefined (reading 'type')` in `require-description`
6
+rule
packages/plugin/src/rules/require-description/index.ts
@@ -153,6 +153,10 @@ export const rule: GraphQLESLintRule<RuleOptions> = {
153
);
154
}
155
156
+ if (!kinds.size) {
157
+ throw new Error('At least one kind must be enabled');
158
+ }
159
160
const selector = [...kinds].join(',');
161
162
return {
0 commit comments