pzavolinsky / ts-unused-exports

ts-unused-exports finds unused exported symbols in your Typescript project
MIT License
749 stars 49 forks source link

Add Vue support #171

Closed Timmmm closed 3 months ago

Timmmm commented 4 years ago

This also adds a test that may or may not test anything.

Fixes #162

mrseanryan commented 4 years ago

(related)

@Timmmm about the itest not failing:

The itests use the exitWithCount option:

Set the process exit code to be the count of files that have unused exports.

So it is not counting the number of unused items - it is counting the files.

When I tried it on this branch, it worked ok (by making a copy of Math.ts)

For future - Logged #172 to improve how itests checked.

mrseanryan commented 4 years ago

[UPDATED - itests]

mrseanryan commented 4 years ago

The PR has an itest, but some unit tests are needed for future maintenance and debugging.

Add a new file like: vue.feature

Example:

https://github.com/pzavolinsky/ts-unused-exports/blob/master/features/base-url-undefined.feature

Timmmm commented 4 years ago

what about Mixins? Looks like something that could require special support.

I think mixins are a standard Typescript feature.

FlorianWendelborn commented 3 months ago

Since this is closed now, in case someone is still looking for a Vue compatible alternative you may want to try knip