TypeScript TSLint - assuring code quality and consistency Installation and setup


Example

To install tslint run command

npm install -g tslint

Tslint is configured via file tslint.json. To initialize default configuration run command

tslint --init

To check file for possible errors in file run command

tslint filename.ts