This is a small CLI tool that dumps all of Prettier’s default configuration options to a file in the format of your choice.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Dylan Baker 3d7ec2dceb 0.2.3 před 4 roky
.gitignore Initial commit před 4 roky
.prettierrc Restore prettierrc před 4 roky
LICENSE Initial commit před 4 roky
README.md Fix readme typos před 4 roky
index.js Don't do ad-hoc serialization, update exclusions před 4 roky
package-lock.json 0.2.3 před 4 roky
package.json 0.2.3 před 4 roky
test.js Don't do ad-hoc serialization, update exclusions před 4 roky

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