From b569de7b3e28d8de12f79844e161b8e4205d6625 Mon Sep 17 00:00:00 2001 From: parcellab-dev-bot Date: Mon, 29 Sep 2025 09:13:29 +0000 Subject: [PATCH] chore: enforce common configurations --- .editorconfig | 28 ++++++++++++++++++++++++++++ .prettierrc | 12 ++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .editorconfig create mode 100644 .prettierrc diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..04ba030 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,28 @@ +root = true + +[*] +indent_style = tab +indent_size = 4 +tab_width = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[{*.gyp,*.md,*.json,*.tf,*.tpl,*.yml,*.yaml}] +indent_style = space +indent_size = 2 + +[{*.py,*.asm}] +indent_style = space + +[*.asm] +indent_size = 8 + +[{*.md,*.tsv}] +trim_trailing_whitespace = false + +[{*.c,*.cc,*.h,*.hh,*.cpp,*.hpp,*.m,*.mm,*.mpp,*.js,*.java,*.go,*.rs,*.php,*.ng,*.jsx,*.ts,*.d,*.cs,*.swift}] +curly_bracket_next_line = false +spaces_around_operators = true +spaces_around_brackets = outside diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..05d0049 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,12 @@ +tabWidth: 4 +endOfLine: lf +useTabs: true +overrides: + - files: + - "*.json" + - "*.md" + - "*.yaml" + - "*.yml" + options: + tabWidth: 2 + useTabs: false