line / ts-remove-unused

Remove unused code from your TypeScript Project – It's like tree shaking, but for source files
https://www.npmjs.com/package/@line/ts-remove-unused
Apache License 2.0
1.02k stars 12 forks source link

Option to specify things to remove #43

Open Dimava opened 2 months ago

Dimava commented 2 months ago

The package can remove:

I would like to limit it to a subset or removed things (personally I don't really want to remove unused constants, arguments, and export clauses that are still used in the file) (i.e. I only want to remove completely unused export function/export const and files) For arguments and constants there already are eslint rules, so if I have any left they are probably intentionally excluded

kazushisan commented 2 months ago

Thanks! I’d say it’s not a high priority issue at this moment, but the possible solutions could be discussed!