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.