-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Change endOfLine to lf by default for 2.0 #6932
Copy link
Copy link
Closed
Labels
locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be taken
Milestone
Metadata
Metadata
Assignees
Labels
locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be taken
Refs: #6888 (about Prettier 2.0), #6929 (about changing
arrowParenstoalways)End of Line optionwas added in #5327 and is available since Prettier 1.15. Given that using LF (Linux line endings) is a default choice in the software dev world, I decided to open this issue to bring the topic to a broader discussion.I understand that changing defaults can cause large git diffs in some projects. However for the benefit of newly created projects, I suggest that the problem can be addressed by changing
prettier.config.jsin existing codebases. V2.0 is a great opportunity for breaking changes like this.WDYT folks?