How can I ignore a certain WebStorm inspection error?

后端 未结 2 1107
孤独总比滥情好
孤独总比滥情好 2021-01-17 22:24

Following tries do not work:

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

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

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


        
2条回答
  •  难免孤独
    2021-01-17 23:07

    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
    

提交回复
热议问题