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