nursery/noDisabledAttribute
nursery · since 2.6.7
Unsafe autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"noDisabledAttribute": "error"
}
}
}
}Discourages the disabled attribute on form controls and on elements that act as buttons.
<button disabled>Save</button><input type="email" disabled /><select disabled><option>Monthly</option></select><>
<button aria-disabled="true">Save</button>
<input type="email" readOnly />
<select aria-disabled="true"><option>Monthly</option></select>
<input type="hidden" disabled />
</>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/noDisabledAttribute
nursery · since 2.6.7
{
"linter": {
"rules": {
"nursery": {
"noDisabledAttribute": "error"
}
}
}
}Disallow using a Drizzle ORM instance inside its own transaction callback.
Limit how complex selectors can be, and disallow chosen parts of selectors.