Shared markdownlint config for consistent Markdown style.
- Either
markdownlint-cli20.23 ormarkdownlint-cli0.49 is a peer dependency and must be installed in your project. - You only need the CLI you use. Both peer dependencies are optional.
Install the config with the CLI of your choice.
pnpm add -D markdownlint-cli2 @dnd-mapp/config-markdownpnpm add -D markdownlint-cli @dnd-mapp/config-markdownFor markdownlint-cli2, extend the config from a .markdownlint-cli2.yaml file in your project root.
config:
extends: "@dnd-mapp/config-markdown"For markdownlint-cli, extend it from a .markdownlint.yaml file instead.
extends: "@dnd-mapp/config-markdown"Rules that you set next to extends override the shared ones.
| Config | Extends path | Description |
|---|---|---|
base |
@dnd-mapp/config-markdown/base |
The default config for any project |
The package root, @dnd-mapp/config-markdown, resolves to base.
The config enables every default rule of markdownlint and changes the following.
| Rule | Setting | Description |
|---|---|---|
MD007 |
indent: 4 |
Indents nested list items by 4 spaces |
MD013 |
false |
Turns off the line length check for wrapped text |
MD024 |
siblings_only: true |
Allows repeated headings under different parents |
MD060 |
style: aligned |
Requires table pipes to line up |
The config does not set globs or gitignore. These are options of markdownlint-cli2, so set them in your own .markdownlint-cli2.yaml file.
Notable changes for consumers of this package are listed in the changelog.
Contributions are welcome. See the contributing guide for details.
MIT © D&D Mapp