forked from mysticatea/eslint-plugin-node
-
-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Description
I tested this using "n/prefer-promises/fs": "error"
and it gave no error:
import { readFile } from 'node:fs';
readFile('/etc/passwd', (err, data) => {
if (err) throw err;
console.log(data);
});
The rules prefer-promises
does not seem to be able to handle using the node:
prefix. Maybe this is true for several more rules?
dimaMachina, thernstig, kevinoid, alecmev and teppeisdimaMachina
Metadata
Metadata
Assignees
Labels
No labels