Update readConfig to use fs.access so the async path is fully async.

This commit is contained in:
David Anson 2021-08-12 20:43:18 -07:00
parent 211f09afbc
commit 709e314836
5 changed files with 108 additions and 28 deletions

View file

@ -649,7 +649,7 @@ In advanced scenarios, it may be desirable to bypass the default file system API
If a custom file system implementation is provided, `markdownlint` will use that
instead of invoking `require("fs")`.
Note: The only methods called are `readFile`, `readFileSync`, and `accessSync`.
Note: The only methods called are `readFile`, `readFileSync`, `access`, and `accessSync`.
#### callback