From 2145cf7b5f0cef2835542625dcd9d433a5aecb5c Mon Sep 17 00:00:00 2001 From: mcieric Date: Thu, 9 Oct 2025 14:51:16 +0200 Subject: [PATCH] chore: add .editorconfig + .gitattributes (LF, indent=2) --- .editorconfig | 10 ++++++++++ .gitattributes | 2 ++ README.md | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1ee5988 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +trim_trailing_whitespace = true + +[*.{js,ts,tsx,jsx,json,yml,yaml,md,sol}] +indent_style = space +indent_size = 2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d260708 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +* text=auto eol=lf +*.sol linguist-language=Solidity diff --git a/README.md b/README.md index 38b641c..d57f244 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,8 @@ Again, a file that you might want to change, although unlikely, is [docs/develop ## Cloudflare There are some Page Rules defined in Cloudflare to support some redirections for the public docs. Visit them to understand what they do. + +--- + +## Editor settings +This repository enforces LF end-of-line and 2-space indentation via `.editorconfig` and `.gitattributes` to keep diffs clean across platforms.