TSLint not working in VS Code TSLint not working in VS Code typescript typescript

TSLint not working in VS Code


tslint-react is a tslint extension which has to be installed separately: npm install -g tslint-react. After installing, reload your VS Code window, and linting should work.


How I found the problem: I copied your config file into a project, went to View > Output to check for errors from the tslint process, and saw this. (be sure to select tslint from the dropdown near the top right)

Invalid "extends" configuration value - could not require "tslint-react"


Include the dependency in the package.json

This is package.json and its working for me.

{  "name": "functions",  "scripts": {    "lint": "tslint --project tsconfig.json",    "build": "tsc",    "serve": "npm run build && firebase serve --only functions",    "shell": "npm run build && firebase experimental:functions:shell",    "start": "npm run shell",    "deploy": "firebase deploy --only functions",    "logs": "firebase functions:log"  },  "main": "lib/index.js",  "dependencies": {    "firebase-admin": "~5.11.0",    "firebase-functions": "^1.0.0"  },  "devDependencies": {    "tslint": "^5.8.0",    "typescript": "^2.5.3"  },  "private": true}


Add the following in package.json"lint": "tslint --project tslint.json" fixed the issue for me.