Ensure arrow function bodies are wrapped in parens if needed.
Closes #1214.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
var foo = arr.map(v => ({
|
||||
x: v.bar,
|
||||
y: v.bar*2
|
||||
}));
|
||||
@@ -0,0 +1,4 @@
|
||||
var foo = arr.map(v => ({
|
||||
x: v.bar,
|
||||
y: v.bar * 2
|
||||
}));
|
||||
Reference in New Issue
Block a user