eslint-plugin-aligning-inequality-signs
v1.0.0
Published
## Installation
Downloads
4
Readme
eslint-plugin-aligning-inequality-signs
Installation
npm i -D eslint-plugin-aligning-inequality-signs
in .eslintrc.js
"plugins": [
"aligning-inequality-signs",
...
],
"rules": {
"aligning-inequality-signs/aligning-inequality-signs": "error",
}
Example
let left = 0;
let right = 2;
// This should be left < right. --> Error!!!
if (right > left) {
}
↓
// ok!
if (left < right) {
}