oxc/approx-constant
oxc plugin · suspicious
Safe autofix
.oxlintrc.json
{
"rules": {
"oxc/approx-constant": "error"
}
}Disallows the use of approximate constants, instead preferring the use of the constants in the Math object.
let log10e = 0.434294let log10e = Math.LOG10EExamples from the Oxlint documentation.
ESLint does not have this rule.
oxc/approx-constant
oxc plugin · suspicious
{
"rules": {
"oxc/approx-constant": "error"
}
}Biome does not have this rule.
Https://rust-lang.github.io/rust-clippy/master/#/misrefactored_assign_op
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.