Rules
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
if (a == b == c) {
console.log("a, b, and c are the same");
}if (a == b && b == c) {
console.log("a, b, and c are the same");
}Popular · 1 of 50
This rule applies when the comparison operator is applied two or more times in a row.
if (a == b == c) {
console.log("a, b, and c are the same");
}if (a == b && b == c) {
console.log("a, b, and c are the same");
}