Skip to content

Commit

Permalink
Specified file formats
Browse files Browse the repository at this point in the history
* Add .editorconfig to specify various file format in this repository.
* Add .gitattributes to specify the EOL format when commit.
  • Loading branch information
yookoala committed Oct 13, 2020
1 parent 5c05ccd commit 54a2034
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
# with UTF-8 encoding by default.
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8

[*.go]
indent_style = tab

[*.{js,json}]
indent_style = space
indent_size = 2

[*.py]
indent_style = space
indent_size = 4
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Force all text file to use Unix EOL
* text=auto eol=lf

0 comments on commit 54a2034

Please sign in to comment.