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

@putout/plugin-remove-boolean-from-assertions NPM version

🐊Putout plugin adds ability to remove boolean from assertions. Merged to @putout/plugin-conditions.

Install

npm i @putout/plugin-remove-boolean-from-assertions

Rule

{
    "rules": {
        "remove-boolean-from-assertions": "on"
    }
}

❌ Example of incorrect code

if (a === true)
    alert();

✅ Example of correct code

if (a)
    alert();

License

MIT

Current Tags

  • 1.1.1                                ...           latest (2 years ago)

3 Versions

  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           3 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 (0)
None
Dev Dependencies (6)
Dependents (1)

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