Skip to content

Change default values of unusedExports and/or missingExports with import/no-unused-modules #1324

Open
@ehmicky

Description

@ehmicky

Would it make sense to change the default value of unusedExports and/or missingExports? At the moment, they both default to false. Unless I am mistaken, this means that the rule is a noop by default. This confused me at first and I thought the rule was not working. I am wondering if other users might have the same reaction. Would defaulting one of them or both of them to true be a good idea?

(Unrelated note: The no-unused-modules is great, thanks for this! This rule can replace whole libraries dedicated to finding dead code in JavaScript. Being built on top of ESLint, it also benefits from things like IDE integrations. In short, this is great!)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions