Skip to content

Files

Latest commit

c473780 · Nov 9, 2020

History

History
This branch is 4117 commits behind typescript-eslint/typescript-eslint:main.

eslint-plugin-tslint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 2, 2020
May 21, 2020
Nov 9, 2020
Jan 18, 2019
Jun 19, 2020
Jun 29, 2020
Nov 9, 2020
Oct 15, 2020
Oct 15, 2020

ESLint Plugin TSLint

ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint.

CI NPM Version NPM Downloads

Installation

yarn add -D @typescript-eslint/eslint-plugin-tslint

Usage

Configure in your ESLint config file:

{
  "plugins": [
    "@typescript-eslint/tslint"
  ],
  "parserOptions": {
      "project": "tsconfig.json",
  },
  "rules": {
    "@typescript-eslint/tslint/config": ["warn", {
      "lintFile": "", // path to tslint.json of your project
      "rules": {
        // tslint rules (will be used if `lintFile` is not specified)
      },
      "rulesDirectory": [
        // array of paths to directories with rules, e.g. 'node_modules/tslint/lib/rules' (will be used if `lintFile` is not specified)
      ]
    }],
  }
}

Note: The ability to automatically fix problems with --fix is unavailable for TSLint rules loaded with this plugin.

Rules

Plugin contains only single rule @typescript-eslint/tslint/config.

Examples

TSLint Plugins

Contributing

See the contributing guide here