This is a small CLI tool that dumps all of Prettier’s default configuration options to a file in the format of your choice.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Dylan Baker 4c972e6c98 0.2.1 4 anos atrás
.gitignore Initial commit 4 anos atrás
LICENSE Initial commit 4 anos atrás
README.md Fix YAML exclusions 4 anos atrás
index.js Read config options from Prettier rather than hardcoding 4 anos atrás
package-lock.json 0.2.1 4 anos atrás
package.json 0.2.1 4 anos atrás
test.js Read config options from Prettier rather than hardcoding 4 anos atrás

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, TOML has no concept of null, neither TOML nor JSON can 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, filepath, parser
YAML filepath, parser

License

MIT