# @shelf/prettier-config

> Reusable Prettier config

Latest version **1.1.1** (published 2026-03-18) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @shelf/prettier-config
pnpm add @shelf/prettier-config
yarn add @shelf/prettier-config
bun add @shelf/prettier-config
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2026-03-18 |
| First published | 2020-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vlad Holubiev |
| Maintainers | el_scrambone, yuliiakovalchuk, anton-russo, gemshelf, mykola.khytra, hartzler, olesiamuller, vladgolubev, hmelenok, knupman, maaraanas, terret, chapelskyi.slavik, ahavrysh, pihorb, irynah, diana.kryskuv, andy.raven, rafler, demiansua, yuriil, vadymaslovskyi, ktv18, drews_abuse, rostyslav-horytskyi, whodeen, andriisermiahin, mpushkin, ss1l, oles.zadorozhnyy, maksym.hayovets, dima-bond, kristina.zhak, oleksii.dymnich, domovoj, batovpavlo, mateuszgajdashelf, bodyaflesh, dmytro.harazdovskiy, kchlon, vladmarchuk, ncqpele, pawelpiasecki, marianna-milovanova, andrii-nastenko, maksym.tarnavskyi, plazowicz, bogdan.kolesnyk, monopotan, timorohnershelf, pietras, y-senchuk, isadovyi, yaroslav_korolchuk, apisarekshelf, osipenks, apankiv, yaroslava-tkachuk |

## Links

- npm: https://www.npmjs.com/package/@shelf/prettier-config
- npm.io page: https://npm.io/package/@shelf/prettier-config

## Recent versions

- 1.1.1 (latest) — 2026-03-18
- 1.0.0 — 2020-12-11
- 0.0.7 — 2020-03-23
- 0.0.6 — 2020-03-23
- 0.0.5 — 2020-03-23
- 0.0.3 — 2020-03-23
- 0.0.2 — 2020-03-23
- 0.0.1 — 2020-03-23

## README

# prettier-config

> Reusable Prettier config with a parallel Oxfmt export for migrations.

## Install

```sh
pnpm add --save-dev --save-exact @shelf/prettier-config
```

## Legacy Prettier Usage

Keep using the package root while a repo still formats through Prettier:

```json
{
  "prettier": "@shelf/prettier-config"
}
```

The legacy Prettier config stays published at the package root for non-migrated repos.

## Oxfmt Usage

For migrated repos, add a local `oxfmt.config.ts` and import the shared config from `@shelf/prettier-config/oxfmt`:

```ts
import baseConfig, {
  recommendedIgnorePatterns,
} from '@shelf/prettier-config/oxfmt';

export default {
  ...baseConfig,
  ignorePatterns: [...recommendedIgnorePatterns],
};
```

## Shared Oxfmt Config

```js
{
  printWidth: 100,
  singleQuote: true,
  bracketSpacing: false,
  trailingComma: 'es5',
  arrowParens: 'avoid',
  sortPackageJson: false,
}
```

`recommendedIgnorePatterns` starts intentionally small:

```js
['coverage/**']
```

Repo-specific ignore rules should stay local in each repo's `oxfmt.config.ts`.

## Migration Guide

The staged Oxfmt migration guide lives in [MIGRATING_TO_OXFMT.md](./MIGRATING_TO_OXFMT.md).

## Publish

```sh
pnpx np
```

## License

MIT © [Shelf](https://shelf.io)

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