'Does Prettier add a newline at EOF or not?
When looking for whether Prettier adds a newline at the EOF or not I get mixed results and I cannot find a definitive answer. Issues in the project are contradicting and I cannot find it in the official docs.
I want the newline at EOF. Colleagues commit files without it so I need to know what is happening. There is an editorconfig where I'll add a insert_final_newline = true
for CS files, and I know Rider and VSS and VS Code have their own settings for this, so I am hoping that people are using editorconfig or Prettier.
But it would be nice to know for sure whether Prettier adds or removes the newline at EOF.
Any help is appreciated. Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|