require-atomic-updates
Configuration
rslint.config.ts
Rule Details
Disallow assignments that can lead to race conditions due to usage of await or yield.
This rule reports assignments to variables or properties in cases where the assignments may be based on outdated values. When a variable is read, then an await or yield pauses execution, the variable might be modified by another concurrent operation before the assignment completes.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
allowProperties
When set to true, the rule does not report assignments to properties (only variables).