Why isn't it possible to keep prettier from adding empty line to my files?! #8559
Labels
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:option request
Issues requesting a new option. We generally don’t accept these unless there is technical necessity.
Prettier 2.0.5
Playground link
Input:
Output:
Expected behavior:
I expect prettier considers my
.editorconfig
file or at least provides an option to turn this behavior off.I've already found an old issue about this problem:
#6360
However I can't understand why prettier is such arrogant, assuming its rules are the only valid ones.
I mean I can accept there are some requirements for a consistent logic and the easy-to-use philosophy.
But I can't except a tool prohibits me to decide whether I wanna have an empty line at the end of each file or not. And I can't believe it's that much work to add some more options so people who are not happy with the default behavior may change it.
I've noticed there are some discussions about making prettier more extensible (via plugin system etc.) which I like
#8507 (comment)
though that's much more that I expect.
I only want the existing prettier rules to be toggleable so I don't get an empty line in each file that's formatted by prettier.
May anyone (from the core team) tell me if that's gonna happen in near future?
Otherwise I'm forced to completely throw away prettier because it's more than annoying.
The text was updated successfully, but these errors were encountered: