Skip to content

Latest commit

 

History

History
 
 

plugin-putout-config

@putout/plugin-putout-config NPM version

🐊Putout plugin helps with 🐊Putout Config.

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

❌ Example of incorrect code

{
    "rules": {
        "remove-unused-variables": true,
        "remove-debugger": false
    }
}

✅ Example of correct code

{
    "rules": {
        "remove-unused-variables": "on",
        "remove-debugger": "off"
    }
}

remove-empty

❌ Example of incorrect code

{
    "rules": {},
    "plugins": [],
    "match": {
        "*.js": {
            "remove-unused-variables": "off"
        }
    }
}

✅ Example of correct code

{
    "match": {
        "*.js": {
            "remove-unused-variables": "off"
        }
    }
}

License

MIT