{"id":34568921,"url":"https://github.com/nuxt-content/mdclint","last_synced_at":"2025-12-24T09:14:02.984Z","repository":{"id":328361185,"uuid":"905819540","full_name":"nuxt-content/mdclint","owner":"nuxt-content","description":"Lint Markdown and MDC files","archived":false,"fork":false,"pushed_at":"2025-12-22T01:30:09.000Z","size":262,"stargazers_count":31,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-23T12:57:08.774Z","etag":null,"topics":["content","markdown","mdc"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nuxt-content.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-19T15:29:25.000Z","updated_at":"2025-12-22T07:03:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nuxt-content/mdclint","commit_stats":null,"previous_names":["nuxt-content/mdclint"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/nuxt-content/mdclint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-content%2Fmdclint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-content%2Fmdclint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-content%2Fmdclint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-content%2Fmdclint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuxt-content","download_url":"https://codeload.github.com/nuxt-content/mdclint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxt-content%2Fmdclint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27999539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["content","markdown","mdc"],"created_at":"2025-12-24T09:14:02.500Z","updated_at":"2025-12-24T09:14:02.978Z","avatar_url":"https://github.com/nuxt-content.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MDC Lint\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![License][license-src]][license-href]\n\nLint Markdown and MDC files with [markdownlint](https://github.com/DavidAnson/markdownlint).\nMDC Lint ships a CLI and an ESLint flat-config plugin tuned for Nuxt Content style Markdown.\n\n- CLI with glob support and `--fix`\n- ESLint plugin with recommended rules for Markdown/MDC\n- Presets: `mdc` (default) with custom MDC rules, or `markdown` for plain Markdown\n- Respects existing `.markdownlint.*` config files and supplies sane defaults\n\n## Installation\n\n```bash\n# with npm\nnpm install -D mdclint\n\n# with pnpm\npnpm add -D mdclint\n```\n\n## CLI\n\nLint files directly from the terminal:\n\n```bash\nnpx mdclint \"content/**/*.md\"\n```\n\nOptions:\n\n- `--preset [mdc|markdown]` (default: `mdc`) — use MDC-specific rules or standard\nMarkdown rules only.\n- `--fix` — apply autofixable markdownlint suggestions in-place.\n\nThe CLI:\n\n- Accepts files or glob patterns and expands directories automatically.\n- Loads the first `.markdownlint.*` config it finds in the project root; if none exists,\nit uses a default config that disables some noisy markdownlint rules (e.g. `MD041`,\nline length checks via `MD013`) and enables MDC-specific rules (`MDC007`, `MDC018`, `MDC022`,\n`MDC023`, `MDC031`, `MDC032`, `MDC034`, `MDC058`).\n\nExamples:\n\n```bash\n# Lint all docs using the MDC preset\nnpx mdclint docs/**/*.md\n\n# Lint plain Markdown and apply fixes\nnpx mdclint README.md --preset markdown --fix\n```\n\n## ESLint Plugin (flat config)\n\nUse MDC Lint as part of your flat ESLint config:\n\n```js\n// eslint.config.mjs\nimport { createConfigForNuxt } from '@nuxt/eslint-config/flat'\nimport { mdcLint } from 'mdclint'\n\nexport default createConfigForNuxt({})\n  .append(await mdcLint({\n    files: ['content/**/*.md'],      // defaults to ['**/*.md']\n    preset: 'mdc',                   // or 'markdown'\n    config: { md013: { line_length: 100 } } // optional markdownlint overrides\n  }))\n```\n\nWhat the plugin provides:\n\n- Recommended rules under the `mdclint/*` namespace (all enabled as `error` by default).\n- A parser stub compatible with Markdown files.\n- Support for `.markdownlint.*` configs; pass `config` to override rules inline, or\n`preset: 'markdown'` to disable MDC-specific rules.\n\n## Configuration\n\n- MDC Lint will load the first `.markdownlint.*` file in your project root (`.yaml`, `.yml`, `.json`, `.js`, `.cjs`, etc.).\n- Built-in defaults loosen some markdownlint rules for content sites (e.g. allow\nmissing “first line is a top-level heading” requirement (`MD041`), loosen line length checks (`MD013`), and add MDC-specific checks).\nOverride any rule in your config or via the plugin’s `config` option.\n- Use `preset: 'markdown'` (CLI flag or plugin option) to lint plain Markdown without MDC custom rules.\n\n## Development\n\n```bash\npnpm install        # install dependencies\npnpm lint           # run ESLint\npnpm prepack        # build the package\n```\n\n## Related Projects\n\nMDC Lint is built on top of [markdownlint](https://github.com/DavidAnson/markdownlint)\nand inspired by:\n\n- [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli)\n- [eslint-plugin-markdownlint](https://github.com/paweldrozd/eslint-plugin-markdownlint)\n\n## License\n\n[MIT License](https://github.com/nuxt-content/mdclint/blob/main/LICENSE)\n\n\u003c!-- Badges --\u003e\n[npm-version-src]: https://img.shields.io/npm/v/mdclint/latest.svg?style=flat\u0026colorA=020420\u0026colorB=28CF8D\n[npm-version-href]: https://npmjs.com/package/mdclint\n\n[npm-downloads-src]: https://img.shields.io/npm/dm/mdclint.svg?style=flat\u0026colorA=020420\u0026colorB=28CF8D\n[npm-downloads-href]: https://npmjs.com/package/mdclint\n\n[license-src]: https://img.shields.io/github/license/nuxt-content/mdclint.svg?style=flat\u0026colorA=020420\u0026colorB=28CF8D\n[license-href]: https://github.com/nuxt-content/mdclint/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-content%2Fmdclint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuxt-content%2Fmdclint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxt-content%2Fmdclint/lists"}