We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
export interface Foo {}
with
module.exports = { extends: [ 'plugin:import/errors', 'plugin:import/warnings', 'plugin:import/typescript', ], rules: { 'import/no-unused-modules': ['error', { missingExports: true }], } }
produces No exports found error by import/no-unused-modules.
No exports found
import/no-unused-modules
Expected: No error.
The text was updated successfully, but these errors were encountered:
Seems like we'll have to handle files that only export types.
Sorry, something went wrong.
is there a workaround for files that only export interfaces?
Given that an interface is a type, that would be the sole task this issue needs help with :-)
no-unused-modules
[Fix] no-unused-modules: consider exported TypeScript interfaces, t…
f064772
…ypes and enums Fixes import-js#1680 Co-authored-by: e020873 <nicolas.henry-partner@arcelormittal.com> Co-authored-by: Jordan Harband <ljharb@gmail.com>
54eb51b
Successfully merging a pull request may close this issue.
with
produces
No exports found
error byimport/no-unused-modules
.Expected:
No error.
The text was updated successfully, but these errors were encountered: