putout-plugin-madrun

putout
plugin adds ability to convert class components to react hooks.
Install
npm i putout @putout/plugin-madrun -D
Add .putout.json
with:
{
"plugins": [
"madrun"
]
}
Rules
All Rules of madrun
is enabled by default, to disable any of them modify .putout.json
:
{
"rules": {
"madrun/add-function": true
}
}
Example
Consider example of .madrun.js
:
module.exports = {
'hello': 'world'
};
After putout --fix
transform, you will receive:
module.exports = {
'hello': () => 'world'
};
License
MIT