ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / no-negated-conditions
Disallows negated conditions.
module.exports = {
plugins: ["misc"],
rules: {
"misc/no-negated-conditions": "error"
}
};
if (!x && y) {}
if (x !== -1 && y) {}
if (x && !y) {}
if (x && y !== -1) {}