4.0.2 β€’ Published 2 years ago

@putout/plugin-remove-boolean-from-logical-expressions v4.0.2

Weekly downloads
2,841
License
MIT
Repository
github
Last release
2 years ago

@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

4.0.1

2 years ago

4.0.2

2 years ago

4.0.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.0

5 years ago

1.0.0

5 years ago