# prettier-config-one

> My recommended prettier config

Latest version **0.2.1** (published 2024-02-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install prettier-config-one
pnpm add prettier-config-one
yarn add prettier-config-one
bun add prettier-config-one
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2024-02-04 |
| First published | 2022-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | sajmoni |
| Maintainers | sajmoni |
| Keywords | prettier, config, no semi |

## Links

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

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

- 0.2.1 (latest) — 2024-02-04
- 0.2.0 — 2023-07-18
- 0.1.1 — 2022-08-18
- 0.1.0 — 2022-04-24
- 0.0.1 — 2022-04-23

## README

# prettier-config-one

> My recommended prettier config

## Options

```yml
semi: false
```

_Why?_

- Less visual clutter
- Easier to move code around
- Semicolons are not needed 99%+ of the time, and Prettier can insert them when they are

---

```yml
singleQuote: true
```

_Why?_

- Slightly less visual clutter
- Doesn't require pressing "shift"
- It's in the [Google style guide](https://google.github.io/styleguide/jsguide.html#features-strings-use-single-quotes)

---

```yml
jsxSingleQuote: true
```

_Why?_

- Consistent with `singleQuote`

---

```yml
singleAttributePerLine: true
```

_Why?_

- Better git diff. Adding or removing props won't affect unrelated ones
- More consistent to always have props on new lines

---

```yml
experimentalTernaries: true
```

_Why?_

- Supposedly better readability

---

## How to use - automatic setup

**recommended**

Use [setup-prettier](https://github.com/sajmoni/setup-prettier) to automatically add `prettier` and this config

```console
npx setup-prettier@latest
```

---

## How to use - manual install

```console
npm install --save-dev prettier-config-one
```

In your package.json or prettier config:

```json
  "prettier": "prettier-config-one"
```

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