oxc/no-const-enum
oxc plugin · restriction
Safe autofix
.oxlintrc.json
{
"rules": {
"oxc/no-const-enum": "error"
}
}const enum Color {
Red,
Green,
Blue
}The documentation shows no correct example for this rule.
Examples from the Oxlint documentation.
ESLint does not have this rule.
oxc/no-const-enum
oxc plugin · restriction
{
"rules": {
"oxc/no-const-enum": "error"
}
}Biome does not have this rule.
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.
Disallows the use of async functions as Express endpoint handlers.
Prevents using object or array spreads on accumulators in Array.prototype.reduce() and in loops.
Https://rust-lang.github.io/rust-clippy/master/#/misrefactored_assign_op
Disallows the use of approximate constants, instead preferring the use of the constants in the Math object.