no-await-expression-member
UnreleasedConfiguration
rslint.config.ts
Rule Details
Disallow accessing a property or element directly from an await expression.
Use destructuring or store the awaited result in a variable before accessing
its members.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
The rule has no options. It automatically fixes variable declarations that
access element 0 or 1, or a named property matching the variable name.
Optional member access and declarations with a type annotation are reported
without an automatic fix.
Differences from ESLint
Unlike eslint-plugin-unicorn v74.0.0, rslint reports using and await using
declarations without automatic fixes, because these declarations cannot use destructuring.