@putout/plugin-remove-unreachable-code
putout plugin adds ability to find and remove unreachable code
Last updated 6 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-unreachable-code 
SYNC missed versions from official npm registry.

@putout/plugin-remove-unreachable-code NPM version Dependency Status

putout plugin adds ability to find and remove unreachable code.

Install

npm i @putout/plugin-remove-unreachable-code

Rule

{
    "rules": {
        "remove-unreachable-code": "on"
    }
}

❌ Incorrect code example

function hi() {
    return 'world';
    console.log('hello');
}

function log() {
    throw Error('error');
    console.log('hello');
}

✅ Correct code Example

function hi() {
    return 'world';
}

function log() {
    throw Error('error');
}

License

MIT

Current Tags

  • 3.0.0                                ...           latest (a year ago)

8 Versions

  • 3.0.0                                ...           a year ago
  • 2.2.0                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 8
Dependencies (0)
None
Dev Dependencies (9)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE