2.2.3 • Published 7 months ago

@ggascoigne/markdownlint-config v2.2.3

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

Markdownlint Config

My personal shareable markdownlint configuration.

Install

pnpm add -D markdownlint @ggascoigne/markdownlint-config

Usage

.markdownlint.json

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

Extending

.markdownlint.json

{
  "extends": "./node_modules/@ggascoigne/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

2.2.3

7 months ago

2.2.2

8 months ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago