@putout/plugin-remove-unused-for-of-variables

putout plugin adds ability to find and remove unused for-of variables

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@putout/plugin-remove-unused-for-of-variables
36503.0.05 months ago2 years agoMinified + gzip package size for @putout/plugin-remove-unused-for-of-variables in KB

Readme

@putout/plugin-remove-unused-for-of-variables !NPM versionNPMIMGURLNPMURL
šŸŠPutout plugin adds ability to find and remove unused for-of variables.

Install

npm i @putout/plugin-remove-unused-for-of-variables -D

Rule

{
    "rules": {
        "remove-unused-for-of-variables": "on"
    }
}

āŒ Example of incorrect code

for (const {a, b} of c) {
    console.log(a);
}

āœ… Example of correct code

for (const {a} of c) {
    console.log(a);
}

License

MIT