# prettier-default-config

> Generate a prettier config file with all the possible options and their default values

Latest version **0.2.3** (published 2020-02-04) · MIT license · 0 weekly downloads

## Install

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

Provides the command `prettier-default-config`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2020-02-04 |
| First published | 2020-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dylan Baker |
| Maintainers | simulacrumparty |

## Links

- npm: https://www.npmjs.com/package/prettier-default-config
- Repository: https://git.simulacrum.party/simulacrumparty/prettier-default-config
- npm.io page: https://npm.io/package/prettier-default-config

## Dependencies (4)

- [yaml](https://npm.io/package/yaml.md) ^1.7.2
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [prettier](https://npm.io/package/prettier.md) ^1.19.1
- [@iarna/toml](https://npm.io/package/@iarna/toml.md) ^2.2.3

## Recent versions

- 0.2.3 (latest) — 2020-02-04
- 0.2.2 — 2020-02-04
- 0.2.1 — 2020-02-04
- 0.2.0 — 2020-02-04
- 0.1.1 — 2020-02-04
- 0.1.0 — 2020-02-04

## README

# prettier-default-config

This is a small CLI tool that dumps all of Prettier's default configuration
options to a file in the format of your choice.

## Installation

```
npm install -g prettier-default-config
```

## Usage

```
USAGE
    prettier-default-config [OPTIONS]

OPTIONS:
    --format <FORMAT> The config file format to generate.
                      <json|yaml|toml|js|package.json>
                      default: json

    --stdout          Write config to STDOUT rather than to a file

    --help            Prints help information
```

## Exclusions

The config file formats that Prettier uses are not able to represent all of
Prettier's default values. For instance, JSON can't represent `Infinity`, and
no format except actual JavaScript can represent `undefined`. As a result,
depending on the chosen format, some configuration options may be excluded. The
current list of exclusions is as follows:


| Format | Excluded Options                  |
|--------|-----------------------------------|
| JSON   | `rangeEnd` , `filepath`, `parser` |
| TOML   | `rangeEnd`                        |
| YAML   | `filepath`                        |

## License

MIT

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