$ npm install @putout/plugin-remove-unused-for-of-variables
🐊Putout plugin adds ability to find and remove unused
for-of
variables
. Merged to @putout/plugin-for-of
.
npm i @putout/plugin-remove-unused-for-of-variables -D
{
"rules": {
"remove-unused-for-of-variables": "on"
}
}
for (const {a, b} of c) {
console.log(a);
}
for (const {a} of c) {
console.log(a);
}
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE