Adjust editorconfig
This commit is contained in:
@@ -1,16 +1,54 @@
|
|||||||
# Editor configuration, see https://editorconfig.org
|
# EditorConfig is awesome: https://EditorConfig.org
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
# Top-most EditorConfig file
|
||||||
|
root = true
|
||||||
charset = utf-8
|
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_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
insert_final_newline = true
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
|
|
||||||
[*.ts]
|
[*.ts]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
quote_type = single
|
quote_type = single
|
||||||
|
|
||||||
[*.md]
|
# Trim trailing whitespace
|
||||||
max_line_length = off
|
[*.{html,scss,ts}]
|
||||||
trim_trailing_whitespace = false
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user