@putout/plugin-remove-useless-type-convertion

3.0.1 • Public • Published

@putout/plugin-remove-useless-convertion NPM version Dependency Status

putout plugin adds ability to apply shorthand properties. Renamed to @putout/remove-useless-type-conversion

Install

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

Rule

{
    "rules": {
        "remove-useless-convertion/named": "on",
        "remove-useless-convertion/with-double-negations": "on"
    }
}

Incorrect code example

const a = !![1].includes(1);
const b = Boolean([1].includes(1));

Correct code Example

const a = [1].includes(1);

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.15,392latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.15,392
3.0.012
2.0.2110
2.0.10
2.0.00
1.1.05
1.0.00

Package Sidebar

Install

npm i @putout/plugin-remove-useless-type-convertion

Weekly Downloads

5,519

Version

3.0.1

License

MIT

Unpacked Size

4.51 kB

Total Files

5

Last publish

Collaborators

  • coderaiser