1.1.1 β€’ Published 1 year ago

@putout/plugin-remove-boolean-from-assertions v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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