correctness/useLoneAnonymousOperation
correctness · since 2.3.12
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"useLoneAnonymousOperation": "error"
}
}
}
}Disallow an anonymous operation in a document with other operations.
query {
fieldA
}
query B {
fieldB
}query A {
fieldA
}
query B {
fieldB
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/useLoneAnonymousOperation
correctness · since 2.3.12
{
"linter": {
"rules": {
"correctness": {
"useLoneAnonymousOperation": "error"
}
}
}
}Enforces that <img> elements have both width and height attributes.
Require the cpu field in package.json to be a valid list of processor types.
Require a name for every explicit GraphQL operation definition.
Enforce that the engines field in package.json is valid.
Require a generic fallback in font-family lists.
Require the license field in package.json to be a valid license.