dimaMachina / graphql-eslint

ESLint parser, plugin and set rules for GraphQL (for schema and operations). Easily customizable with custom rules. Integrates with IDEs and modern GraphQL tools.
https://the-guild.dev/graphql/eslint
MIT License
779 stars 102 forks source link

Ignore require-description for root types #2259

Open ddiazghub opened 2 months ago

ddiazghub commented 2 months ago

Is your feature request related to a problem? Please describe

@nestjs/graphql does not allow to set descriptions for root types when generating a GraphQL schema with a code-first approach. This makes linting fail when descriptions are required for object types.

Describe the solution you'd like

The possibility to ignore this rule for root types Query, Mutation and Subscription.