@putout/plugin-remove-useless-type-convertion
putout plugin adds ability to remove useless type convertion
Last updated 3 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-useless-type-convertion 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 3.0.1                                ...           latest (3 years ago)

7 Versions

  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.2                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE