Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding import/no-unused-modules. #148

Open
manovotny opened this issue Feb 15, 2021 · 0 comments
Open

Consider adding import/no-unused-modules. #148

manovotny opened this issue Feb 15, 2021 · 0 comments

Comments

@manovotny
Copy link
Owner

It'd be super handy to use import/no-unused-modules, but it just reports too many false positives right now.

Desired config:

'import/no-unused-modules': [
    'error',
    {
        missingExports: true,
        unusedExports: true,
    }
],

However:

  • unusedExports doesn't take MDX files into account when looking for unused items.
  • missingExports flags all kinds of config files, cli scripts, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant