@ggascoigne/markdownlint-config
v2.2.4
Published
A shareable markdownlint configuration for projects.
Downloads
14
Maintainers
Readme
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