# @wayofdev/prettier-config

> A shareable prettier configuration for projects.

Latest version **1.1.0** (published 2022-12-20) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-12-20 |
| First published | 2022-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | lotyp7@gmail.com |
| Maintainers | lotyp |
| Keywords | prettier, prettier-config |

## Links

- npm: https://www.npmjs.com/package/@wayofdev/prettier-config
- Repository: https://github.com/wayofdev/npm-shareable-configs
- Homepage: https://github.com/wayofdev/npm-shareable-configs/tree/master/packages/prettier-config#readme
- Issues: https://github.com/wayofdev/npm-shareable-configs/issues
- npm.io page: https://npm.io/package/@wayofdev/prettier-config

## 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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2022-12-20
- 1.0.3 — 2022-12-20
- 1.0.1 — 2022-12-15
- 1.0.0 — 2022-12-13

## README

# Prettier Config

Shareable prettier configuration.

## Install

```bash
# using yarn
$ yarn add -D prettier @wayofdev/prettier-config

# using pnpm
$ pnpm add -Dw prettier @wayofdev/prettier-config
```

## Usage

**`.prettierrc.js`**

```js
module.exports = '@wayofdev/prettier-config';
```

## Extending

**`.prettierrc.js`**

```js
module.exports = {
    ...require('@wayofdev/prettier-config'),
    semi: false,
};
```

## Add an NPM Script

Running this command:

```bash
npm set-script lint:prettier "prettier --write ."
```

Will create:

**`package.json`**

```bash
...
"scripts": {
    ...
    "lint:prettier": "prettier --write ."
    ...
},
...
```

## Add a Pre-commit Hook

**`lint-staged.config.js`**

```js
module.exports = {
    '**/*': ['prettier --cache --write --ignore-unknown'],
};
```

## License

MIT

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