@putout/plugin-apply-if-condition
🐊Putout plugin adds ability apply if condition
Last updated 4 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-apply-if-condition 
SYNC missed versions from official npm registry.

@putout/plugin-apply-if-condition NPM version

The if statement executes a statement if a specified condition is truthy.

(c) MDN

🐊Putout plugin adds ability to apply if condition. Merged to @putout/plugin-conditions.

Install

npm i @putout/plugin-apply-if-condition

Rule

Rule apply-if-condition:

Rule

{
    "rules": {
        "apply-if-condition": "on"
    }
}

❌ Example of incorrect code

if (2 > 3);
    alert();

✅ Example of correct code

if (2 > 3)
    alert();

License

MIT

Current Tags

  • 1.1.1                                ...           latest (4 years ago)

3 Versions

  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE