5.0.0 β€’ Published 5 months ago

@putout/plugin-putout-config v5.0.0

Weekly downloads
1,210
License
MIT
Repository
github
Last release
5 months ago

@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/move-formatter-up": "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"
    }
}

move-formatter-up

Checkout in 🐊Putout Editor.

❌ Example of incorrect code

{
    "parser": "babel",
    "rules": {
        "remove-unused-variables": "off"
    },
    "formatter": "progress-bar"
}

βœ… Example of correct code

{
    "parser": "babel",
    "formatter": "progress-bar",
    "rules": {
        "remove-unused-variables": "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

5.0.0

5 months ago

4.1.0

6 months ago

4.0.0

6 months ago

4.2.0

6 months ago

3.0.0

11 months ago

2.0.0

2 years ago

1.2.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago