Itgalaxy’s remark sharable preset for linting markdown.
You'll first need to install remark-cli and remark-lint:
$ npm i remark-cli remark-lint --save-dev
Next, install remark-preset-lint-itgalaxy
:
$ npm install remark-preset-lint-itgalaxy --save-dev
Configurations do not contain stylistic rules. We use prettier for this purpose.
Add preset to package.json
:
{
"remarkConfig": {
"presets": ["remark-preset-lint-itgalaxy"]
}
}
Run lint:
node_modules/.bin/remark .