Skip to content

Commit d44420c

Browse files
committed
Clarify when resolveConfig returns null
See #2760 (comment)
1 parent 49a19fe commit d44420c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ prettier.formatWithCursor(" 1", { cursorOffset: 2 });
474474
`resolveConfig` can be used to resolve configuration for a given source file.
475475
The function requires an input file path as an argument, you might want to pass `process.cwd()` for searching from the current working directory.
476476
A promise is returned which will resolve to:
477-
* An options object, providing a [config file](#configuration-file) was found.
478-
* `null`, if no file was found.
477+
* An options object, providing a [configuration](#configuration-file) was found for the file.
478+
* `null`, if no configuration was found.
479479

480480
The promise will be rejected if there was an error parsing the configuration file.
481481

0 commit comments

Comments
 (0)