From 15b7f75e49b4eefe136723bc896a2e066041bda2 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 27 Aug 2018 23:36:19 -0700 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Richard Lau Reviewed-By: Ruben Bridgewater --- test/common/dns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/dns.js b/test/common/dns.js index 07f84d7a3703c1..7b2f1ef76e2889 100644 --- a/test/common/dns.js +++ b/test/common/dns.js @@ -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,