Function call in chained calls results in unexpected indentation #2832
Labels
lang:javascript
Issues affecting JS
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 1.7.0
Playground link
I encountered a minor formatting issue with some enzyme code in our test files. Admittedly it's a bit edge-casey, but the combination of chained calls, the
prop('x')()
function call, and the callback break the indentation.This issue is new as of upgrading from Prettier 1.5.0 to 1.7.0. Let me know if there are any other details I can provide that will help. Thanks!
Input:
Output:
Expected behavior:
The text was updated successfully, but these errors were encountered: