# @clabnet/configs-prettier

> Shared prettier config for monorepo and lib packages

Latest version **0.1.18** (published 2025-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @clabnet/configs-prettier
pnpm add @clabnet/configs-prettier
yarn add @clabnet/configs-prettier
bun add @clabnet/configs-prettier
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.18 |
| Published | 2025-05-06 |
| First published | 2024-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Claudio Barca |
| Maintainers | clabnet |
| Keywords | configs, pnpm, prettier |

## Links

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

## 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
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 0.1.18 (latest) — 2025-05-06
- 0.1.16 — 2024-09-26
- 0.1.15 — 2024-02-06
- 0.1.14 — 2024-01-30
- 0.1.13 — 2024-01-30
- 0.1.12 — 2024-01-30
- 0.1.11 — 2024-01-30
- 0.1.10 — 2024-01-30
- 0.1.8 — 2024-01-26
- 0.1.6 — 2024-01-26
- 0.1.5 — 2024-01-05
- 0.1.4 — 2024-01-04
- 0.1.3 — 2024-01-03
- 0.1.2 — 2024-01-03
- 0.1.1 — 2024-01-02
- … 1 more at https://npm.io/package/@clabnet/configs-prettier/versions

## README

# Shared prettier configuration

![](https://img.shields.io/npm/v/@clabnet/configs-prettier.svg?color=brightgreen) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](#)

The purpose of the `prettier` is formatting many language formats (`js`, `ts`, `tsx`, `md`, `json`, `yaml`).

---

## Contents

- [Setup](#setup)
- [Automation](#automation)
- [Usage](#usage)

## Setup

- Add workspace reference to `@clabnet/configs-prettier` and its peer dependencies:

  ```sh
  pnpm add -w @clabnet/configs-prettier prettier
  ```

- Add prettier configuration file:

  ```js
  // .prettierrc.js

  module.exports = require('@clabnet/configs-prettier')
  ```

- Add prettier ignore patterns file:

  ```sh
  # .prettierignore

  node_modules/
  pnpm-lock.yaml

  # Next ignore patterns
  .next/
  .build/
  .coverage/

  # Custom ignore patterns
  ...
  ```

- Add prettier scripts:

  ```jsonc
  // package.json

  "scripts": {
    ...
    "format": "prettier",
    "format:check": "pnpm format --check --debug-check",
    "format:fix": "pnpm format --write"
    ...
  }
  ```

## Automation

- Setup [➡ prettier vscode plugin](../../docs/plugins/vscode-prettier.md) to integrate `prettier` with vscode environment.

## Usage

- **Automatic** format file with `prettier` on save.
- **Automatic** format of staged files with `prettier` on commit.
- Manual usage from command line:

  ```sh
  pnpm format:check .
  pnpm format:fix .
  ```

[⬅ Back](../../README.md)

---

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