Feat Provide
π Search keywords
diag
π» Exp Code
; warn
if (a := b){
}
; ok
a := b
if (a){
}
Additional context
https://eslint.org/docs/latest/rules/no-cond-assign
In conditional statements, it is very easy to mistype a comparison operator as an assignment operator.
There are valid reasons to use assignment operators in conditional statements.
However, it can be difficult to tell whether a specific assignment was intentional.