# prettier-config-xo

> [![npm](https://img.shields.io/npm/v/prettier-config-xo)](https://www.npmjs.com/package/prettier-config-xo) [![Build Status](https://github.com/jonahsnider/prettier-config-xo/workflows/CI/badge.svg)](https://github.com/jonahsnider/prettier-config-xo/actio

Latest version **3.0.0** (published 2026-08-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install prettier-config-xo
pnpm add prettier-config-xo
yarn add prettier-config-xo
bun add prettier-config-xo
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-08-23 |
| First published | 2020-06-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10.13.0 |
| Dependencies | 0 |
| Unpacked size | 16.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3 |
| Author | Jonah Snider |
| Maintainers | jonahsnider |
| Keywords | xo, prettier, prettier-config, xo-config |

## Links

- npm: https://www.npmjs.com/package/prettier-config-xo
- Repository: https://github.com/jonahsnider/prettier-config-xo
- Homepage: https://github.com/jonahsnider/prettier-config-xo#readme
- Issues: https://github.com/jonahsnider/prettier-config-xo/issues
- npm.io page: https://npm.io/package/prettier-config-xo

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2026-08-23
- 2.0.2 — 2025-11-14
- 2.0.1 — 2025-11-14
- 2.0.0 — 2021-07-07
- 1.0.4 — 2021-04-19
- 1.0.3 — 2020-06-23
- 1.0.2 — 2020-06-13
- 1.0.1 — 2020-06-08

## README

# [`prettier-config-xo`](https://www.npmjs.com/package/prettier-config-xo)

[![npm](https://img.shields.io/npm/v/prettier-config-xo)](https://www.npmjs.com/package/prettier-config-xo)
[![Build Status](https://github.com/jonahsnider/prettier-config-xo/workflows/CI/badge.svg)](https://github.com/jonahsnider/prettier-config-xo/actions)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)
[![codecov](https://codecov.io/gh/jonahsnider/prettier-config-xo/branch/main/graph/badge.svg)](https://codecov.io/gh/jonahsnider/prettier-config-xo)

Prettier config that follows the XO code style.

## Usage

### Default config

Add the `prettier` property to your `package.json`.

```json
{
	"name": "my-cool-library",
	"version": "1.0.0",
	"prettier": "prettier-config-xo"
}
```

### Extending the configuration

```js
// prettier.config.mjs, or some other module
import xoConfig from 'prettier-config-xo';

export default {
	...xoConfig,
	semi: false,
};
```

### Spaces

You can use spaces instead of tabs with the space config:

```js
// prettier.config.mjs
export {default} from 'prettier-config-xo/space';
```

---
_Source: https://npm.io/package/prettier-config-xo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
