Prettier shareable config that enforces the XO code style. Current stable version is 2.0.2, released November 2025, with active maintenance via GitHub Actions CI/CD. Key differentiator: it provides a zero-config Prettier setup directly matching XO's opinionated style, including optional space-based indentation. Ships TypeScript type definitions and supports ESM via exports field. v2.0 breaking change introduced mandatory trailing commas to align with XO 0.41.0.
npm install prettier-config-xoVerified import paths — ran on the pinned version, not inferred.
Installation and usage of prettier-config-xo as a shared Prettier config, either via package.json or by extending in a JS config file.
Run `npx prettier --write .` to auto-apply trailing commas. If you need to preserve no trailing commas, override `trailingComma: 'none'` in your config.
Use the correct subpath: `require('prettier-config-xo/space')` or `import config from 'prettier-config-xo/space'`.Use dynamic import: `const config = await import('prettier-config-xo');` or switch to ESM import syntax.If you rely on resolution via `main`, update to use the package name directly or specify `exports` in your own config.
Run `npm install --save-dev prettier prettier-config-xo`.
Use `import config from 'prettier-config-xo'` or use dynamic import.
Update bundler to support 'exports' field or use a direct path like `./node_modules/prettier-config-xo/index.js`.
No dependency data recorded yet.