style/useLoneExecutableDefinition
style · since 2.3.12
No autofix
biome.json
{
"linter": {
"rules": {
"style": {
"useLoneExecutableDefinition": "error"
}
}
}
}query Foo {
id
}
fragment Bar on Baz {
id
}query Foo {
id
}
mutation ($name: String!) {
createUser {
id
}
}query Foo {
id
}
query Bar {
id
}query Foo {
id
}fragment Bar on Baz {
id
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
style/useLoneExecutableDefinition
style · since 2.3.12
{
"linter": {
"rules": {
"style": {
"useLoneExecutableDefinition": "error"
}
}
}
}Require uppercase names for GraphQL enum values.
Require one description style throughout a GraphQL schema.
Discard redundant terms from logical expressions.