npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

@typescript-eslint/eslint-plugin-tslint

2.3.0 • Public • Published

ESLint Plugin TSLint

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

Azure Pipelines GitHub license NPM Version NPM Downloads Commitizen friendly

Installation

npm i @typescript-eslint/eslint-plugin-tslint --save-dev

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

install

npm i @typescript-eslint/eslint-plugin-tslint

Downloadsweekly downloads

31,423

version

2.3.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability