3rd June, 2020

TypeScript syntax checking in VS Code

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "TSC Watch",
            "command": "./node_modules/typescript/bin/tsc",
            "type": "shell",
            "args": ["-w", "--noEmit", "-p", "."],
            "presentation": {
                "echo": true,
                "reveal": "always",
                "revealProblems": "onProblem",
                "focus": false,
                "panel": "shared",
                "showReuseMessage": true,
                "clear": false
            },
            "isBackground": true,
            "problemMatcher": "$tsc-watch"
        }
    ]
}

 

The opinions expressed here are my own and not those of my employer.