@putout/plugin-remove-useless-types

1.4.1 • Public • Published

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

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

Install

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

Rule

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

Incorrect code example

type oldType = {
    a: number,
    b: string,
};

type newType = oldType;

const x: newType = 5;

Correct code Example

type oldType = {
    a: number,
    b: string,
};

const x: oldType = 5;

License

MIT

Package Sidebar

Install

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

Weekly Downloads

13,496

Version

1.4.1

License

MIT

Unpacked Size

5.3 kB

Total Files

4

Last publish

Collaborators

  • coderaiser