Skip to content

Commit

Permalink
Create .editorconfig and .gitattributes (#55)
Browse files Browse the repository at this point in the history
Enforce LF and UTF-8 for all files and set default tab rendering size.
  • Loading branch information
ccuser44 authored Nov 7, 2024
1 parent d75748c commit 5ce7e34
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[*.lua]
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

[*.md]
indent_size = 4
end_of_line = lf
charset = utf-8

[*.yml]
indent_size = 4
end_of_line = lf
charset = utf-8

[*.cpp]
indent_size = 4
end_of_line = lf
charset = utf-8

[*.c]
indent_size = 4
end_of_line = lf
charset = utf-8

[*.h]
indent_size = 4
end_of_line = lf
charset = utf-8

[*.txt]
indent_size = 4
end_of_line = lf
charset = utf-8
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Auto detect text files and perform LF normalization
*.lua text=auto
*.lua eol=lf
*.md text=auto
*.md eol=lf
*.yml text=auto
*.yml eol=lf
*.cpp text=auto
*.cpp eol=lf
*.c text=auto
*.c eol=lf
*.h text=auto
*.h eol=lf
*.txt text=auto
*.txt eol=lf

0 comments on commit 5ce7e34

Please sign in to comment.