Skip to content

Commit

Permalink
chore: create .gitattributes(#2288
Browse files Browse the repository at this point in the history
It is recommended by Prettier to use LF endings for all files including in Windows, and they officially recommend to set this option in .gitattributes file for consistency, and LF is the default in Prettier 2 or higher. The lack of this file bit me in another project whose build failed in Windows in GitHub Actions due to `prettier --check` failing in Windows with default LF mode.

More info: prettier/prettier#7825 (comment)
  • Loading branch information
trusktr authored Oct 22, 2023
1 parent dbe8fc5 commit 4e8d6df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf

1 comment on commit 4e8d6df

@vercel
Copy link

@vercel vercel bot commented on 4e8d6df Oct 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.