Skip to content

Commit

Permalink
Unify editor rules
Browse files Browse the repository at this point in the history
  • Loading branch information
undergroundwires committed Feb 20, 2022
1 parent 817c9e7 commit 728ba2d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .editorconfig
@@ -0,0 +1,16 @@
# Top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# 2 space indentation
[*.sh]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
6 changes: 6 additions & 0 deletions .gitattributes
@@ -0,0 +1,6 @@
# Prevent Git from auto-converting to CRLF on Windows, and convert to LF on checkin.
# * : All files
# text=auto : If Git decides content it text, it converts CRLF to LF on checkin.
# eol=lf : forces Git to normalize line endings to LF on checkin and prevents conversion
# to CRLF when the file is checked out.
* text=auto eol=lf
3 changes: 2 additions & 1 deletion .vscode/extensions.json
@@ -1,6 +1,7 @@
{
"recommendations": [
"davidanson.vscode-markdownlint",
"timonwong.shellcheck"
"timonwong.shellcheck",
"EditorConfig.EditorConfig"
]
}

0 comments on commit 728ba2d

Please sign in to comment.