@putout/plugin-convert-binary-expression-to-boolean
putout plugin adds ability to convert binary expression to boolean
Last updated 6 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-convert-binary-expression-to-boolean 
SYNC missed versions from official npm registry.

@putout/plugin-convert-binary-expression-to-boolean NPM version Dependency Status

putout plugin adds ability to find and convert binary expression to boolean. Renamed to @putout/plugin-convert-comparison-to-boolean.

Install

npm i @putout/plugin-convert-binary-expression-to-boolean -D

Rule

{
    "rules": {
        "convert-binary-expression-to-boolean": "on"
    }
}

❌ Incorrect code example

const t = 2 < 3;

✅ Correct code Example

const t = false;

License

MIT

Current Tags

  • 2.1.1                                ...           latest (5 years ago)

6 Versions

  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.2.0                                ...           7 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 (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |