3.0.1 β’ Published 3 years ago
@putout/plugin-remove-unused-for-of-variables v3.0.1
@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.
Install
npm i @putout/plugin-remove-unused-for-of-variables -DRule
{
"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