Switch to LF
This commit is contained in:
1 parent
6f6cfe2f82
commit
07801a4bf5
2 files changed
+6
-11
No files matched your search
+5
-10
@@ -1,15 +1,10 @@
|
|||||||
# https://docs.github.com/en/get-started/git-basics/configuring-git-to-handle-line-endings
|
# https://docs.github.com/en/get-started/git-basics/configuring-git-to-handle-line-endings[cite: 1]
|
||||||
|
|
||||||
# Set the default behavior, in case people don't have core.autocrlf set
|
# 1. Let Git automatically manage text files (converts to LF in repo, CRLF on Windows checkout)
|
||||||
* text=auto
|
* text=auto
|
||||||
|
|
||||||
# Files that will always have CRLF line endings on checkout
|
# 2. Prevent any conversion/normalization in ALL __data__ folders anywhere in the repo
|
||||||
*.js text eol=crlf
|
**/__data__/** -text
|
||||||
*.mjs text eol=crlf
|
|
||||||
*.ts text eol=crlf
|
|
||||||
*.xml text eol=crlf
|
|
||||||
*.md text eol=crlf
|
|
||||||
workers.txt text eol=crlf
|
|
||||||
|
|
||||||
# Files that will always have LF line endings on checkout
|
# 3. Force shell scripts to always use LF (prevents "command not found" errors on CI/CD or Linux)
|
||||||
*.sh text eol=lf
|
*.sh text eol=lf
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
tabWidth: 2,
|
tabWidth: 2,
|
||||||
useTabs: false,
|
useTabs: false,
|
||||||
endOfLine: 'crlf',
|
endOfLine: 'lf',
|
||||||
semi: false,
|
semi: false,
|
||||||
singleQuote: true,
|
singleQuote: true,
|
||||||
printWidth: 100,
|
printWidth: 100,
|
||||||
|
|||||||
Reference in new issue
Block a user