$ cnpm install @putout/plugin-apply-comparison-order
The result of evaluating an equality operator is always of type boolean based on whether the comparison is true.
(c) MDN
????Putout plugin adds ability to apply comparison order.
Checkout it ????Putout Editor. Merged to @putout/plugin-conditions.
npm i @putout/plugin-apply-comparison-order
{
"rules": {
"apply-comparison-order": "on"
}
}
3 === a;
3 < b;
a === 3;
b > 3;
| Linter | Rule | Fix |
|---|---|---|
| ???? Putout | apply-comparison-order |
✅ |
| ⏣ ESLint | yoda |
½ |
MIT
Copyright 2013 - present © cnpmjs.org | Home |