# @frostbitecms/prettier

> frostbitecms prettier config rules

Latest version **1.0.2** (published 2022-12-11) · ISC license · 0 weekly downloads

## Install

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

## 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 | 1.0.2 |
| Published | 2022-12-11 |
| First published | 2022-12-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.10.0 |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | abschill |

## Links

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

## Recent versions

- 1.0.2 (latest) — 2022-12-11
- 1.0.1 — 2022-12-08
- 1.0.0 — 2022-12-08

## README

# Frostbite prettier rules <img src="https://avatars.githubusercontent.com/u/120051982?s=200&v=4" align="right" width="128" height="128">


## Install with npm

```
npm i -D @frostbitecms/prettier
```
### with yarn

```
yarn add -D @frostbitecms/prettier
```


### use in package.json

```json
{
  "prettier": "@frostbitecms/prettier"
}
```

will add the rules for the formatter


### Rationale

rule | value | reason
----|-------|----
`arrowParens` | `always` |this is for consistency, i dont really like one liners usually and will just prefer `function()` anyway, but in react this rule makes it easier to read
`bracketSameLine` | `true` | i think it looks really weird when the `>` character is on its own line
`bracketSpacing` | `true` | improves readability of object properties
`embeddedLanguageFormatting` | `auto` | its usually alright about getting this right but it isn't really a big deal to begin with
`endOfLine` | `lf` | this is for git consistency with diffs since ultimately windows is not a production environment or a "git environment"
`jsxSingleQuote`, `singleQuote` | `true` | i like to make the lines less wide so that more can fit on the screen without a horizontal scroll in a multi-window environment
`printWidth` | `90` | 80 is a bit low, 100 is too wide for multi-window workspaces but 90 is a nice middle ground
`semi` | `true` | ending a statement explicitly when you can is just better
`trailingComma` | `none` | just looks more neat when it doesn't "trail off"
`useTabs` | `true` | consistency for people's custom tab width preferences (i prefer 2 personally for the same reasons as quotes)
`quoteProps` | `as-needed` | ideally we dont need to quote object keys in sourcecode but if we need to we need to

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