Skip to content

Commit

Permalink
Merge pull request #1015 from Vankog/auto-line_endings
Browse files Browse the repository at this point in the history
fix line-endings conflict between prettier and git
  • Loading branch information
jqno authored Nov 6, 2024
2 parents 3e6ac1b + ccab821 commit a5c9288
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* text=auto eol=lf

# make sure that script files are always in the correct format, no matter the OS.
# i.e. Windows needs batch files to have CRLF, but shell scripts always need to be LF, which is especially important for WSL contexts.
*.sh text eol=lf
*.bat text eol=crlf
1 change: 1 addition & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tabWidth: 4
printWidth: 100
trailingComma: "none"
endOfLine: "lf"

0 comments on commit a5c9288

Please sign in to comment.