![](/img/trans.png)
[英]Throw tslint warning when use mockResolvedValueOnce and async/await
[英]How can i configure tslint to not throw warning when underscore in a variable name?
如何将 tslint 配置为在 typescript 中的变量名中下划线时不引发警告?
例如:
接口 MyInterface{ USER_ID:number }
这会抛出“变量名必须为 lowerCamelCase 或 UPPER_CASE”错误....我无法更改变量名....
您可以在 tslint.json 上使用规则变量名,或者更好地配置它以满足您的特定需求(有关详细信息,请参阅检查格式参数)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.