This is a small CLI tool that dumps all of Prettier’s default configuration options to a file in the format of your choice.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dylan Baker af7ff4fb49 0.2.2 4 years ago
.gitignore Initial commit 4 years ago
.prettierrc Restore prettierrc 4 years ago
LICENSE Initial commit 4 years ago
README.md Don't do ad-hoc serialization, update exclusions 4 years ago
index.js Don't do ad-hoc serialization, update exclusions 4 years ago
package-lock.json 0.2.2 4 years ago
package.json 0.2.2 4 years ago
test.js Don't do ad-hoc serialization, update exclusions 4 years ago

README.md

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 undefined or 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