Skip to content

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

@titanism

Description

@titanism

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

Metadata

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