美文网首页
tslint 注释使用

tslint 注释使用

作者: mn_li | 来源:发表于2019-03-28 16:17 被阅读0次

官方文档: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 注释使用

      本文链接:https://www.haomeiwen.com/subject/bsxcbqtx.html