@putout/plugin-remove-boolean-from-logical-expressions

4.0.2 • Public • Published

@putout/plugin-remove-boolean-from-logical-expressions NPM version

A boolean is a logical data type that can have only the values true or false.

(c) MDN

🐊Putout plugin adds ability to find and remove boolean from logical expressions. Merged to @putout/plugin-logical-expressions.

Install

npm i @putout/plugin-remove-boolean-from-logical-expressions -D

Rule

{
    "rules": {
        "remove-boolean-from-logical-expressions": "on"
    }
}

Example of incorrect code

const t = true && false;

Example of correct code

const t = false;

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.2
    492
    • latest

Version History

Package Sidebar

Install

npm i @putout/plugin-remove-boolean-from-logical-expressions

Weekly Downloads

10,182

Version

4.0.2

License

MIT

Unpacked Size

3.88 kB

Total Files

4

Last publish

Collaborators

  • coderaiser