From d9a34b0ddbd9e11ffde543a05143bc51735db81d Mon Sep 17 00:00:00 2001 From: Peter Rossa Date: Tue, 26 Sep 2023 10:05:33 +0200 Subject: [PATCH] Adjust editorconfig --- rossa-tech-cli/.editorconfig | 54 ++++++++++++++++++++++++++++++------ 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/rossa-tech-cli/.editorconfig b/rossa-tech-cli/.editorconfig index 59d9a3a..bb6e2c6 100644 --- a/rossa-tech-cli/.editorconfig +++ b/rossa-tech-cli/.editorconfig @@ -1,16 +1,54 @@ -# Editor configuration, see https://editorconfig.org -root = true +# EditorConfig is awesome: https://EditorConfig.org -[*] +# Top-most EditorConfig file +root = true charset = utf-8 + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +# Use spaces instead of tabs for indentation +[*.html] +indent_style = space +indent_size = 2 + +[*.scss] indent_style = space indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true [*.ts] +indent_style = space +indent_size = 2 quote_type = single -[*.md] -max_line_length = off -trim_trailing_whitespace = false +# Trim trailing whitespace +[*.{html,scss,ts}] +trim_trailing_whitespace = true + +# Ensure a single blank line at the end of the file +[*.{html,scss,ts}] +insert_final_newline = true + +# Set character encoding to UTF-8 +[*.{html,scss,ts}] +charset = utf-8 + +# Angular-specific settings +[*.html] +wrap_attributes = force-aligned +indent_size = 4 + +# Limit the maximum line length to 80 characters (adjust as needed) +[*.{html,scss,ts}] +max_line_length = 140 + +# Ignore some folders and files +[.git] +[.vscode] +[dist] +[node_modules] +[e2e] +*.js +