# @coldboy002/prettier-config

> Shareable config for prettier

Latest version **1.2.0** (published 2025-11-14) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2025-11-14 |
| First published | 2023-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20 |
| Dependencies | 2 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vũ Trọng Thuỷ |
| Maintainers | coldboy002 |
| Keywords | prettier, config, prettier-config |

## Links

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

## Dependencies (2)

- [@prettier/plugin-pug](https://npm.io/package/@prettier/plugin-pug.md) ^3.4.2
- [prettier-plugin-packagejson](https://npm.io/package/prettier-plugin-packagejson.md) ^2.5.19

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2025-11-14
- 1.1.2 — 2025-11-12
- 1.1.1 — 2025-11-12
- 1.1.0 — 2025-11-08
- 1.0.0 — 2023-05-11

## README

# @coldboy002/prettier-config

[![NPM version](https://img.shields.io/npm/v/@coldboy002/prettier-config.svg)](https://www.npmjs.org/package/@coldboy002/prettier-config)

> Shareable config for [Prettier](https://prettier.io/).

For consistent formatting across my repos.

## Installation

```bash
npm install --save-dev @coldboy002/prettier-config
```

or

```bash
yarn add --dev @coldboy002/prettier-config
```

**Note**: This package requires Node.js 22.0.0 or later. It is not compatible with older versions.

## Usage

Add this line to your `package.json`

```json
"prettier": "@coldboy002/prettier-config",
```

Alternatively, add this to `.prettierrc` file:

```json
 "@coldboy002/prettier-config"
```

To extend the configuration, create prettier.config.js and spread this config onto your own config object:

```js
import cbConfig from '@coldboy002/prettier-config'

/** @type {import('prettier').Config} */
const config = {
	...cbConfig,
	experimentalTernaries: true,
}

export default config
```

Refer to [Prettier documentation](https://prettier.io/docs/en/configuration.html#sharing-configurations), if you need override some options.

## [Changelog](CHANGELOG.md)

## [License](LICENSE)

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