tslint 0,4,4,3,-8 grunt npm

:vertical_traffic_light: An extensible linter for the TypeScript language

NPM version Downloads Circle CI Join the chat at https://gitter.im/palantir/tslint


TSLint is an extensible static analysis tool that checks TypeScript code for readability, maintainability, and functionality errors. It is widely supported across modern editors & build systems and can be customized with your own lint rules, configurations, and formatters.

TSLint supports:

Installation & Usage

Refer to the full installation & usage documentation on the TSLint website.

There, you’ll find information about - configuration, - core rules, - core formatters, and - customization of TSLint.

Custom Rules

Custom rule sets from Palantir

Custom rule sets from the community

If we don’t have all the rules you’re looking for, you can either write your own custom rules or use custom rules that others have developed. The repos below are a good source of custom rules:



  • node v7
  • yarn v0.18

Quick Start

git clone [email protected]:palantir/tslint.git --config core.autocrlf=input --config core.eol=lf
yarn install
yarn compile
yarn test

Creating a new release

  1. Bump the version number in package.json and src/tslintMulti.ts
  2. Add release notes in CHANGELOG.md
  3. yarn verify to build the latest sources
  4. Commit with message Prepare release <version>
  5. Run npm publish
  6. Create a git tag for the new release and push it (see existing tags here)

Related Repositories



:tada: An Angular Starter kit featuring Angular 4 (Router, Http, Forms, Services, Tests, E2E, Dev/Prod, HMR, Async/Lazy Routes, AoT via ngc), Karma, Protractor, Jasmine, Istanbul, TypeScript 2, TsLint, Codelyzer, Hot Module Replacement, @types, and Webpac ...



:vertical_traffic_light: An extensible linter for the TypeScript language ...



Improve your TSLint with the missing ESLint rules ...



Shared TSLint & codelyzer rules to enforce a consistent code style for Angular development ...



:orange_book: Lint rules related to React & JSX for TSLint. ...

Top Contributors

ashwinr adidahiya JKillian gscshoyru DickvdBrink leeavital YuichiNukiyama weswigham michaelgmiller chrismbarr derekcicerone am11 fent JoshuaKGoldberg thmiceli nomaed xt0rted HamletDRC ScottSWu gtanner mprobst vvakame myitcv danvk mmv patsissons neoGeneva wereHamster yyoshiki41 IllusionMH


package version
babel-code-frame ^6.22.0
colors ^1.1.2
commander ^2.9.0
diff ^3.2.0
glob ^7.1.1
minimatch ^3.0.4
resolve ^1.3.2
semver ^5.3.0
tslib ^1.7.1
tsutils ^2.7.1
dev @types/babel-code-frame ^6.20.0
@types/chai ^3.5.0
@types/colors ^1.1.3
@types/commander ^2.9.0
@types/diff ^3.2.0
@types/glob ^5.0.30
@types/js-yaml ^3.5.31
@types/minimatch ^2.0.29
@types/mocha ^2.2.35
@types/node ^7.0.29
@types/resolve ^0.0.4
@types/semver ^5.3.30
chai ^3.5.0
github ^8.2.1
js-yaml ^3.7.0
json-stringify-pretty-compact ^1.0.3
mocha ^3.2.0
npm-run-all ^4.0.2
nyc ^10.2.0
rimraf ^2.5.4
tslint ^5.5.0
tslint-test-config-non-relative file:test/external/tslint-test-config-non-relative
typescript ~2.4.1
peer typescript >=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-d


-   v0.1.1 zip tar
-   3.15.1 zip tar
-   3.15.0 zip tar
-   3.15.0-dev.0 zip tar
-   3.14.0 zip tar
-   3.14.0-dev.1 zip tar
-   3.14.0-dev.0 zip tar
-   3.13.0 zip tar
-   3.13.0-dev.0 zip tar
-   3.12.1 zip tar
-   3.12.0 zip tar
-   3.12.0-dev.2 zip tar
-   3.12.0-dev.1 zip tar
-   3.12.0-dev.0 zip tar
-   3.11.0 zip tar
-   3.11.0-dev.0 zip tar
-   3.10.2 zip tar
-   3.10.1 zip tar
-   3.10.0 zip tar
-   3.10.0-dev.3 zip tar
-   3.10.0-dev.2 zip tar
-   3.10.0-dev.1 zip tar
-   3.10.0-dev.0 zip tar
-   3.9.0 zip tar
-   3.9.0-dev.0 zip tar
-   3.8.1 zip tar
-   3.8.0 zip tar
-   3.8.0-dev.1 zip tar
-   3.8.0-dev.0 zip tar
-   3.7.4 zip tar