Notify President Madagascar
    Have ideas to improve npm?Join in the discussion! »

    @putout/plugin-remove-useless-arguments

    5.1.0 • Public • Published

    @putout/plugin-remove-useless-arguments NPM version Dependency Status

    putout plugin adds ability to find and remove useless arguments.

    Install

    npm i @putout/plugin-remove-useless-arguments
    

    Rule

    {
        "rules": {
            "remove-useless-arguments/arguments": "on",
            "remove-useless-arguments/destructuring": "on"
        }
    }

    Incorrect code example

    // destructuring
    onIfStatement({
        push,
        generate,
        abc,
        helloworld,
    });
    
    function onIfStatement({push}) {
    }
    
    // arguments
    sum(a, b, c);
    
    const sum = (a, b) => {};

    Correct code Example

    // destructuring
    onIfStatement({
        push,
    });
    
    function onIfStatement({push}) {
    }
    
    // arguments
    sum(a, b, c);
    
    const sum = (a, b) => {};

    License

    MIT

    Install

    npm i @putout/plugin-remove-useless-arguments

    DownloadsWeekly Downloads

    1,881

    Version

    5.1.0

    License

    MIT

    Unpacked Size

    7.65 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar