remark preset to configure remark-lint with our conventions
$ npm install remark remark-cli @gaincompliance/remark-preset-lint --save-dev
Add to the project's .remarkrc.js
:
exports.plugins = ['@gaincompliance/remark-preset-lint'];
Add an npm script that will run as part of npm test
:
"lint:md": "remark --frail ."
$ nvm install
$ npm install
$ npm test