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 <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 Anna Henningsen committed 2018-08-31 19:17:31 +02:00
1 parent c5bd856765
commit f86d0ebc36
1 file changed
+4 -4
+4 -4
View File
@@ -692,7 +692,7 @@ common.expectsError(
() => {
a(
(() => 'string')()
// eslint-disable-next-line
// eslint-disable-next-line operator-linebreak
===
123 instanceof
Buffer
@@ -704,7 +704,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' +
@@ -716,7 +716,7 @@ common.expectsError(
() => {
a(
(() => 'string')()
// eslint-disable-next-line
// eslint-disable-next-line operator-linebreak
===
123 instanceof
Buffer
@@ -728,7 +728,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' +