{"library":"remark-lint-mdx-jsx-shorthand-attribute","title":"remark-lint-mdx-jsx-shorthand-attribute","description":"A remark-lint rule that warns when verbose boolean attribute values (like `planet={true}`) are used in MDX JSX, enforcing shorthand syntax (`planet`). Version 1.0.0 stable release, part of the remark-lint ecosystem. ESM-only, requires Node 16+. Differentiators: focused MDX-specific linting, no configuration needed. Alternative to general remark-lint rules without MDX awareness.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-mdx-jsx-shorthand-attribute"],"cli":null},"imports":["import remarkLintMdxJsxShorthandAttribute from 'remark-lint-mdx-jsx-shorthand-attribute'","import remarkLintMdxJsxShorthandAttribute from 'remark-lint-mdx-jsx-shorthand-attribute'","import type { Plugin } from 'unified'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { read } from 'to-vfile';\nimport { reporter } from 'vfile-reporter';\nimport { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkLintMdxJsxShorthandAttribute from 'remark-lint-mdx-jsx-shorthand-attribute';\n\nconst file = await read('example.mdx');\nconst result = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintMdxJsxShorthandAttribute)\n  .use(remarkStringify)\n  .process(file);\n\nconsole.error(reporter(result));","lang":"typescript","description":"Demonstrates how to use the remark-lint rule with unified pipeline to lint an MDX file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}