The Wayback Machine - https://web.archive.org/web/20200615034651/https://github.com/palantir/tslint
Skip to content
🚦 An extensible linter for the TypeScript language
TypeScript Other
Branch: master
Clone or download

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci chore: bump supported versions of Node and TypeScript in CI (#4916) Mar 5, 2020
.github chore: use bug report template for all issues (#4927) Apr 18, 2020
.vscode Remove .vscode/settings.json git.ignoreLimitWarning (#4766) Jun 18, 2019
bin [New rule] add fileNameCasing rule (#3978) Jun 26, 2018
docs docs: tweak index page deprecation notice May 26, 2020
scripts Prepare v5.17.0 (#4751) May 30, 2019
src Prepare release v6.1.2 Apr 27, 2020
test Upgrade to TypeScript 3.8 (#4915) Mar 10, 2020
.editorconfig Switch to tslint-plugin-prettier, clean up rule options config syntax ( Feb 2, 2019
.gitattributes object-literal-sort-keys: don't consider \r\n as two line breaks (#3427) Oct 31, 2017
.gitignore Switch to tslint-plugin-prettier, clean up rule options config syntax ( Feb 2, 2019
.npmignore Use CircleCI 2.0 (#3490) Nov 15, 2017
.nycrc [enhancement] Update devDependency nyc from v13.3.0 to v14.1.1 (#4699) May 16, 2019
.prettierrc Add prettierrc (#4637) Apr 7, 2019
CHANGELOG.md Prepare release v6.1.2 Apr 27, 2020
LICENSE Update LICENSE (#1705) Nov 10, 2016
README.md docs: More prominent deprecation notice in README.md (#4906) Jan 6, 2020
package.json Prepare release v6.1.2 Apr 27, 2020
tslint-vscode.json Prepare v5.17.0 (#4751) May 30, 2019
tslint.json Add strict-comparisons Rule (#4519) Jun 16, 2019
yarn.lock Bump mkdirp dependency to 0.5.3 (#4918) Mar 18, 2020

README.md

NPM version Downloads Dependency Status devDependency Status peerDependency Status Circle CI

TSLint

⚠️ TSLint is deprecated.

See this issue for more details: Roadmap: TSLint → ESLint. If you're interested in helping with the TSLint/ESLint migration, please check out our OSS Fellowship program.

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 currently supports:

Installation & Usage

Please refer to the full installation & usage documentation on the TSLint website. There, you'll find information about

TSLint Playground

There is a sandbox environment for TSLint at palantir.github.io/tslint-playground, which can be used to test rules and see how TSLint works. Issues can be filed against tslint-playground here.

Custom Rules & Plugins

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 rules implementations developed by the community. The repos below are a good source of custom rules:

Development

Prerequisites:

  • node v7+
  • yarn v1.0+

Quick Start

git clone git@github.com:palantir/tslint.git --config core.autocrlf=input --config core.eol=lf
yarn
yarn compile
yarn test
You can’t perform that action at this time.