Aller au contenu

GraphQL Rules

Ce contenu n’est pas encore disponible dans votre langue.

Below the list of rules supported by Biome, divided by group. Here’s a legend of the emojis:

  • The icon indicates that the rule is part of the recommended rules.
  • The icon indicates that the rule provides a code action (fix) that is safe to apply.
  • The icon indicates that the rule provides a code action (fix) that is unsafe to apply.
  • The icon indicates that the rule has been implemented and scheduled for the next release.
Rule nameDescriptionProperties
useGraphqlNamedOperationsEnforce specifying the name of GraphQL operations.
Rule nameDescriptionProperties
useDeprecatedReasonRequire specifying the reason argument when using @deprecated directive
useGraphqlNamingConventionValidates that all enum values are capitalized.
Rule nameDescriptionProperties
noDuplicateFieldsNo duplicated fields in GraphQL operations.

Missing a rule? Help us by contributing to the analyzer or create a rule suggestion here.