8.0.0 β’ Published 4 months ago
@putout/plugin-remove-unused-expressions v8.0.0
@putout/plugin-remove-unused-expressions
πPutout plugin adds ability to find and remove unused expressions
.
Install
npm i @putout/plugin-remove-unused-expressions -D
Rule
{
"rules": {
"remove-unused-expressions": "on"
}
}
β Example of incorrect code
function show(error) {
showError;
}
β Example of correct code
function show(error) {}
License
MIT