Added tasks
This commit is contained in:
11
.vscode/tasks.json
vendored
Normal file
11
.vscode/tasks.json
vendored
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
8
scripts/format_documents.ps1
Normal file
8
scripts/format_documents.ps1
Normal 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"
|
||||
9
scripts/json.prettierrc.json
Normal file
9
scripts/json.prettierrc.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"tabWidth": 2,
|
||||
"printWidth": 180,
|
||||
"useTabs": false,
|
||||
"bracketSpacing": true,
|
||||
"arrowParens": "always",
|
||||
"endOfLine": "crlf",
|
||||
"embeddedLanguageFormatting": "auto"
|
||||
}
|
||||
Reference in New Issue
Block a user