eslint-plugin-tslint-comments

0.1.0 • Public • Published

eslint-plugin-tslint-comments

Useful when migrating from tslint to eslint. Once tslint has been removed, this rule helps locate tslint annotations (e.g. // tslint:disable).

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-tslint-comments:

$ npm install eslint-plugin-tslint-comments --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-tslint-comments globally.

Usage

Add tslint-comments to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["tslint-comments"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "tslint-comments/forbid-all": 2
  }
}

Supported Rules

  • forbid-all: Identify tslint rule flags so that they can be removed

Package Sidebar

Install

npm i eslint-plugin-tslint-comments

Weekly Downloads

10

Version

0.1.0

License

MIT

Unpacked Size

3.24 MB

Total Files

36

Last publish

Collaborators

  • drewwyatt