{"library":"remark-lint-mdx-jsx-quote-style","title":"remark-lint-mdx-jsx-quote-style","description":"A remark-lint rule that warns when MDX JSX attribute value markers violate a configured style (single or double quotes). Current stable version is 1.0.1, released as part of the remark-lint monorepo. It is ESM-only, requires Node.js 16+, and is designed for use with the unified ecosystem. Key differentiators: it supports a 'consistent' mode to detect and enforce the first style used, and integrates with remark-mdx for auto-fixing. Unlike generic quote linters, it specifically targets MDX JSX attributes.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-mdx-jsx-quote-style"],"cli":null},"imports":["import remarkLintMdxJsxQuoteStyle from 'remark-lint-mdx-jsx-quote-style'","import type { Options } from 'remark-lint-mdx-jsx-quote-style'","import type { Style } from 'remark-lint-mdx-jsx-quote-style'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkLintMdxJsxQuoteStyle from 'remark-lint-mdx-jsx-quote-style';\nimport { read } from 'to-vfile';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await read('example.mdx');\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintMdxJsxQuoteStyle, '\"') // enforce double quotes\n  .use(remarkStringify)\n  .process(file);\n\nconsole.error(reporter(file));","lang":"typescript","description":"Shows how to use the rule with unified, enforcing double quotes and reporting lint messages.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}