Newline Pending Merge

    @putout/plugin-remove-constant-conditions

    4.0.0 • Public • Published

    @putout/plugin-remove-constant-conditions NPM version

    🐊Putout plugin adds ability to find and remove constant conditions.

    Install

    npm i @putout/plugin-remove-constant-conditions -D
    

    Rule

    {
        "rules": {
            "remove-constant-conditions": "on"
        }
    }

    Example of incorrect code

    function hi(a) {
        if (2 < 3) {
            console.log('hello');
            console.log('world');
        }
    }

    Example of correct code

    function hi(b) {
        console.log('hello');
        console.log('world');
    }

    License

    MIT

    Install

    npm i @putout/plugin-remove-constant-conditions

    DownloadsWeekly Downloads

    6,025

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    4.91 kB

    Total Files

    4

    Last publish

    Collaborators

    • coderaiser