@putout/plugin-convert-throw
putout plugin adds ability to convert throw statement into throw expression
Last updated 7 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-convert-throw 
SYNC missed versions from official npm registry.

putout-plugin-convert-throw NPM version Dependency Status

putout plugin adds ability convert throw statement into throw expression.

Install

npm i @putout/plugin-convert-throw -D

Rule

{
    "rules": {
        "convert-throw": true
    }
}

❌ Incorrect code example

const fn = () => {throw Error('hello')};

✅ Correct code Example

const fn = () => throw Error('hello');

License

MIT

Current Tags

  • 3.0.0                                ...           latest (5 months ago)

4 Versions

  • 3.0.0                                ...           5 months ago
  • 2.0.0                                ...           10 months ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 3
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

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