@putout/plugin-apply-if-condition

1.1.1 • Public • Published

@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

Package Sidebar

Install

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

Weekly Downloads

2,315

Version

1.1.1

License

MIT

Unpacked Size

3.99 kB

Total Files

4

Last publish

Collaborators

  • coderaiser