prefer-promises/fs
UnreleasedConfiguration
rslint.config.ts
Prefer the promise API of Node.js's fs module.
Rule details
This rule reports calls to callback APIs that have a promise counterpart. It
follows CommonJS imports, ES module imports, process.getBuiltinModule, and local
aliases, including the node:fs module name.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Synchronous APIs, stream APIs, and reading a method without calling it are allowed.
Options
This rule has no options and does not provide automatic fixes or suggestions.