Skip to content

feat(linter): noBarrelFile #3004

Description

@Boshen

https://biomejs.dev/linter/rules/no-barrel-file/

Biome only checks for export * in a file.

In oxlint, we can do better when --import-plugin is enabled, by displaying the total number of dependencies pulled into a given file by walking

pub loaded_modules: DashMap<CompactStr, Arc<ModuleRecord>, BuildHasherDefault<FxHasher>>,

You can find similar plugins in https://github.com/oxc-project/oxc/tree/main/crates/oxc_linter/src/rules/import

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - Lintergood first issueExperience Level - Good for newcomers

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions