style/useDeprecatedReason
style · since 1.9.0
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"style": {
"useDeprecatedReason": "error"
}
}
}
}query {
member @deprecated
}query {
member @deprecated(reason: "Why?")
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
style/useDeprecatedReason
style · since 1.9.0
{
"linter": {
"rules": {
"style": {
"useDeprecatedReason": "error"
}
}
}
}Enforce JSON keys with consistent Unicode representation.
Require a generic fallback in font-family lists.
Require kind sets in Biome JS plugins to be created at the top level of the module.
Require a name for every explicit GraphQL operation definition.
Require kind sets instead of comparing kind names one by one in Biome JS plugins.
Enforces that <img> elements have both width and height attributes.