@putout/plugin-remove-unused-for-of-variables
v3.0.1
Published
šPutout plugin adds ability to find and remove unused for-of variables
Downloads
59,159
Maintainers
Readme
@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 -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