You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(linter/no-cond-assign): false positive when assignment is in body statement (#6665)
- fixes#6656
rather than reporting any assignment inside of `if`, `while`, etc. when the `always` option is enabled, we only check if the assignment resides in specific areas that assignment should not be. for example, inside the test of an `if`, or the test of a `for` loop.
incidentally, this also fixes an issue (seen in snapshot file) where the same assignment was reported twice.
0 commit comments