correctness/useGraphqlNamedOperations
correctness · since 2.0.0
Unsafe autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"useGraphqlNamedOperations": "error"
}
}
}
}Require a name for every explicit GraphQL operation definition.
query {}query Human {
name
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/useGraphqlNamedOperations
correctness · since 2.0.0
{
"linter": {
"rules": {
"correctness": {
"useGraphqlNamedOperations": "error"
}
}
}
}Require a generic fallback in font-family lists.
Enforces that <img> elements have both width and height attributes.
Require a reason when using the @deprecated directive.
Disallow an anonymous operation in a document with other operations.
Enforce JSON keys with consistent Unicode representation.
Require the cpu field in package.json to be a valid list of processor types.