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 is currently only available in the 2.0 beta release.
nursery
Section titled “nursery”Rule name | Description | Properties |
---|---|---|
useNamedOperation | Enforce specifying the name of GraphQL operations. | |
useNamingConvention | Validates that all enum values are capitalized. |
Rule name | Description | Properties |
---|---|---|
useDeprecatedReason | Require specifying the reason argument when using @deprecated directive |
suspicious
Section titled “suspicious”Rule name | Description | Properties |
---|---|---|
noDuplicateFields | No duplicated fields in GraphQL operations. |
Recommended rules
Section titled “Recommended rules”- useDeprecatedReason (Severity: Warning)
- noDuplicateFields ((Severity: Information)