Skip to content

Commit dd7ab8f

Browse files
committed
chore: add .editorconfig and .gitattributes
Add editor configuration and line ending normalization for consistent development across platforms. Signed-off-by: Srikanth Patchava <srpatcha@users.noreply.github.com>
1 parent 4202228 commit dd7ab8f

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
charset = utf-8
8+
indent_style = space
9+
indent_size = 4
10+
11+
[Makefile]
12+
indent_style = tab
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[*.{patch,diff}]
18+
end_of_line = unset
19+
insert_final_newline = unset
20+
trim_trailing_whitespace = unset
21+
charset = unset
22+
indent_style = unset
23+
indent_size = unset

.gitattributes

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Explicitly declare text files
5+
*.md text diff=markdown
6+
*.txt text
7+
*.csv text
8+
*.yml text
9+
*.yaml text
10+
*.json text
11+
*.xml text
12+
*.html text diff=html
13+
*.css text diff=css
14+
15+
# Denote binary files
16+
*.png binary
17+
*.jpg binary
18+
*.jpeg binary
19+
*.gif binary
20+
*.ico binary
21+
*.pdf binary
22+
*.zip binary
23+
*.gz binary
24+
*.tar binary

0 commit comments

Comments
 (0)