1.1.7 • Published 10 months ago

@schoero/markdownlint-config v1.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

markdownlint-config

Personal markdownlint config

Key features

  • Linting and autofixing markdown files

Installation

npm i --save-dev @schoero/markdownlint-config

Usage

Create a .markdownlint.jsonc file with the following content:

{
  "extends": "@schoero/markdownlint-config"
}

VSCode integration

For automatic code formatting on save, install the markdownlint extension.

To recommend the extension in your repository create a .vscode/extensions.json with the following content:

{
  "recommendations": [
    "DavidAnson.vscode-markdownlint"
  ]
}

To configure the extension properly, create a .vscode/settings.json with the following content:

{
  "[markdown]": {
    "editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
    "editor.formatOnSave": true
  },
  "editor.codeActionsOnSave": {
    "source.fixAll.markdownlint": true
  }
}

If you want to have linting scripts, you can use something like this in the package.json:

{
  "scripts": {
    "markdownlint": "node_modules/markdownlint-cli2/markdownlint-cli2.js '**/*.md' '#node_modules'",
    "markdownlint:ci": "npm run markdownlint",
    "markdownlint:fix": "node_modules/markdownlint-cli2/markdownlint-cli2-fix.js '**/*.md' '#node_modules'"
  }
}
1.1.7

10 months ago

1.1.6

12 months ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago