Nutmeg Pumpkin Macchiato

    @wwwouter/tslint-contrib

    1.0.0 • Public • Published

    @wwwouter/tslint-contrib

    Add to tslint.json

    {
        "rulesDirectory": [
            "node_modules/@wwwouter/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 push
    

    License

    Copyright (c) 2018 Wouter Mooij.

    Licensed under the MIT License.

    Keywords

    none

    Install

    npm i @wwwouter/tslint-contrib

    DownloadsWeekly Downloads

    43

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • wwwouter