Skip to content

Commit

Permalink
[formatting] Add files to prevent windows style newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Oct 10, 2023
1 parent 8a157f2 commit fb2f508
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fb2f508

Please sign in to comment.