@putout/plugin-convert-assignment-to-arrow-function
putout plugin adds ability convert assignment to arrow function
Last updated 4 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-convert-assignment-to-arrow-function 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 1.2.0                                ...           latest (4 years ago)

3 Versions

  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

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