oxc/misrefactored-assign-op
oxc plugin · suspicious
Safe autofix
.oxlintrc.json
{
"rules": {
"oxc/misrefactored-assign-op": "error"
}
}Https://rust-lang.github.io/rust-clippy/master/#/misrefactored_assign_op
a += a + b;
a -= a - b;a += b;
a -= b;Examples from the Oxlint documentation.
ESLint does not have this rule.
oxc/misrefactored-assign-op
oxc plugin · suspicious
{
"rules": {
"oxc/misrefactored-assign-op": "error"
}
}Biome does not have this rule.
Disallows the use of approximate constants, instead preferring the use of the constants in the Math object.
Prevents using object or array spreads on accumulators in Array.prototype.reduce() and in loops.
Disallows the use of async functions as Express endpoint handlers.
Disallow the use of barrel files where the file contains export * statements, and the total number of modules exceeds a threshold.
Disallows the use of this in exported functions.