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
no-unused-exports
export * from
When a file uses the syntax
export * from "./file.ts";
where file.ts contains more than one export on separate lines, the rule throws a RangeError.
file.ts
Minimal reproduction: https://github.com/omothm/no-unused-exports-export-from-bug-repro
The text was updated successfully, but these errors were encountered:
Any update on resolution of this issue?
Sorry, something went wrong.
A simple workaround I did was to exclude the barrel file from eslint using tsconfig.eslint.json file. Here's the sample tsconfig.eslint.json file:
{ "extends": "./tsconfig.json", "include": [ "src/**/*.ts", "*.ts", "test/**/*.ts" ], "exclude": [ "node_modules", "dist", ".eslintrc.js", "src/**/index.ts" // Removing barrel file from eslint because 'export *' syntax conflicts with the cononical/no-unused-exports rule. ] }
I encourage to migrate to https://knip.dev/
No branches or pull requests
When a file uses the syntax
where
file.ts
contains more than one export on separate lines, the rule throws a RangeError.Minimal reproduction: https://github.com/omothm/no-unused-exports-export-from-bug-repro
The text was updated successfully, but these errors were encountered: