{"library":"remark-lint-mdx-jsx-attribute-sort","title":"remark-lint-mdx-jsx-attribute-sort","description":"A remark-lint rule that checks MDX JSX attribute ordering, ensuring attributes are sorted alphabetically. Current stable version is 1.0.1. Part of the remark-lint ecosystem, it is ESM-only, requires Node.js 16+, and is written in TypeScript with bundled types. Unlike generic lint rules, it specifically targets MDX JSX syntax, handling spreads (must come first) and shorthand attributes. Released under the unified collective.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-mdx-jsx-attribute-sort"],"cli":null},"imports":["import remarkLintMdxJsxAttributeSort from 'remark-lint-mdx-jsx-attribute-sort'","import remarkLintMdxJsxAttributeSort from 'remark-lint-mdx-jsx-attribute-sort'"],"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 remarkLintMdxJsxAttributeSort from 'remark-lint-mdx-jsx-attribute-sort'\nimport { read } from 'to-vfile'\nimport { reporter } from 'vfile-reporter'\n\nconst file = await read('example.mdx')\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintMdxJsxAttributeSort)\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))","lang":"typescript","description":"Set up a unified processor with remark-lint and the MDX JSX attribute sort rule, then lint an MDX file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}