0.0.2 • Published 6 months ago

mdclint v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

MD Lint

MD Lint is a tool for linting Markdown and MDC files.

The package offers a CLI and a eslint plugin.

CLI

You can use the CLI to link your markdown files using npx mdclint.

npx mdclint content/**/*.md

ESLint Plugin

  • Install the plugin in your project
npm install mdclint
  • Add the plugin to your eslint config, for example in eslint.config.mjs
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
import { mdcLint } from 'mdclint'

export default createConfigForNuxt({})
  .append(mdcLint())
  • Run eslint
eslint .