nursery/noSelfNestedLayer
nursery · since 2.6.3
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"noSelfNestedLayer": "error"
}
}
}
}@layer components {
@layer components {
.button {
color: red;
}
}
}@layer base {
@layer base.reset {
* {
margin: 0;
}
}
}@layer base {
@layer reset {
* {
margin: 0;
}
}
}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/noSelfNestedLayer
nursery · since 2.6.3
{
"linter": {
"rules": {
"nursery": {
"noSelfNestedLayer": "error"
}
}
}
}Disallow animation and transition times that are shorter than a configured minimum.
Disallow dependencies that are known to have better alternatives.
Disallow destructuring props inside JSX components in Solid projects.
Disallow ignoring the function returned by a store's subscribe() method.