Skip to content

Commit

Permalink
tasks.json: add compound type-check and linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nbogie committed Aug 13, 2023
1 parent eef5c7d commit a53a248
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "type-check-and-lint",
"dependsOn": ["type-check", "lint"],
"dependsOrder": "sequence",
"group": {
"kind": "build",
"isDefault": true
}
},
{
//this is npm even if you're using yarn
"type": "npm",
Expand All @@ -13,8 +22,7 @@
"problemMatcher": "$tsc",
//make this the default build task (often mapped as ctrl-shift-b)
"group": {
"kind": "build",
"isDefault": true
"kind": "build"
},
//
"presentation": {
Expand All @@ -24,6 +32,19 @@
//comment this out if you are debugging this task
"reveal": "silent"
}
},
{
"type": "npm",
"script": "lint",
"group": {
"kind": "build"
},
"problemMatcher": ["$eslint-stylish"],
"label": "lint",
"presentation": {
"revealProblems": "onProblem",
"reveal": "silent"
}
}
]
}
Expand Down

0 comments on commit a53a248

Please sign in to comment.