From 2293750f9c002ae801bcd789952d6a2e4588fc41 Mon Sep 17 00:00:00 2001 From: Tom Beckenham <34339192+tombeckenham@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:02:00 +1100 Subject: [PATCH] Adding editorconfig --- .editorconfig | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..20ab60d3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,35 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 +max_line_length = off + +# TypeScript/JavaScript files +[*.{ts,tsx,js,jsx}] +indent_size = 2 +quote_type = single +curly_bracket_next_line = false +spaces_around_operators = true +spaces_around_brackets = false +trim_trailing_whitespace = true + +# JSON files +[*.json] +indent_size = 2 + +# Markdown files +[*.md] +trim_trailing_whitespace = false +max_line_length = off + +# YAML files +[*.{yml,yaml}] +indent_size = 2