Now formatted correctly with eslint

This commit is contained in:
2026-03-04 00:41:02 +01:00
parent ad0e28bf84
commit 4e95ae77c5
99 changed files with 3231 additions and 1464 deletions

View File

@@ -7,8 +7,11 @@
}
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
// "editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
}
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
@@ -23,5 +26,5 @@
"prettier.printWidth": 150,
"prettier.singleAttributePerLine": true,
"prettier.htmlWhitespaceSensitivity": "css",
"prettier.tabWidth": 4
"prettier.tabWidth": 2
}

62
.vscode/tasks.json vendored
View File

@@ -1,41 +1,39 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "Changes detected"
},
"endsPattern": {
"regexp": "bundle generation (complete|failed)"
}
}
}
"label": "Sort Template Properties",
"type": "shell",
"command": "node",
"args": [
"tools/sort-template-properties.js",
"${file}"
],
"presentation": {
"reveal": "silent",
"panel": "shared"
},
"runOptions": {
"runOn": "folderOpen"
},
"problemMatcher": []
},
{
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "Changes detected"
},
"endsPattern": {
"regexp": "bundle generation (complete|failed)"
}
}
"label": "Format HTML on Save",
"type": "shell",
"command": "npx",
"args": [
"prettier",
"--write",
"${file}"
],
"presentation": {
"reveal": "silent",
"panel": "shared"
},
"problemMatcher": [],
"runOptions": {
"runOn": "folderOpen"
}
}
]