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

@putout/plugin-apply-comparison-order NPM version

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.

Install

npm i @putout/plugin-apply-comparison-order

Rule

{
    "rules": {
        "apply-comparison-order": "on"
    }
}

❌ Example of incorrect code

3 === a;
3 < b;

✅ Example of correct code

a === 3;
b > 3;

Comparison

Linter Rule Fix
🐊 Putout apply-comparison-order ✅
⏣ ESLint yoda ½

License

MIT

Current Tags

  • 1.4.1                                ...           latest (4 years ago)

6 Versions

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

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