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...

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容