GraphQL Rules
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.
correctness
Section titled “correctness”Rule name | Description | Properties |
---|---|---|
useGraphqlNamedOperations | Enforce specifying the name of GraphQL operations. |
Rule name | Description | Properties |
---|---|---|
useDeprecatedReason | Require specifying the reason argument when using @deprecated directive | |
useGraphqlNamingConvention | Validates that all enum values are capitalized. |
suspicious
Section titled “suspicious”Rule name | Description | Properties |
---|---|---|
noDuplicateFields | No duplicated fields in GraphQL operations. |
Recommended rules
Section titled “Recommended rules”- useGraphqlNamedOperations (Severity: error)
- useDeprecatedReason (Severity: warning)
- noDuplicateFields (Severity: information)