Add .gitattributes and .editorconfig

This commit is contained in:
Urs Roesch
2023-04-09 08:34:52 +02:00
parent e11892660a
commit ab4fde3a40
2 changed files with 72 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
[*.{ps1,psm1}]
end_of_line = crlf
[*.sh]
end_of_line = lf
max_line_length = 80
[*.adoc]
max_line_length = 80
[Makefile]
indent_style = tab
+47
View File
@@ -0,0 +1,47 @@
# Globals
text eol=crlf
# document formats
*.adoc text
*.html text
*.svg text
*.txt text
*.yml text
*.yaml text
*.jsn text
*.json text
*.ini text
# Git config files
.gitignore text
.gitattributes text
.editorconfig text
# Source code formats
*.sh text eol=lf
*.ps1 text eol=crlf
*.psm1 text eol=crlf
# Images formats
*.gif binary
*.ico binary
*.png binary
*.jpg binary
*.jpeg binary
*.webm binary
*.avif binary
# Binary formats
*.bin binary
*.bpm binary
*.dll binary
*.exe binary
*.lib binary
*.pat binary
bzip2-* binary
bzip2_* binary
lzma-* binary
lzma_* binary
uninst binary
zlib-* binary
zlib_* binary