eslint-plugin-barrel-files

3.0.1 • Public • Published

eslint-plugin-barrel-files

Barrel files are files that just re-export a bunch of things from other files. If you're using a bundler, bundlers usually apply treeshaking and dead code elimination algorithms to remove any unused code.

In many environments however, like test runners, browsers, CDN environments or server side JavaScript runtimes, treeshaking does not get applied. This means that lots of modules get loaded unnecessarily, which can cause significant performance slowdowns.

For more information, I recommend reading Speeding up the JavaScript ecosystem - The barrel file debacle

Supported Rules

Package Sidebar

Install

npm i eslint-plugin-barrel-files

Weekly Downloads

45,579

Version

3.0.1

License

MIT

Unpacked Size

27.7 kB

Total Files

17

Last publish

Collaborators

  • passle