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

1.1.1 • Public • Published

@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

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

    Package Sidebar

    Install

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

    Weekly Downloads

    1,068

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    3.97 kB

    Total Files

    4

    Last publish

    Collaborators

    • coderaiser