@laboratoria/mdlint

1.2.3 • Public • Published

@laboratoria/mdlint

CLI tool to lint your markdown files using the markdownlint module.

Node.js CI

Installation

Globally:

npm i -g @laboratoria/mdlint

In your project:

npm i --save-dev @laboratoria/mdlint

Once you have installed it in your project you can add a task in your package.json to run the linter:

{
  "name": "your-package",
  "version": "0.0.0",
  "scripts": {
    "lint": "mdlint ."
  },
  "devDependencies": {
    "@laboratoria/mdlint": "^1.0.2"
  }
}

This will allow you to run the linter like this:

npm run lint

Usage

$ mdlint --help
Usage:

  mdlint [path1] [path2] ...

Options:

  -c, --config   Path to config file. Default: '.mdlintrc'
  -i, --ignore   Path to file with patterns to ignore. Default: '.mdlintignore'
  -v, --verbose  Show verbose output.
  -h, --help     Show this help.
  -V, --version  Show mdlint version.

Laboratoria 2017

Configuration

.mdlintrc

{
  "default": true,
  "ul-style": { "style": "sublist" },
  "no-duplicate-header": false
}

.mdlintignore

node_modules/
bower_components/

Readme

Keywords

none

Package Sidebar

Install

npm i @laboratoria/mdlint

Weekly Downloads

87

Version

1.2.3

License

Apache-2.0

Unpacked Size

6.29 kB

Total Files

3

Last publish

Collaborators

  • mfdebian
  • bouli
  • lupomontero