npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@robeasthope/markdownlint-config

v1.1.1

Published

Shared markdownlint configuration for consistent Markdown formatting

Readme

@robeasthope/markdownlint-config

Shared markdownlint configuration for consistent Markdown formatting across projects.

📦 Installation

npm install --save-dev @robeasthope/markdownlint-config
# or
pnpm add -D @robeasthope/markdownlint-config
# or
yarn add -D @robeasthope/markdownlint-config

🚀 Usage

Option 1: Direct Extension (Recommended)

Create a .markdownlint-cli2.jsonc file in your project root:

{
  "config": {
    "extends": "@robeasthope/markdownlint-config",
  },
  "globs": ["**/*.{md,mdx}", "!**/node_modules/**", "!**/dist/**"],
}

Option 2: Extend in .markdownlint.json

Create or update .markdownlint.json:

{
  "extends": "@robeasthope/markdownlint-config"
}

Option 3: Package.json Configuration

Add to your package.json:

{
  "markdownlint-cli2": {
    "config": {
      "extends": "@robeasthope/markdownlint-config"
    },
    "globs": ["**/*.{md,mdx}"]
  }
}

📝 Configuration Details

This configuration enforces consistent Markdown formatting with sensible defaults:

Enabled Rules

  • MD003: ATX-style headings (# Heading)
  • MD007: Unordered list indentation (2 spaces)
  • MD040: Fenced code blocks must specify language
  • Default rules: All standard markdownlint rules enabled by default

Disabled Rules

  • MD013: Line length (disabled for flexibility)
  • MD024: Multiple headings with same content (only enforced for siblings)
  • MD029: Ordered list item prefix (flexible numbering)
  • MD031: Fenced code blocks surrounded by blank lines (disabled)
  • MD033: Inline HTML (allowed)
  • MD034: Bare URL detection (disabled)
  • MD036: Emphasis as heading (disabled)
  • MD041: First line heading requirement (disabled)
  • MD051: Link fragments (disabled)

🛠️ Customization

Override specific rules by extending the configuration:

{
  "config": {
    "extends": "@robeasthope/markdownlint-config",
    "MD013": { "line_length": 100 }, // Enable line length with custom limit
    "MD033": false, // Disable inline HTML
  },
}

📋 NPM Scripts

Add these scripts to your package.json:

{
  "scripts": {
    "lint:md": "markdownlint-cli2",
    "lint:md:fix": "markdownlint-cli2 --fix"
  }
}

Then run:

# Check Markdown files
pnpm lint:md

# Auto-fix issues
pnpm lint:md:fix

🔗 Integration

With Husky and lint-staged

Add to .lintstagedrc.json:

{
  "*.{md,mdx}": ["markdownlint-cli2 --fix"]
}

With VS Code

Install the markdownlint extension and the configuration will be automatically detected.

📖 Rule Reference

For detailed rule documentation, see:

🎯 Philosophy

This configuration aims to:

  1. Enforce consistency in heading styles and list formatting
  2. Allow flexibility in line length and HTML usage for documentation needs
  3. Prevent common errors like missing code fence language tags
  4. Stay unobtrusive by disabling overly strict rules

📁 Package Structure

packages/markdownlint-config/
├── .markdownlint.json      # Shared configuration
├── package.json
└── README.md

🤝 Contributing

Found an issue or want to suggest a rule change? Please open an issue in the repository.

📄 License

MIT License - see LICENSE file in the root directory.

This software is provided "as is", without warranty of any kind. Use at your own risk.