Skip to content

Commit

Permalink
no-await-expression-member: Add notice (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Nov 10, 2021
1 parent ed33dd8 commit 07a603c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/no-await-expression-member.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Forbid member access from await expression

*This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

🔧 *This rule is [auto-fixable](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems).*

When accessing a member from an await expression, the await expression has to be parenthesized, which is not readable.

This rule is fixable for simple member access.
Expand Down

0 comments on commit 07a603c

Please sign in to comment.