From f5520cc53dd36e5cce1b713f0fc13c1bf2048dbd Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 27 Aug 2018 23:37:04 -0700 Subject: [PATCH] tools: specify rule disabled in test-assert.js Instead of disabling all ESLint rules on two lines in test-assert.js, specify the rule that needs to 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/parallel/test-assert.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index ec7fe58d05c6c4..0eebd7a872cace 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.js @@ -680,7 +680,7 @@ common.expectsError( () => { a( (() => 'string')() - // eslint-disable-next-line + // eslint-disable-next-line operator-linebreak === 123 instanceof Buffer @@ -692,7 +692,7 @@ common.expectsError( message: 'The expression evaluated to a falsy value:\n\n' + ' a(\n' + ' (() => \'string\')()\n' + - ' // eslint-disable-next-line\n' + + ' // eslint-disable-next-line operator-linebreak\n' + ' ===\n' + ' 123 instanceof\n' + ' Buffer\n' + @@ -704,7 +704,7 @@ common.expectsError( () => { a( (() => 'string')() - // eslint-disable-next-line + // eslint-disable-next-line operator-linebreak === 123 instanceof Buffer @@ -716,7 +716,7 @@ common.expectsError( message: 'The expression evaluated to a falsy value:\n\n' + ' a(\n' + ' (() => \'string\')()\n' + - ' // eslint-disable-next-line\n' + + ' // eslint-disable-next-line operator-linebreak\n' + ' ===\n' + ' 123 instanceof\n' + ' Buffer\n' +