From 49a5861440da94c817163cdf8e15255cdfc8073e Mon Sep 17 00:00:00 2001 From: Dimitri Mitropoulos Date: Fri, 6 May 2022 10:00:08 -0400 Subject: [PATCH] adds infobox for rootdir affecting preset resolution --- docs/Configuration.md | 6 ++++++ website/versioned_docs/version-28.0/Configuration.md | 6 ++++++ website/versioned_docs/version-28.1/Configuration.md | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/docs/Configuration.md b/docs/Configuration.md index 2879593e39dc..0b829bfeb1db 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -777,6 +777,12 @@ module.exports = { } ``` +:::info + +Note that if you also have specified [`rootDir`](#rootdir-string) that the resolution of this file will be relative to that root directory. + +::: + ### `prettierPath` \[string] Default: `'prettier'` diff --git a/website/versioned_docs/version-28.0/Configuration.md b/website/versioned_docs/version-28.0/Configuration.md index 7979ee9036d3..f930abb49536 100644 --- a/website/versioned_docs/version-28.0/Configuration.md +++ b/website/versioned_docs/version-28.0/Configuration.md @@ -777,6 +777,12 @@ module.exports = { } ``` +:::info + +Note that if you also have specified [`rootDir`](#rootdir-string) that the resolution of this file will be relative to that root directory. + +::: + ### `prettierPath` \[string] Default: `'prettier'` diff --git a/website/versioned_docs/version-28.1/Configuration.md b/website/versioned_docs/version-28.1/Configuration.md index 2879593e39dc..0b829bfeb1db 100644 --- a/website/versioned_docs/version-28.1/Configuration.md +++ b/website/versioned_docs/version-28.1/Configuration.md @@ -777,6 +777,12 @@ module.exports = { } ``` +:::info + +Note that if you also have specified [`rootDir`](#rootdir-string) that the resolution of this file will be relative to that root directory. + +::: + ### `prettierPath` \[string] Default: `'prettier'`