npm / eslint-plugin-no-barrel-files
eslint-plugin-no-barrel-files
What changed in eslint-plugin-no-barrel-files 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.
2 breaking4 new APIs and options4 performance2 behavior and defaults5 tooling10 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initeslint-plugin-no-barrel-files 221 changes
Breaking changes 2
The plugin now reports plain imports of types that are re-exported via export all.
The plugin now reports type-only imports when they are re-exported without the type modifier.
New APIs and options 3
The plugin allows intentional barrel files.
Adds a recommended configuration that enables both rules.
Adds a rule that prefers source imports.
Performance 4
Skips external module resolution.
Avoids unnecessary import analysis.
Shares TypeScript resolution caches.
Caches analysis to improve performance.
Behavior and default changes 2
The plugin resolves default and namespace re-exports, allowing its rules to account for these re-export forms.
The plugin ignores intentional barrel imports.
Tooling 2
The plugin rewrites direct default barrel imports.
The plugin now supports TypeScript 6.
Fixes and other changes 8
Rules now provide meta.defaultOptions and schema descriptions.
Lockfile installs with npm 10 are supported.
Aliases from configured base paths are now resolved.
Local re-export barrels are now resolved.
Fixes detection of imports declared after exports.
Import fixes now account for aliases when resolving source imports.
Fixes re-export edge cases in the rule.
TypeScript is optional for prefer-source-imports.
eslint-plugin-no-barrel-files 16 changes
New APIs and options 1
The rule detects named from exports.
Tooling 3
Adds linting to detect barrel files.
Adds support for ESLint 10.
Adds support for flat config.
Fixes and other changes 2
Checks the local name rather than the exported name for named exports.
Fixes missing types in the build.