diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7243538 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +# 에디터 공통 포맷 — 3스택·여러 에디터에서 들여쓰기/인코딩 통일 +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + +# Dart (dart format 기본 2칸) +[*.dart] +indent_size = 2 + +# Markdown — 줄 끝 공백이 의미를 가질 수 있어 트림 제외 +[*.md] +trim_trailing_whitespace = false + +# Makefile 은 탭 필수 +[Makefile] +indent_style = tab diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..26757db --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +# 줄바꿈 정규화 — 어떤 OS에서 클론해도 저장소 내부는 LF로 통일 (Windows 작업 시 CRLF 변환 churn 방지) +* text=auto eol=lf + +# Windows 전용 스크립트는 CRLF 유지 +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf + +# 셸 스크립트는 LF 강제 +*.sh text eol=lf + +# 바이너리 — 변환/diff 제외 +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.webp binary +*.woff binary +*.woff2 binary +*.ttf binary +*.otf binary +*.jar binary +*.keystore binary