mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update code for new behavior of ESLint rule n/prefer-promises/fs.
This commit is contained in:
parent
8c8841e7b1
commit
523eeee3bb
3 changed files with 77 additions and 82 deletions
|
|
@ -2807,6 +2807,7 @@ function readConfig(file, parsers, fs, callback) {
|
|||
}
|
||||
// Read file
|
||||
file = helpers.expandTildePath(file, __webpack_require__(/*! node:os */ "?e6c4"));
|
||||
// eslint-disable-next-line n/prefer-promises/fs
|
||||
fs.readFile(file, "utf8", function (err, content) {
|
||||
if (err) {
|
||||
// @ts-ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue