npm.io
2.0.1 • Published 4 years ago

@putout/plugin-remove-unused-types

Licence
MIT
Version
2.0.1
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Stars
797

@putout/plugin-remove-unused-types NPM version

Putout plugin adds ability to find and remove unused types. Moved to @putout/plugin-typescript

Install

npm i @putout/plugin-remove-unused-types -D

Rule

{
    "rules": {
        "remove-unused-types": "on"
    }
}

Incorrect code example

type n = number;
type s = string;

const x: n = 5;

Correct code Example

type n = number;

const x: n = 5;

License

MIT

Keywords