mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02: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
|
@ -1176,6 +1176,7 @@ function readConfig(file, parsers, fs, callback) {
|
|||
}
|
||||
// Read file
|
||||
file = helpers.expandTildePath(file, require("node:os"));
|
||||
// eslint-disable-next-line n/prefer-promises/fs
|
||||
fs.readFile(file, "utf8", (err, content) => {
|
||||
if (err) {
|
||||
// @ts-ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue