nursery/noSvelteLegacyConst
nursery · since 2.5.8
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"noSvelteLegacyConst": "error"
}
}
}
}{#each boxes as box}
{@const area = box.width * box.height}
<p>{area}</p>
{/each}{#each boxes as box}
{const area = $derived(box.width * box.height)}
<p>{area}</p>
{/each}Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noSvelteLegacyConst
nursery · since 2.5.8
{
"linter": {
"rules": {
"nursery": {
"noSvelteLegacyConst": "error"
}
}
}
}Disallow ignoring the function returned by a store's subscribe() method.
Disallow arbitrary values in Tailwind CSS utility classes.
Disallow destructuring props inside JSX components in Solid projects.
Disallow Tailwind CSS utility classes that use raw palette colors.
Disallow animation and transition times that are shorter than a configured minimum.
Disallow Tailwind CSS classes and variants that your project doesn't allow.