@putout/plugin-remove-unused-types

2.0.1 • Public • Published

@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

Package Sidebar

Install

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

Weekly Downloads

13,495

Version

2.0.1

License

MIT

Unpacked Size

4.72 kB

Total Files

4

Last publish

Collaborators

  • coderaiser