Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

remark-lint-heading-length

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-lint-heading-length

A remark-lint rule to check the length of headings.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 18 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts