ts-no-unused

0.0.11 • Public • Published

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'

Readme

Keywords

none

Package Sidebar

Install

npm i ts-no-unused

Weekly Downloads

0

Version

0.0.11

License

MIT

Unpacked Size

13 kB

Total Files

7

Last publish

Collaborators

  • mkusaka