Support URL as ignorePath in getFileInfo() (#15364)
This commit is contained in:
1 parent
ae6f9ac25b
commit
6c833b4445
7 files changed
+101
-44
No files matched your search
+1
-1
@@ -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`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user