Skip to content

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

Open
@titanism

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions