Linter rulesGraphQLRecommended ruleset

Recommended ruleset

The default ruleset of the GraphQL linter: the rules of the specification and the checks of operations against the schema are errors, naming and documentation conventions are warnings. It leaves out the rules that misfire on schemas split across files.

Rules

Name Severity
argument-naming warning
deprecation-reason-defined warning
directive-naming warning
enum-value-naming warning
field-naming warning
fields-on-correct-type error
fragment-naming warning
input-field-naming warning
input-no-circular-non-null error
input-output-types error
input-type-suffix warning
interface-implementation error
known-argument-names error
known-directive-locations error
known-fragment-names error
known-types error
lone-anonymous-operation error
lone-schema-definition error
no-deprecated error
no-deprecated-required-argument error
no-fragment-cycles error
no-hashtag-description warning
no-mixed-definitions error
no-typename-prefix warning
no-undefined-variables error
no-unused-fragments error
no-unused-variables error
one-field-subscriptions error
oneof-fields-nullable error
operation-known-types error
operation-name-defined error
operation-naming warning
possible-type-extensions error
required-arguments-provided error
reserved-names error
selection-set-depth warning
type-naming warning
unique-argument-definition-names error
unique-argument-names error
unique-directive-names error
unique-directives-per-location error
unique-enum-value-names error
unique-field-definition-names error
unique-fragment-names error
unique-input-field-names error
unique-operation-names error
unique-operation-types error
unique-type-names error
unique-variable-names error