From 44faae9cb14fb5a36315a99c01917039dfd30794 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Thu, 11 Jul 2024 21:45:23 +0200 Subject: [PATCH] tree-wide: unify .editorconfig files Signed-off-by: Christoph Heiss --- .editorconfig | 24 +++++++++++++++++++ backend/.editorconfig | 13 ---------- backend/.gitignore | 2 +- .../src/test/resources/application-test.yml | 2 +- e2e/.editorconfig | 12 ---------- frontend/.editorconfig | 13 ---------- 6 files changed, 26 insertions(+), 40 deletions(-) create mode 100644 .editorconfig delete mode 100644 backend/.editorconfig delete mode 100644 e2e/.editorconfig delete mode 100644 frontend/.editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9930560 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,24 @@ +root = true + +[*] +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true +charset = utf-8 +indent_style = space +indent_size = 2 + +# backend +[*.{java,kt,xml}] +indent_size = 4 +ij_kotlin_allow_trailing_comma = true +ij_kotlin_allow_trailing_comma_on_call_site = true + +# markdown +[*.md] +max_line_length = off +trim_trailing_whitespace = false + +# misc +[*.{yml,yaml,json}] +indent_size = 2 diff --git a/backend/.editorconfig b/backend/.editorconfig deleted file mode 100644 index 0e2a18d..0000000 --- a/backend/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -root = true - -[*] -end_of_line = lf -trim_trailing_whitespace = true -insert_final_newline = false -charset = utf-8 -indent_style = space -indent_size = 4 -tab_width = 4 - -[*.{yml,yaml,json,sql}] -indent_size = 2 \ No newline at end of file diff --git a/backend/.gitignore b/backend/.gitignore index ffdb6ad..e0e208a 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -53,4 +53,4 @@ buildNumber.properties /.nb-gradle/ ### VS Code ### -.vscode/ \ No newline at end of file +.vscode/ diff --git a/backend/src/test/resources/application-test.yml b/backend/src/test/resources/application-test.yml index a6ba304..7c24f60 100644 --- a/backend/src/test/resources/application-test.yml +++ b/backend/src/test/resources/application-test.yml @@ -10,4 +10,4 @@ spring: show-sql: true properties: hibernate: - format-sql: TRUE \ No newline at end of file + format-sql: TRUE diff --git a/e2e/.editorconfig b/e2e/.editorconfig deleted file mode 100644 index ff9b6fc..0000000 --- a/e2e/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -max_line_length = off -trim_trailing_whitespace = false diff --git a/frontend/.editorconfig b/frontend/.editorconfig deleted file mode 100644 index 6e87a00..0000000 --- a/frontend/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Editor configuration, see http://editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -max_line_length = off -trim_trailing_whitespace = false