pzavolinsky / ts-unused-exports

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

Strip comments from `tsconfig` #6

Closed OliverJAsh closed 7 years ago

OliverJAsh commented 7 years ago

If tsconfig.json contains comments then ts-unused-exports fails, e.g.:

SyntaxError: Unexpected token / in JSON at position 245

We should strip comments from the config file before parsing it.

pzavolinsky commented 7 years ago

Hi @OliverJAsh , pushed version 2.0.2 that supports comments in tsconfig.json.

Cheers!