@putout/plugin-putout-config
putout
plugin helps with putout
plugins development.
Install
npm i @putout/plugin-putout-config -D
Rules
{
"rules": {
"putout-config/convert-boolean-to-string": "on",
"putout-config/remove-empty": "on"
}
}
convert-boolean-to-string
❌ Incorrect code example
{
"rules": {
"remove-unused-variables": true,
"remove-debugger": false
}
}
✅ Correct code Example
{
"rules": {
"remove-unused-variables": "on",
"remove-debugger": "off"
}
}
remove-empty
❌ Incorrect code example
{
"match": {
"*.js": {
"remove-unused-variables": "off"
}
}
}
✅ Correct code Example
{
"match": {
"*.js": {
"remove-unused-variables": "off"
}
}
}
License
MIT