From 49fef58c5f3e2d7b25a213663abe9460570e9bfd Mon Sep 17 00:00:00 2001 From: TtiPo Date: Sun, 28 Jun 2026 13:58:01 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=A4=84=EB=B0=94=EA=BF=88=C2=B7?= =?UTF-8?q?=EC=97=90=EB=94=94=ED=84=B0=20=EC=84=A4=EC=A0=95=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(.gitattributes,=20.editorconfig)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 저장소 줄바꿈을 LF로 정규화하고 에디터 공통 포맷(UTF-8, 2-space)을 정의해 OS·에디터에 따른 불필요한 diff를 방지한다. Co-Authored-By: Claude Opus 4.8 (1M context) --- .editorconfig | 22 ++++++++++++++++++++++ .gitattributes | 24 ++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes 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