@putout/plugin-remove-unused-expressions
v9.0.0
Published
šPutout plugin adds ability to find and remove unused expressions
Downloads
60,305
Maintainers
Readme
@putout/plugin-remove-unused-expressions
šPutout plugin adds ability to find and remove unused expressions
, excluding directives: use strict
and use client
.
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