diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..15edb937f1d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +root = true + +[*] + charset = utf-8 + insert_final_newline = true + end_of_line = lf + quote_type = double + indent_style = space + indent_size = 2 + max_line_length = 120 + curly_bracket_next_line = false + spaces_around_brackets = true + spaces_around_operators = true + indent_brace_style = K&R + +[*.tsx] + max_line_length = 100 + + diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index 2a5f9b07615..00000000000 --- a/.prettierrc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "arrowParens": "always", - "bracketSameLine": false, - "bracketSpacing": true, - "printWidth": 120, - "semi": true, - "singleQuote": false, - "tabWidth": 2, - "trailingComma": "none", - "useTabs": false, - "overrides": [ - { - "files": "*.tsx", - "options": { - "printWidth": 100 - } - } - ] -}