1.0.0 • Published 5 years ago
@expresswebjs/tslint-contrib v1.0.0
@expressweb/tslint-contrib
Add to tslint.json
{
"rulesDirectory": [
"node_modules/@expressweb/tslint-contrib",
],
"rules": {
"no-promise-as-boolean": true,
}
}Rule(s)
no-promise-as-boolean
Checks for unresolved Promises in boolean expressions.
For example where this.isTrue() returns a Promise, this violates the rule:
if(this.isTrue()){
}This doesn't:
if(await this.isTrue()){
}Update version
npm version major|minor|patch
npm publish --access=public
git pushLicense
Copyright (c) 2018 Wouter Mooij.
Licensed under the MIT License.
1.0.0
5 years ago