0.5.0 • Published 2 years ago
@kachkaev/markdownlint-config v0.5.0
@kachkaev → markdownlint config
Compatible with markdownlint-cli v0.23+.
To be used together with @kachkaev/prettier-config
.
See main.json
for rule details.
Adding to project
Install the package:
npm install -D @kachkaev/markdownlint-config ## or yarn add -D @kachkaev/markdownlint-config
Create
.markdownlint.json
with the following contents:{ "extends": "@kachkaev/markdownlint-config" }
Create
.markdownlintignore
. For example,########################### ## Specific to Markdownlint ########################### ## Ignore all files (but still allow sub-folder scanning) * !*/ ## Allow certain file types !*.md !*.mdx ######################## ## Same as in .gitignore ######################## # (paste lines from .gitignore here)
Optionally, configure package scripts and a pre-commit hook to make sure that all project files are always formatted. See example in
njt
→package.json
.