From 5e37236e8040f6f72e072525ba1ee87dd67065b5 Mon Sep 17 00:00:00 2001 From: Abhi M Date: Sun, 28 Dec 2025 17:32:47 +0800 Subject: [PATCH] Add .editorconfig and .gitattributes files Introduces .editorconfig for consistent code style and .gitattributes to enforce LF line endings and text normalization, improving cross-platform collaboration. --- .editorconfig | 9 +++++++++ .gitattributes | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..cfd8fb8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +end_of_line = lf +charset = utf-8 +insert_final_newline = true +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..cc672fc --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Ensure JavaScript files always use LF line endings +*.js text eol=lf