diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..b5e3c6a15 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.prettierrc.yml b/.prettierrc.yml index e4b60f57c..9ce888bdf 100644 --- a/.prettierrc.yml +++ b/.prettierrc.yml @@ -1,3 +1,4 @@ tabWidth: 4 printWidth: 100 trailingComma: "none" +endOfLine: "lf"