@putout/plugin-remove-unused-for-of-variables
🐊Putout plugin adds ability to find and remove unused for-of variables
Last updated 2 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-unused-for-of-variables 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 3.0.1                                ...           latest (2 years ago)

6 Versions

  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (10)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE