Run ESLint on TypeScript files in VS Code

Published on September 10th, 2019

vscode icon

As of lately VS Code TSLint extension is being deprecated and TypeScript linting is moving to ESLint. When I was moving linting of this website to ESLint recently, I’ve encountered this weird problem. ESLint would just refuse to run on .ts or .tsx files. Problem was easily fixed by adding eslint.validate property to VS Code settings.json.

  // ...
  "eslint.validate": [
  // ...