{"library":"remark-lint-mdx-jsx-self-close","title":"remark-lint-mdx-jsx-self-close","description":"A remark-lint rule that warns when closing tags are used for empty MDX JSX elements, enforcing self-closing syntax where possible. Current stable version is 1.0.1, released as part of the remark-lint monorepo. ESM-only, requires Node.js 16+. Ships TypeScript types. Part of the unified/remark ecosystem for linting Markdown and MDX files. Differentiates from general JSX linting by focusing specifically on MDX syntax and leveraging remark's AST.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-mdx-jsx-self-close"],"cli":null},"imports":["import remarkLintMdxJsxSelfClose from 'remark-lint-mdx-jsx-self-close'","import remarkLintMdxJsxSelfClose from 'remark-lint-mdx-jsx-self-close'","import type { Plugin } from 'unified'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import remarkLint from 'remark-lint'\nimport remarkLintMdxJsxSelfClose from 'remark-lint-mdx-jsx-self-close'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport { unified } from 'unified'\nimport { reporter } from 'vfile-reporter'\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintMdxJsxSelfClose)\n  .use(remarkStringify)\n  .process('<a href=\"https://example.com\"></a>')\n\nconsole.error(reporter(file))","lang":"typescript","description":"Demonstrates how to use the rule with the unified pipeline to lint MDX JSX self-closing tags.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}