@putout/plugin-remove-unused-types

putout plugin adds ability to find and remove unused types

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@putout/plugin-remove-unused-types
36902.0.19 months ago2 years agoMinified + gzip package size for @putout/plugin-remove-unused-types in KB

Readme

@putout/plugin-remove-unused-types !NPM versionNPMIMGURLNPMURL
šŸŠ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