putout-plugin-madrun

putout
plugin adds ability to fix issues with madrun config file.
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": false,
"madrun/call-run": false,
"madrun/rename-series-to-run": false,
}
}
Example
Consider example of .madrun.js
:
module.exports = {
'hello': 'world'
};
After putout --fix
transform, you will receive:
module.exports = {
'hello': () => 'world'
};
License
MIT