This product is not supported for your selected Datadog site. ().
Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
Metadata
ID:typescript-best-practices/no-cond-assign
Language: TypeScript
Severity: Error
Category: Best Practices
Description
While there may be valid reasons to use an assignment operation in a condition, it is very easy to mistake = with ==, which is usually what is intended. This rule prevents mistakes like these because it is easier to intentionally disable the rule than identify the error.