oxc/no-barrel-file
oxc plugin · restriction
No autofix
.oxlintrc.json
{
"rules": {
"oxc/no-barrel-file": "error"
}
}Disallow the use of barrel files where the file contains export * statements, and the total number of modules exceeds a threshold.
export * from 'foo'; // where `foo` loads a subtree of 100 modules
import * as ns from 'foo'; // where `foo` loads a subtree of 100 modulesexport { foo } from 'foo';Examples from the Oxlint documentation.
ESLint does not have this rule.
oxc/no-barrel-file
oxc plugin · restriction
{
"rules": {
"oxc/no-barrel-file": "error"
}
}Biome does not have this rule.
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.
Disallows the use of this in exported functions.
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.