a11y/useGenericFontNames
a11y · since 1.8.0
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"a11y": {
"useGenericFontNames": "error"
}
}
}
}Require a generic fallback in font-family lists.
a { font-family: Arial; }a { font: normal 14px/32px -apple-system, BlinkMacSystemFont; }a { font-family: "Lucida Grande", "Arial", sans-serif; }a { font-family: inherit; }a { font-family: sans-serif; }Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
a11y/useGenericFontNames
a11y · since 1.8.0
{
"linter": {
"rules": {
"a11y": {
"useGenericFontNames": "error"
}
}
}
}Require a reason when using the @deprecated directive.
Require a name for every explicit GraphQL operation definition.
Enforce JSON keys with consistent Unicode representation.
Enforces that <img> elements have both width and height attributes.
Require kind sets in Biome JS plugins to be created at the top level of the module.
Disallow an anonymous operation in a document with other operations.