@putout/plugin-putout-config

putout plugin helps to maintain putout config

Usage no npm install needed!

<script type="module">
  import putoutPluginPutoutConfig from 'https://cdn.skypack.dev/@putout/plugin-putout-config';
</script>

README

@putout/plugin-putout-config NPM version

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

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

✅ Correct code Example

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

License

MIT