@putout/plugin-convert-throw

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i @putout/plugin-convert-throw

Weekly Downloads

13,762

Version

1.0.1

License

MIT

Unpacked Size

3.36 kB

Total Files

4

Last publish

Collaborators

  • coderaiser