$ npm install @putout/plugin-convert-assignment-to-arrow-function
putout
plugin adds ability to convert assignment to arrow function.
npm i @putout/plugin-convert-assignment-to-arrow-function -D
{
"rules": {
"convert-assignment-to-arrow-function": "on"
}
}
const createRegExp = (a) => RegExp(a, 'g');
const createRegExp = (a) => RegExp(a, 'g');
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE