Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 734 Bytes

index.md

File metadata and controls

41 lines (29 loc) · 734 Bytes
title layout subtitle
TSLint
default
An extensible linter for the TypeScript language.

TSLint checks your TypeScript code for readability, maintainability, and functionality errors.

Getting Started

Local installation

$ npm install tslint typescript --save-dev

Global installation

$ npm install tslint typescript -g

Configuration

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.