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

1.0.3 • Public • Published

@putout/plugin-remove-boolean-from-assertion NPM version

putout plugin adds ability to remove boolean from assertion. Renamed to @putout/plugin-remove-boolean-from-assertions.

Install

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

Rule

{
    "rules": {
        "remove-boolean-from-assertion": "on"
    }
}

Incorrect code example

if (a === true)
    alert();

Correct code Example

if (a)
    alert();

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

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

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.92 kB

Total Files

4

Last publish

Collaborators

  • coderaiser