@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    61
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    61
  • 2.0.0
    4
  • 1.3.0
    9,944
  • 1.2.0
    1,071
  • 1.1.0
    139
  • 1.0.0
    1

Package Sidebar

Install

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

Weekly Downloads

8,754

Version

2.0.1

License

MIT

Unpacked Size

4.72 kB

Total Files

4

Last publish

Collaborators

  • coderaiser