quick-lint-js
quick-lint-js copied to clipboard
12$: warn on 'x == y;' statement
The following C++ code has a bug:
for (Used_Variable &used_var : current_scope.variables_used) {
if (used_var.kind == Used_Variable_Kind::use) {
used_var.kind == Used_Variable_Kind::use_in_type;
}
}
JavaScript code might have a similar bug. For example:
let x;
x == 42;
quick-lint-js should warn about such redundant ==
(or ===
) and suggest =
instead.
Hi @strager, I would love to tackle this issue if that's ok :)
@CoderMuffin Yeah, you can work on this issue.