npm.io
12.1.0 • Published 7 months ago

@putout/plugin-remove-unused-expressions

Licence
MIT
Version
12.1.0
Deps
0
Size
6 kB
Vulns
0
Weekly
0
Stars
797

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

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

Keywords