eslint-plugin-node icon indicating copy to clipboard operation
eslint-plugin-node copied to clipboard

dns.promises.setServers should be ignored from prefer-promises/dns

Open titanism opened this issue 2 years ago • 1 comments

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([
  '...'
]);

titanism avatar Feb 03 '23 07:02 titanism

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.

voxpelli avatar Aug 13 '23 12:08 voxpelli