tslint 注释使用

官方文档:https://palantir.github.io/tslint/usage/rule-flags/

注释以下的代码不使用:/* tslint:disable */

注释以下的代码使用:/* tslint:enable */

Disable the listed rules for the rest of the file:/* tslint:disable:rule1 rule2 rule3... */

Enable the listed rules for the rest of the file:/* tslint:enable:rule1 rule2 rule3... */

Disables all rules for the following line:// tslint:disable-next-line

Disables all rules for the current line:someCode(); // tslint:disable-line

Disables the listed rules for the next line:// tslint:disable-next-line:rule1 rule2 rule3...

你可能感兴趣的:(tslint 注释使用)