Socket
Book a DemoInstallSign in
Socket

@typescript-eslint/eslint-plugin-tslint

Package Overview
Dependencies
Maintainers
1
Versions
3308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/eslint-plugin-tslint

TSLint wrapper plugin for ESLint

Source
npmnpm
Version
1.1.1-alpha.11
Version published
Weekly downloads
231K
-2.31%
Maintainers
1
Weekly downloads
 
Created
Source

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"
  ],
  "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)
      ]
    }],
  }
}

Rules

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

Examples

TSLint Plugins

Keywords

eslint

FAQs

Package last updated on 29 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts