remark-lint-heading-length

1.0.0 • Public • Published

remark-lint-heading-length

This rule for remark-lint enforces that heading have a certain number of words. By default, heading must have at least 2 words and at most 10. You can configure this length like this:

{
    "plugins": [
        "remark-preset-lint-recommended",
        ["remark-lint-heading-length", ["error", {
            "min": 3,
            "max": 12
        }]]
    ]
}

This would enforce at least 3 and at most 12 words within the heading of your Markdown files.

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i remark-lint-heading-length

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • zerok