@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    15,517
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    15,517
  • 1.1.0
    3
  • 1.0.0
    0

Package Sidebar

Install

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

Weekly Downloads

15,520

Version

1.2.0

License

MIT

Unpacked Size

4.05 kB

Total Files

4

Last publish

Collaborators

  • coderaiser