0.0.11 • Published 2 years ago
ts-no-unused v0.0.11
ts-no-unused
Auto remove unused-locals and parameters detected by typescript.
motivation
If you use typescript with noUnusedLocals or noUnusedParameters option, compiler raises error if unused local or parameter detected.
This cli provide a way to remove unused local and parameter automatically.
install
npm install -g ts-no-unused
usage
With no option, cli detect and fix under current project files. (tsconfig.json must be under current path.)
ts-no-unused
Can specify tsconfig.json file via --configPath option.
ts-no-unused --configPath ./relativeProject/tsconfig.json
Can filter target files via glob pattern.
ts-no-unused --target './src/nest/*.ts'