From 47a663f0ceabb59053f9ca7f381523da25a21240 Mon Sep 17 00:00:00 2001 From: "lina.wolf" Date: Wed, 28 Aug 2024 06:38:00 +0200 Subject: [PATCH] [TASK] Update .editorconfig Use the same settings like the Core and tabs for makefiles to prevent errors. --- .editorconfig | 67 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 57 insertions(+), 10 deletions(-) diff --git a/.editorconfig b/.editorconfig index bb0a62f4..d91f59e1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,20 +1,67 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file root = true -[{*.rst,*.rst.txt}] +# Unix-style newlines with a newline ending every file +[*] charset = utf-8 end_of_line = lf +indent_style = space +indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true -indent_style = space -indent_size = 3 + +# TS/JS-Files +[*.{ts,js,mjs}] +indent_size = 2 + +# JSON-Files +[*.json] +indent_style = tab + +# ReST-Files +[*.{rst,rst.txt}] +indent_size = 4 max_line_length = 80 -# MD-Files +# Markdown-Files [*.md] -charset = utf-8 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true -indent_style = space -indent_size = 4 max_line_length = 80 + +# YAML-Files +[*.{yaml,yml}] +indent_size = 2 + +# NEON-Files +[*.neon] +indent_size = 2 +indent_style = tab + +# stylelint +[.stylelintrc] +indent_size = 2 + +# package.json +[package.json] +indent_size = 2 + +# TypoScript +[*.{typoscript,tsconfig}] +indent_size = 2 + +# XLF-Files +[*.xlf] +indent_style = tab + +# SQL-Files +[*.sql] +indent_style = tab +indent_size = 2 + +# .htaccess +[{_.htaccess,.htaccess}] +indent_style = tab + +[Makefile] +indent_style = tab