From fb2f5083c7ab3e4061b1b7377c60df542dc53a69 Mon Sep 17 00:00:00 2001 From: Greg Nazario Date: Tue, 10 Oct 2023 15:36:23 -0700 Subject: [PATCH] [formatting] Add files to prevent windows style newlines --- .editorconfig | 8 ++++++++ .gitattributes | 23 +++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..b8ec00a1c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +# This file adds LF and newline support at the end of files +# for many editors automatically including Github +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..27f2b4e6f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +# Ensure that text files that any contributor introduces to the repository +# have their line endings normalized to LF +* text=auto eol=lf + +# All known text filetypes +*.cfg text eol=lf +*.Dockerfile text eol=lf +*.hcl text eol=lf +*.json text eol=lf +*.md text eol=lf +*.move text eol=lf +*.py text eol=lf +*.sh text eol=lf +*.tf text eol=lf +*.toml text eol=lf +*.txt text eol=lf +*.yaml text eol=lf +*.ts text eol=lf +*.js text eol=lf + +# Ensure that powerscript files are not auto-converted +*.ps1 binary +