pzavolinsky / ts-unused-exports

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

False positive on re-export in index.ts #302

Open kuhelbeher opened 2 months ago

kuhelbeher commented 2 months ago

I'm getting error when I'm re-exporting variable in index.ts file: image

ts-unused-exports version - 10.0.1. On version 8.0.2 everything works fine.

Repo to reproduce - https://github.com/kuhelbeher/unused-exports-test

Steps to reproduce:

yarn install
yarn lint:unusedexports

> 1 module with unused exports
> C:\Projects\unused-exports-test\src\module\index.ts[3,0]: a
> error Command failed with exit code 1.
> info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This may be connected to similar issue - https://github.com/pzavolinsky/ts-unused-exports/issues/216

sospirited commented 1 month ago

I've seen this issue too and found it to be Windows OS specific and not an issue on MacOS, similar experience where on v8.0.2 I saw it was fine for me but not on later major versions