This commit is contained in:
Alexandre Possebom
2025-12-28 09:51:17 -03:00
parent 4dcfd1906e
commit 45bbd087da
2 changed files with 28 additions and 4 deletions
+27 -3
View File
@@ -1,6 +1,30 @@
{
"cSpell.words": ["timeval"],
"editor.formatOnSave": false,
"prettier.htmlWhitespaceSensitivity": "ignore",
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.formatOnSave": true,
// Associate .html.j2 files with jinja-html language mode
"files.associations": {
"*.html.j2": "jinja-html"
},
// Set djLint as formatter for html, jinja, jinja-html, django-html
"[html][jinja][jinja-html][django-html]": {
"editor.formatOnSave": false,
"editor.defaultFormatter": "monosans.djlint",
"editor.detectIndentation": true,
"editor.linkedEditing": true,
"editor.tabSize": 2
},
// Add specific formatting rules as needed, e.g.:
"djlint.enableLinting": false,
"djlint.enableFormatting": true,
"djlint.closeVoidTags": true,
"djlint.formatAttributeTemplateTags": true,
"djlint.formatCss": true,
"djlint.formatJs": true,
"djlint.lineBreakAfterMultilineTag": false,
"djlint.maxBlankLines": 2,
"djlint.maxLineLength": 100,
"djlint.maxAttributeLength": 100,
"djlint.useVenv": false,
"djlint.pythonPath": "/opt/homebrew/Cellar/djlint/1.36.4/libexec/bin/python"
}
+1 -1
View File
@@ -79,7 +79,7 @@ pub fn configure_routes(state: AppState) -> Router<AppState> {
tracing::info_span!(
"request",
ip = %ip,
user = field::Empty, // vamos preencher depois (se der)
user = field::Empty, // filled by auth middleware
method = %req.method(),
uri = %req.uri(),
version = ?req.version(),