From 6fbfa1a056985597a470a8d04f63bd9b16e948a6 Mon Sep 17 00:00:00 2001 From: RMNO21 Date: Mon, 28 Sep 2026 02:30:03 +0330 Subject: [PATCH] config: add standardized .editorconfig and .gitattributes Enforces consistent cross-IDE indentation, line endings, and Git attributes. Co-authored-by: RMN021 <89719279+RMN021@users.noreply.github.com> --- .editorconfig | 15 +++++++++++++++ .gitattributes | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e1d350b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.{json,yml,yaml}] +indent_size = 2 + +[*.{ps1,bat,cmd}] +end_of_line = crlf diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..03ef64f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +* text=auto eol=lf +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf +*.png binary +*.jpg binary