Added tasks

This commit is contained in:
DaanV2
2021-03-21 15:06:21 +01:00
parent b0f2a36e9a
commit d9aa4d9e60
3 changed files with 28 additions and 0 deletions

11
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,11 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Format workspace",
"command": "Powershell.exe -executionpolicy remotesigned -File ./scripts/format_documents.ps1",
"problemMatcher": "$tsc"
}
]
}

View File

@@ -0,0 +1,8 @@
git add .
git commit
npx prettier --write "source/**/*.json" --config ./scripts/json.prettierrc.json
git submodule foreach git add **/*.json
git submodule foreach git commit -m "auto: Formatted json files"
git add **/*.json
git commit -m "auto: Formatted json files"

View File

@@ -0,0 +1,9 @@
{
"tabWidth": 2,
"printWidth": 180,
"useTabs": false,
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "crlf",
"embeddedLanguageFormatting": "auto"
}