From d1387511d73dd135cf0e4ff87e0d201ee0b71579 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Thu, 13 Nov 2025 09:11:27 +0000 Subject: [PATCH] chore(.editorconfig): add file to enforce consistent coding styles (#712) --- .editorconfig | 15 +++++++++++++++ .prettierrc | 6 +----- 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..49d3f74 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +charset = utf-8 +insert_final_newline = true +trim_trailing_whitespace = true + +# Prettier will use these settings +end_of_line = lf +indent_style = tab +indent_size = 4 +max_line_length = 80 + +[*.{css,html,scss}] +max_line_length = 120 \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index bcc76ae..b144c1c 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,16 +1,12 @@ { "arrowParens": "always", - "endOfLine": "lf", "semi": true, - "tabWidth": 4, "trailingComma": "es5", - "useTabs": true, "overrides": [ { "files": ["*.css", "*.html", "*.scss"], "options": { - "bracketSameLine": true, - "printWidth": 120 + "bracketSameLine": true } } ]