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