eslint-plugin-node
eslint-plugin-node copied to clipboard
dns.promises.setServers should be ignored from prefer-promises/dns
Right now you have to either use dns.promises.setServers([ ... ]) or use the ignore line.
dns.promises.setServers does not actually return a Promise, and will actually error if you call it with .then().
// eslint-disable-next-line n/prefer-promises/dns
dns.setServers([
'...'
]);
Try eslint-plugin-n, it is the maintained version of this module.
We switched to it in eg. eslint-config-standard / standard and it is maintained by me and other members of the official ESLint community organization.
If it isn't fixed there, try creating an issue there as well.