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:
parent
c5bd856765
commit
f86d0ebc36
@ -692,7 +692,7 @@ common.expectsError(
|
|||||||
() => {
|
() => {
|
||||||
a(
|
a(
|
||||||
(() => 'string')()
|
(() => 'string')()
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line operator-linebreak
|
||||||
===
|
===
|
||||||
123 instanceof
|
123 instanceof
|
||||||
Buffer
|
Buffer
|
||||||
@ -704,7 +704,7 @@ common.expectsError(
|
|||||||
message: 'The expression evaluated to a falsy value:\n\n' +
|
message: 'The expression evaluated to a falsy value:\n\n' +
|
||||||
' a(\n' +
|
' a(\n' +
|
||||||
' (() => \'string\')()\n' +
|
' (() => \'string\')()\n' +
|
||||||
' // eslint-disable-next-line\n' +
|
' // eslint-disable-next-line operator-linebreak\n' +
|
||||||
' ===\n' +
|
' ===\n' +
|
||||||
' 123 instanceof\n' +
|
' 123 instanceof\n' +
|
||||||
' Buffer\n' +
|
' Buffer\n' +
|
||||||
@ -716,7 +716,7 @@ common.expectsError(
|
|||||||
() => {
|
() => {
|
||||||
a(
|
a(
|
||||||
(() => 'string')()
|
(() => 'string')()
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line operator-linebreak
|
||||||
===
|
===
|
||||||
123 instanceof
|
123 instanceof
|
||||||
Buffer
|
Buffer
|
||||||
@ -728,7 +728,7 @@ common.expectsError(
|
|||||||
message: 'The expression evaluated to a falsy value:\n\n' +
|
message: 'The expression evaluated to a falsy value:\n\n' +
|
||||||
' a(\n' +
|
' a(\n' +
|
||||||
' (() => \'string\')()\n' +
|
' (() => \'string\')()\n' +
|
||||||
' // eslint-disable-next-line\n' +
|
' // eslint-disable-next-line operator-linebreak\n' +
|
||||||
' ===\n' +
|
' ===\n' +
|
||||||
' 123 instanceof\n' +
|
' 123 instanceof\n' +
|
||||||
' Buffer\n' +
|
' Buffer\n' +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user