From 91408ccf6e684e815ecbf14dc1c30ba7d6aed0cd Mon Sep 17 00:00:00 2001 From: Andrej Date: Sun, 12 Oct 2025 16:46:24 +0200 Subject: [PATCH] Add note about EditorConfig search stopping at project root (#18061) --- docs/configuration.md | 6 ++++++ website/versioned_docs/version-stable/configuration.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index 900e38ccf..1fd8604b4 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -225,6 +225,12 @@ If you’d like a JSON schema to validate your configuration, one is available h If a [`.editorconfig` file](https://editorconfig.org/) is in your project, Prettier will parse it and convert its properties to the corresponding Prettier configuration. This configuration will be overridden by `.prettierrc`, etc. +:::note + +Unlike the EditorConfig spec, the search for `.editorconfig` file will stop on the project root and won't proceed further. + +::: + Here’s an annotated description of how different properties map to Prettier’s behavior: ```ini diff --git a/website/versioned_docs/version-stable/configuration.md b/website/versioned_docs/version-stable/configuration.md index 900e38ccf..1fd8604b4 100644 --- a/website/versioned_docs/version-stable/configuration.md +++ b/website/versioned_docs/version-stable/configuration.md @@ -225,6 +225,12 @@ If you’d like a JSON schema to validate your configuration, one is available h If a [`.editorconfig` file](https://editorconfig.org/) is in your project, Prettier will parse it and convert its properties to the corresponding Prettier configuration. This configuration will be overridden by `.prettierrc`, etc. +:::note + +Unlike the EditorConfig spec, the search for `.editorconfig` file will stop on the project root and won't proceed further. + +::: + Here’s an annotated description of how different properties map to Prettier’s behavior: ```ini