Boshen @boshen.github.io · Oct 29

oxfmt will respect your .editorconfig, and stop adding newlines to the end of the file. Probably behind an option though, for compatibility reasons. github.com/prettier/pr...

28 likes 3 replies

?

Replies

Thomas Fritz · Oct 29

Although I prefer to end all my text files with a newline, cause its part of the "Unix philosophy" for reasons. It doesn't hurt, especially in the JS/TS ecosystem, does it? After reading the comments on the linked issue, I don't understand the argument against having the last line end with a newline

Jake Bailey · Oct 30

not adding the trailing newline is cursed behavior

LucasOe · Oct 31

Great to hear! I always thought it was a bit unintuitive that you can configure Prettier using the .editorconfig file, but not all options are respected.