From 02ec2337b8365f3714375185fa1219b818078d49 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Mon, 14 Oct 2019 04:51:02 +0900 Subject: [PATCH] Modify to follow #6638 (#6645) --- website/versioned_docs/version-stable/configuration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/versioned_docs/version-stable/configuration.md b/website/versioned_docs/version-stable/configuration.md index 07f20a0cc..9028ed59e 100644 --- a/website/versioned_docs/version-stable/configuration.md +++ b/website/versioned_docs/version-stable/configuration.md @@ -4,12 +4,12 @@ title: Configuration File original_id: configuration --- -Prettier uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for configuration file support. This means you can configure prettier via: +Prettier uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for configuration file support. This means you can configure prettier via (in order of precedence): -- A `.prettierrc` file, written in YAML or JSON, with optional extensions: `.yaml/.yml/.json`. -- A `.prettierrc.toml` file, written in TOML (the `.toml` extension is _required_). -- A `prettier.config.js` or `.prettierrc.js` file that exports an object. - A `"prettier"` key in your `package.json` file. +- A `.prettierrc` file, written in JSON or YAML, with optional extensions: `.json/.yaml/.yml` (without extension takes precedence). +- A `.prettierrc.js` or `prettier.config.js` file that exports an object. +- A `.prettierrc.toml` file, written in TOML (the `.toml` extension is _required_). The configuration file will be resolved starting from the location of the file being formatted, and searching up the file tree until a config file is (or isn't) found.