Skip to content

Commit 9d4df6b

Browse files
4444J99claude
andcommitted
Add repository standards (editorconfig, gitattributes)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 546b25b commit 9d4df6b

2 files changed

Lines changed: 105 additions & 0 deletions

File tree

.editorconfig

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# EditorConfig — https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
indent_style = space
10+
indent_size = 2
11+
12+
[*.{py,pyi}]
13+
indent_size = 4
14+
15+
[*.{go}]
16+
indent_style = tab
17+
18+
[*.{rs}]
19+
indent_size = 4
20+
21+
[*.md]
22+
trim_trailing_whitespace = false
23+
24+
[Makefile]
25+
indent_style = tab
26+
27+
[*.{sh,bash,zsh}]
28+
indent_size = 2
29+
30+
[*.{yaml,yml}]
31+
indent_size = 2
32+
33+
[*.{toml}]
34+
indent_size = 2

.gitattributes

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Auto-detect text files and normalize line endings
2+
* text=auto
3+
4+
# Source code
5+
*.py text diff=python
6+
*.ts text diff=typescript
7+
*.tsx text diff=typescript
8+
*.js text diff=javascript
9+
*.jsx text diff=javascript
10+
*.go text diff=go
11+
*.rs text diff=rust
12+
*.rb text diff=ruby
13+
*.sh text eol=lf diff=bash
14+
*.bash text eol=lf diff=bash
15+
*.zsh text eol=lf diff=bash
16+
*.lua text
17+
18+
# Configuration
19+
*.json text
20+
*.yaml text
21+
*.yml text
22+
*.toml text
23+
*.cfg text
24+
*.ini text
25+
*.conf text
26+
*.env text
27+
28+
# Templates
29+
*.tmpl text
30+
*.j2 text
31+
32+
# Documentation
33+
*.md text diff=markdown
34+
*.txt text
35+
*.rst text
36+
37+
# Web
38+
*.html text diff=html
39+
*.css text diff=css
40+
*.scss text diff=css
41+
*.astro text
42+
*.svg text
43+
44+
# Build / lock files
45+
package-lock.json text -diff
46+
yarn.lock text -diff
47+
Cargo.lock text -diff
48+
poetry.lock text -diff
49+
50+
# Binary
51+
*.png binary
52+
*.jpg binary
53+
*.jpeg binary
54+
*.gif binary
55+
*.ico binary
56+
*.webp binary
57+
*.woff binary
58+
*.woff2 binary
59+
*.ttf binary
60+
*.eot binary
61+
*.pdf binary
62+
*.zip binary
63+
*.gz binary
64+
*.tar binary
65+
*.db binary
66+
*.sqlite binary
67+
68+
# Force LF for scripts
69+
Makefile text eol=lf
70+
Dockerfile text eol=lf
71+
justfile text eol=lf

0 commit comments

Comments
 (0)