Implement our own config explorer (#15663)

This commit is contained in:
fisker Cheung authored and GitHub committed 2023-12-05 15:00:43 +08:00
1 parent 117c04fcc8
commit 5f0956bc30
21 files changed
+393 -208

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ If `options.editorconfig` is `true` and an [`.editorconfig` file](https://editor
The promise will be rejected if there was an error parsing the configuration file.
The search starts at `process.cwd()`, or at `fileUrlOrPath` if provided. Please see the [lilconfig docs](https://github.com/antonk52/lilconfig) for details on how the resolving works.
The search starts at `process.cwd()`, or at the directory of `fileUrlOrPath` if provided.
```js
const configFile = await prettier.resolveConfigFile(filePath);