tools: specify rules disabled in common/dns.js

Instead of disabling all ESLint rules for a line, specify the two rules
that should be disabled.

PR-URL: https://github.com/nodejs/node/pull/22563
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Rich Trott 2018-08-27 23:36:19 -07:00 committed by Anna Henningsen
parent f2338ed195
commit c5bd856765
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function readDomainFromPacket(buffer, offset) {
} else { } else {
// Pointer to another part of the packet. // Pointer to another part of the packet.
assert.strictEqual(length & 0xC0, 0xC0); assert.strictEqual(length & 0xC0, 0xC0);
// eslint-disable-next-line // eslint-disable-next-line space-infix-ops, space-unary-ops
const pointeeOffset = buffer.readUInt16BE(offset) &~ 0xC000; const pointeeOffset = buffer.readUInt16BE(offset) &~ 0xC000;
return { return {
nread: 2, nread: 2,