style: adjust indentation and line ending settings

This commit is contained in:
Christopher Willis-Ford 2022-05-20 13:24:44 -07:00
parent e4e298f073
commit 65fcf2826c
2 changed files with 28 additions and 5 deletions

View file

@ -1,11 +1,14 @@
root = true root = true
[*] [*]
indent_style = tab end_of_line = lf
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true insert_final_newline = true
charset = utf-8
indent_size = 4
trim_trailing_whitespace = true
[{package.json,.travis.yml}] [*.{js,json}]
indent_style = space indent_style = space
[{package.json,package-lock.json}]
indent_size = 2

20
.gitattributes vendored Normal file
View file

@ -0,0 +1,20 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly specify line endings for as many files as possible.
# People who (for example) rsync between Windows and Linux need this.
# File types which we know are binary
# Prefer LF for most file types
*.js text eol=lf
*.json text eol=lf
*.md text eol=lf
# Prefer LF for these files
.editorconfig text eol=lf
.gitattributes text eol=lf
.gitignore text eol=lf
LICENSE text eol=lf
# Use CRLF for Windows-specific file types