Skip to content

Latest commit

 

History

History
 
 

plugin-remove-unused-expressions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@putout/plugin-remove-unused-expressions NPM version

🐊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