[英]Is there an ESLint rule that does the same as 'no-floating-promises' did in the now deprecated TSLint?
[英]How to ignore Jasmine promises when "no-floating-promises" in tslint is true
我对茉莉花期望使用void
关键字。 虽然有一些关于它有多合适的讨论: https : //github.com/palantir/tslint/issues/4653
void expect(1).toEqual(1) // Would not complain about this
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.