Add note about EditorConfig search stopping at project root (#18061)

This commit is contained in:
Andrej authored and GitHub committed 2025-10-12 22:46:24 +08:00
1 parent ac6c35fc61
commit 91408ccf6e
2 files changed
+12

No files matched your search

+6
View File
@@ -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
@@ -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