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.
npm install remark-lint-mdx-jsx-quote-styleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the rule with unified, enforcing double quotes and reporting lint messages.
Use import or switch to a dynamic import() if using CommonJS.
Upgrade Node.js to 16+ or use an older version of the package.
Always use with .use() in a unified pipeline.
Specify an explicit style like '"' or "'" to avoid detection uncertainty.
N/A
Change to import: import remarkLintMdxJsxQuoteStyle from 'remark-lint-mdx-jsx-quote-style'
Ensure the import is correct: import remarkLintMdxJsxQuoteStyle from 'remark-lint-mdx-jsx-quote-style' and then use it with .use(remarkLintMdxJsxQuoteStyle)
Ensure the unified pipeline includes .use(remarkParse) and .use(remarkLint) before this rule.
Upgrade Node.js to 16+ or use a transpiler like esbuild.