Skip to content

Files

Latest commit

27b24e3 · Aug 30, 2022

History

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

eslint-plugin-tslint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 12, 2022
Jan 12, 2022
Aug 30, 2022
Jan 18, 2019
Jun 19, 2020
May 18, 2022
Aug 30, 2022
Jul 23, 2021
Jan 12, 2022
Jan 12, 2022

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