suspicious/noMisrefactoredShorthandAssign
suspicious · since 1.3.0
Unsafe autofixRecommended
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noMisrefactoredShorthandAssign": "error"
}
}
}
}Disallow shorthand assign when variable appears on both sides.
a += a + ba -= a - ba *= a * ba += ba = a + ba = a - bExamples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noMisrefactoredShorthandAssign
suspicious · since 1.3.0
{
"linter": {
"rules": {
"suspicious": {
"noMisrefactoredShorthandAssign": "error"
}
}
}
}Require <li> elements with an HTML element parent to be children of <ul>, <ol>, or <menu>.
Require var() when using a declared CSS custom property.
Disallow unsafe JSON values that may cause interoperability issues.
Enforce Playwright async APIs to be awaited or returned.