a11y/noSvgWithoutTitle
a11y · since 1.0.0
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"a11y": {
"noSvgWithoutTitle": "error"
}
}
}
}Enforces the usage of the title element for the svg element.
<svg>foo</svg><svg>
<title></title>
<circle />
</svg><svg>foo</svg><svg>
<title>Pass</title>
<circle />
</svg><svg role="img" aria-labelledby="title">
<span id="title">Pass</span>
</svg><svg role="img" aria-label="title">
<span id="title">Pass</span>
</svg>Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
a11y/noSvgWithoutTitle
a11y · since 1.0.0
{
"linter": {
"rules": {
"a11y": {
"noSvgWithoutTitle": "error"
}
}
}
}Disallow $derived.by() when $derived() is sufficient.
Disallow Tailwind CSS classes that set the same CSS properties on an element.
Disallow unnecessary $state wrapping of reactive classes.
Disallow Tailwind CSS utility classes that Tailwind CSS only keeps for backward compatibility.
Disallow objects, arrays, functions, and classes in Svelte text mustaches.
Disallow rest destructuring and object spread on TanStack Query results.