Skip to content

Change endOfLine to lf by default for 2.0 #6932

@kachkaev

Description

@kachkaev

Refs: #6888 (about Prettier 2.0), #6929 (about changing arrowParens to always)

End of Line option was 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.js in existing codebases. V2.0 is a great opportunity for breaking changes like this.

WDYT folks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease 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 taken

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions