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 authored and Michaël Zasso committed 2018-09-06 08:53:57 +02:00
1 parent 2a83628083
commit b3e4a53473
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ function readDomainFromPacket(buffer, offset) {
} else {
// Pointer to another part of the packet.
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;
return {
nread: 2,