# @digitalroute/prettier-config

> Prettier configuration for DigitalRoute

Latest version **3.0.0** (published 2024-07-24) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-07-24 |
| First published | 2020-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dot-bot, pierre.lemerle, polarn, jcelik, timberbain, saeger |
| Keywords | digitalroute, prettier, prettier-config |

## Links

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

## Dependencies (1)

- [prettier](https://npm.io/package/prettier.md) ^3.2.5

## 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

- 3.0.0 (latest) — 2024-07-24
- 2.2.0 — 2023-11-10
- 2.1.0 — 2023-10-12
- 2.0.0 — 2023-10-11
- 1.6.0 — 2023-04-03
- 1.5.0 — 2022-04-05
- 1.4.0 — 2020-07-03
- 1.3.1 — 2020-06-29
- 1.3.0 — 2020-03-10
- 1.2.0 — 2020-02-19
- 1.1.0 — 2020-02-17
- 0.0.2 — 2020-02-12
- 0.0.1 — 2020-02-12

## README

# @digitalroute/prettier-config

Prettier shareable configuration for Digitalroute projects.

## Usage

Install this config as a `devDependency`:

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

Add the following to your `package.json`:

```jsonc
{
  "prettier": "@digitalroute/prettier-config"
}
```

## Usage with husky and lint-staged

[Husky](https://www.npmjs.com/package/husky) is a tool that triggers npm-scripts based on git actions. [Lint-staged](https://www.npmjs.com/package/lint-staged) let's you run linting and formatting on files that are staged. You can use these two tools to ensure that all commited files are prettified before they are commited.

Install husky and lint-staged as a `devDependency`:

```bash
npm install husky lint-staged --save-dev
```

Add the following to your `package.json`:

```jsonc
{
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{ts,tsx,js,jsx,json,md,mdx,yml}": "prettier --write"
  }
}
```

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