# @cobraz/prettier

> A reuseable, simple prettier config

Latest version **2.0.2** (published 2023-05-14) · Apache-2.0 license · 0 weekly downloads

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

## Install

```sh
npm install @cobraz/prettier
pnpm add @cobraz/prettier
yarn add @cobraz/prettier
bun add @cobraz/prettier
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2023-05-14 |
| First published | 2021-10-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Simen A. W. Olsen |
| Maintainers | simenandre |

## Links

- npm: https://www.npmjs.com/package/@cobraz/prettier
- Repository: https://github.com/cobraz/prettier-config
- npm.io page: https://npm.io/package/@cobraz/prettier

## Recent versions

- 2.0.2 (latest) — 2023-05-14
- 2.0.1 — 2022-11-18
- 2.0.0 — 2021-10-17

## README

# @cobraz/prettier

Reusable prettier config

## Installation

```bash
npm i -D @cobraz/prettier
```

or

```
yarn add --dev @cobraz/prettier
```

## Usage

Add a key in your **package.json** file.

```
"prettier": "@cobraz/prettier"
```

**OR**

Create a **.prettierrc** , **.prettierrc.yaml** , **.prettierrc.yml** or **.prettierrc.json** file and export a string.

```
"@cobraz/prettier"
```

**OR**

Create a **prettier.config.js** or **.prettierrc.js** file and export an object.

```
module.exports = {
  ...require("@cobraz/prettier"),
  tabWidth: 2,
};
```

## Thanks

Most of this code is based on https://github.com/devsht/prettier-config.

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