This rule disallows authoring barrel files in your project.
Examples of incorrect code for this rule:
export { foo } from 'foo';
export { bar } from 'bar';
export { baz } from 'baz';
This rule takes an optional configuration:
{
"rules": {
"barrel-files/avoid-barrel-files": [
2,
{
"amountOfExportsToConsiderModuleAsBarrel": 5
}
]
}
}