@putout/plugin-convert-assignment-to-arrow-function

1.2.0 • Public • Published

@putout/plugin-convert-assignment-to-arrow-function NPM version Dependency Status

putout plugin adds ability to convert assignment to arrow function.

Install

npm i @putout/plugin-convert-assignment-to-arrow-function -D

Rule

{
    "rules": {
        "convert-assignment-to-arrow-function": "on"
    }
}

Incorrect code example

const createRegExp = (a) => RegExp(a, 'g');

Correct code Example

const createRegExp = (a) => RegExp(a, 'g');

License

MIT

Package Sidebar

Install

npm i @putout/plugin-convert-assignment-to-arrow-function

Weekly Downloads

14,628

Version

1.2.0

License

MIT

Unpacked Size

4.05 kB

Total Files

4

Last publish

Collaborators

  • coderaiser