-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FIX]] Relax singleGroups restrictions: arrow fns
Because arrow functions are AssignmentExpressions but *not* primary expressions, they cannot appear directly as the left-hand side of an operator. Extend the behavior of the singleGroups option to allow the grouping operator to wrap arrow functions, provided they do not end the current statement.
- Loading branch information
1 parent
9f55160
commit 4a4f522
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters