@putout/plugin-convert-assignment-to-arrow-function
v1.2.0
Published
putout plugin adds ability convert assignment to arrow function
Downloads
56,414
Maintainers
Readme
@putout/plugin-convert-assignment-to-arrow-function
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