Shared Configs
Shared Configs — GraphQL ESLint documentation.
Schema Configs
| Name | Description |
|---|---|
flat/schema-recommended | enables recommended rules for schema development |
flat/schema-all | enables all rules for schema development, except for those that require parserOptions.operations option |
flat/schema-relay | enables rules from Relay specification for schema development |
Operations Configs
| Name | Description |
|---|---|
flat/operations-recommended | enables recommended rules for consuming GraphQL (operations) development |
flat/operations-all | enables all rules for consuming GraphQL (operations) development |
Config Usage
For example, to enable the flat/schema-recommended config, in a new configuration object assign
the rules field to the rules field from the associated config from graphqlPlugin.configs
object.