chore: update editorconfig and add .prettierrc for code formatting

This commit is contained in:
Lorenz Hilpert
2025-06-16 17:06:34 +02:00
parent befdc9fa4d
commit 5a68adc87c
4 changed files with 40 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ indent_style = space
indent_size = 2 indent_size = 2
insert_final_newline = true insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
end_of_line = crlf
[*.md] [*.md]
max_line_length = off max_line_length = off

1
.gitignore vendored
View File

@@ -25,7 +25,6 @@ speed-measure-plugin.json
*.launch *.launch
.settings/ .settings/
*.sublime-workspace *.sublime-workspace
.prettierrc
# IDE - VSCode # IDE - VSCode
.vscode/* .vscode/*

37
.prettierrc Normal file
View File

@@ -0,0 +1,37 @@
{
"singleQuote": true,
"semi": true,
"trailingComma": "all",
"tabWidth": 2,
"bracketSpacing": true,
"printWidth": 80,
"endOfLine": "crlf",
"arrowParens": "always",
"quoteProps": "consistent",
"overrides": [
{
"files": "*.html",
"options": {
"parser": "html"
}
},
{
"files": "*.component.html",
"options": {
"parser": "angular"
}
},
{
"files": "*.scss",
"options": {
"singleQuote": false
}
},
{
"files": "*.json",
"options": {
"printWidth": 80
}
}
]
}

View File

@@ -5,6 +5,7 @@
"angular.ng-template", "angular.ng-template",
"nrwl.angular-console", "nrwl.angular-console",
"dbaeumer.vscode-eslint", "dbaeumer.vscode-eslint",
"firsttris.vscode-jest-runner" "firsttris.vscode-jest-runner",
"editorconfig.editorconfig"
] ]
} }