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
{{ message }}
Repository navigation
comment in function chain causes function to be wrapped in () with an extra space #3648
lang:javascriptIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!
To add to this interesting bug, if that function is a top-level function, the return value gets wrapped in parens and expanded (as I'd expect the OP to do, too.) playground
lang:javascriptIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!
Activity
theverything commentedon Jan 4, 2018
Looks like this isn't an issue when using
=>https://prettier.io/playground/#N4Igxg9gdgLgprEAuEAzArlMBGAFLgSgAIBeAPiOAB0oiiAnOGde2jLAJhrp6IHo+kALZCEMbryIA6AEYBDeoQDcNAL4ElIADQgIABxgBLaAGdkoBfQgB3AAoKEZlHIBuEQwBNtIOSZjJUOQAbEzgdGXo5MABrJgBlPSjDKABzZBh6dDCQDwgwAODQnWTQ+hhbSJShOQKQ7IArEwAPACFImPi5UQAZZLhaot10GD1hjgHsxPpS5BB5GQBPIOhvPXpkmAB1TxgAC2QADgAGHTWIUM3IvVm1uFKXfp1GAEd0Q0YKuSqapEC6nVCQkM6Uy2RMyRSQTgAEV0BB4BMdDA5DJth49sgOEjIoYghCAMIQEQ-EBQaCPEDoUIAFRRTj+oVUqiAA
hawkrives commentedon Jan 4, 2018
To add to this interesting bug, if that function is a top-level function, the return value gets wrapped in parens and expanded (as I'd expect the OP to do, too.) playground
duailibe commentedon Jan 6, 2018
I suspect this is another case of
removeLines:prettier/src/language-js/printer-estree.js
Lines 3211 to 3233 in e4e3c75
can't confirm right now
EDIT: it's not that, investigating