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:
Then configure the rules you want to use under the rules section.
Supported Rules
- forbid-all: Identify tslint rule flags so that they can be removed