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

3.0.1 • Public • Published

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

🐊Putout plugin adds ability to find and remove unused for-of variables. Merged to @putout/plugin-for-of.

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

Package Sidebar

Install

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

Weekly Downloads

14,663

Version

3.0.1

License

MIT

Unpacked Size

6.48 kB

Total Files

4

Last publish

Collaborators

  • coderaiser