Skip to content

Commit f86d0eb

Browse files
Trottaddaleax
authored andcommitted
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: #22563 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent c5bd856 commit f86d0eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-assert.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ common.expectsError(
692692
() => {
693693
a(
694694
(() => 'string')()
695-
// eslint-disable-next-line
695+
// eslint-disable-next-line operator-linebreak
696696
===
697697
123 instanceof
698698
Buffer
@@ -704,7 +704,7 @@ common.expectsError(
704704
message: 'The expression evaluated to a falsy value:\n\n' +
705705
' a(\n' +
706706
' (() => \'string\')()\n' +
707-
' // eslint-disable-next-line\n' +
707+
' // eslint-disable-next-line operator-linebreak\n' +
708708
' ===\n' +
709709
' 123 instanceof\n' +
710710
' Buffer\n' +
@@ -716,7 +716,7 @@ common.expectsError(
716716
() => {
717717
a(
718718
(() => 'string')()
719-
// eslint-disable-next-line
719+
// eslint-disable-next-line operator-linebreak
720720
===
721721
123 instanceof
722722
Buffer
@@ -728,7 +728,7 @@ common.expectsError(
728728
message: 'The expression evaluated to a falsy value:\n\n' +
729729
' a(\n' +
730730
' (() => \'string\')()\n' +
731-
' // eslint-disable-next-line\n' +
731+
' // eslint-disable-next-line operator-linebreak\n' +
732732
' ===\n' +
733733
' 123 instanceof\n' +
734734
' Buffer\n' +

0 commit comments

Comments
 (0)