$ cnpm install @putout/plugin-apply-if-condition
The
ifstatement executes a statement if a specified condition is truthy.(c) MDN
????Putout plugin adds ability to apply if condition. Merged to @putout/plugin-conditions.
npm i @putout/plugin-apply-if-condition
Rule apply-if-condition:
{
"rules": {
"apply-if-condition": "on"
}
}
if (2 > 3);
alert();
if (2 > 3)
alert();
MIT
Copyright 2013 - present © cnpmjs.org | Home |