@putout/plugin-remove-unused-for-of-variables
🐊Putout plugin adds ability to find and remove unused for-of variables
Last updated 4 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 with @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.3                                ...           latest (4 months ago)

8 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |