.vscode/tasks.json
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
{
"version": "0.1.0",
"command": "npm",
"isShellCommand": true,
"suppressTaskName": true,
"tasks": [
{
"taskName": "lint",
"args": ["run", "lint"],
"showOutput": "always",
"problemMatcher": "$eslint-stylish",
"isBuildCommand": true
},
{
"taskName": "test",
"args": ["run", "test"],
"showOutput": "always",
"isTestCommand": true
}
]
}