@devinmdavies/eslint-plugin-barrel-files
Version:
eslint plugin to avoid common errors with barrel files
31 lines (23 loc) • 461 B
Markdown
This rule disallows _authoring_ barrel files in your project.
Examples of **incorrect** code for this rule:
```js
export { foo } from 'foo';
export { bar } from 'bar';
export { baz } from 'baz';
```
This rule takes an optional configuration:
```json
{
"rules": {
"barrel-files/avoid-barrel-files": [
2,
{
"amountOfExportsToConsiderModuleAsBarrel": 5
}
]
}
}
```