Support URL as ignorePath in getFileInfo() (#15364)

This commit is contained in:
fisker Cheung authored and GitHub committed 2023-09-14 20:10:10 +08:00
1 parent ae6f9ac25b
commit 6c833b4445
7 files changed
+101 -44

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ When Prettier loads configuration files and plugins, the file system structure i
The promise will be rejected if the type of `fileUrlOrPath` is not `string` or `URL`.
Setting `options.ignorePath` (`string | string[]`) and `options.withNodeModules` (`boolean`) influence the value of `ignored` (`false` by default).
Setting `options.ignorePath` (`string | URL | (string | URL)[]`) and `options.withNodeModules` (`boolean`) influence the value of `ignored` (`false` by default).
If the given `fileUrlOrPath` is ignored, the `inferredParser` is always `null`.