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
The main reason for this is that I dislike parens around await calls, but in practice I think this leads to more readable code, especially if Prettier is used:
Before
Here there's also #1407 making the linter complain
The general community consensus seems to be that destructuring with renaming is less clear than the non-destructuring alternative.
Ideally this is the sort of thing that would be an option on prefer-destructuring, but i doubt eslint will accept it since it's a style change, unless there's an argument for it being "support for await import() syntax"
Minor style change, similar to the native prefer-destructuring, but for
default
.👎
👍
The text was updated successfully, but these errors were encountered: