How can I ignore a certain WebStorm inspection error?

后端 未结 2 1118
孤独总比滥情好
孤独总比滥情好 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:10

    This warning doesn't come from TSLint, so configuring TSLint won't help here. This is WebStorm own inspection error. You can either disable this inspection or suppress it for current statement: hit Alt+Enter on 'isDone', then hit Right and choose the appropriate action from the popup. See https://www.jetbrains.com/help/webstorm/2016.1/suppressing-inspections.html#1

提交回复
热议问题