mdclint
Version:
Markdown Linting
45 lines (28 loc) • 958 B
Markdown
# MD Lint
MD Lint is a tool for linting Markdown and MDC files based on [markdownlint](https://github.com/DavidAnson/markdownlint).
The package offers a CLI and a eslint plugin.
## CLI
You can use the CLI to link your markdown files using `npx mdclint`.
```bash
npx mdclint content/**/*.md
```
## ESLint Plugin
- Install the plugin in your project
```bash
npm install mdclint
```
- Add the plugin to your eslint config, for example in `eslint.config.mjs`
```js
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
import { mdcLint } from 'mdclint'
export default createConfigForNuxt({})
.append(mdcLint())
```
- Run eslint
```bash
eslint .
```
## Related Projects
MDCLint is built on top of [markdownlint](https://github.com/DavidAnson/markdownlint) and inspired by:
- [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli)
- [eslint-plugin-markdownlint](https://github.com/paweldrozd/eslint-plugin-markdownlint)