@putout/plugin-remove-boolean-from-logical-expressions
🐊Putout plugin adds ability to find and remove test.boolean-from-logical-expressions calls
Last updated 4 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-remove-boolean-from-logical-expressions 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 4.0.2                                ...           latest (4 years ago)

9 Versions

  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           5 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |