title | layout | subtitle |
---|---|---|
TSLint |
default |
An extensible linter for the TypeScript language. |
TSLint checks your TypeScript code for readability, maintainability, and functionality errors.
$ npm install tslint typescript --save-dev
$ npm install tslint typescript -g
Generate a skeleton tslint.json
config file with the --init
CLI flag:
cd path/to/project
tslint --init
Lint your TypeScript files!
// provide globs as strings
tslint -c path/to/tslint.json 'path/to/project/**/*.ts'
Check out the full usage guide to learn more.