eslint-plugin-no-assignment-in-if
v0.0.1
Published
eslint-plugin-no-assignment-in-if
Downloads
4
Readme
eslint-plugin-no-assignment-in-if
eslint-plugin-no-assignment-in-if
Why
Assignement in if
is an easy mistake to make, and a hard bug to find.
Example
// ❌ Will error out
if ((myVar = 42)) {
}
// ✅ Will be allowed
if (myVar === 42) {
}