1.0.7 • Published 6 months ago

@waldronmatt/markdownlint-config v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Markdownlint Config

My personal shareable markdownlint configuration.

Install

yarn add -D markdownlint @waldronmatt/markdownlint-config

Usage

.markdownlint.json

{
  "extends": "./node_modules/@waldronmatt/markdownlint-config/index.json"
}

Extending

.markdownlint.json

{
  "extends": "./node_modules/@waldronmatt/markdownlint-config/index.json",
  "MD013": false,
}

Add an NPM Script

Running this command:

npm set-script lint:md "markdownlint --fix **/*.md --ignore node_modules --ignore **/CHANGELOG.md"

Will create:

package.json

"scripts": {
  "lint:md": "markdownlint --fix **/*.md --ignore node_modules --ignore **/CHANGELOG.md"
},

Add a Pre-commit Hook

lint-staged.config.js

module.exports = {
  '*.md': ['prettier --cache --write', 'markdownlint'],
};

Under The Hood

index.json

  • markdownlint-cli

License

MIT

1.0.7

6 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

0.2.0

2 years ago