How can I ignore some WebStorm validation error?

The following attempts do not work:

/* tslint:disable:"no-unused-variable" */ /* tslint:disable:'no-unused-variable' */ /* tslint:disable:no-unused-variable */ 

enter image description here

Perhaps Webstorm has other linting mechanisms running in the background? How to disable them, so only tslint is active?

EDIT: the desired solution would be to do this at the source code level without configuring any IDE parameters.

+7
webstorm typescript rule
source share
2 answers

This warning does not come from TSLint, so setting up TSLint will not help here. This is an error checking your own WebStorm. You can disable this check or suppress it for the current operator: press Alt + Enter on "isDone", then press "Right" and select the appropriate action from the pop-up window. See https://www.jetbrains.com/help/webstorm/2016.1/suppressing-inspections.html#1

+6
source share

You can do it with

 //noinspection JSUnusedGlobalSymbols 

in Webstorm version 2016.3

To get this code, I used:

 ALT + Enter Select "Remove unused constant 'xxx'" but dont Enter Arrow right Suppress for statement 

Suppress for operator

+3
source share

All Articles