Skip to content

Commit f5520cc

Browse files
Trotttargos
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 15b7f75 commit f5520cc

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
@@ -680,7 +680,7 @@ common.expectsError(
680680
() => {
681681
a(
682682
(() => 'string')()
683-
// eslint-disable-next-line
683+
// eslint-disable-next-line operator-linebreak
684684
===
685685
123 instanceof
686686
Buffer
@@ -692,7 +692,7 @@ common.expectsError(
692692
message: 'The expression evaluated to a falsy value:\n\n' +
693693
' a(\n' +
694694
' (() => \'string\')()\n' +
695-
' // eslint-disable-next-line\n' +
695+
' // eslint-disable-next-line operator-linebreak\n' +
696696
' ===\n' +
697697
' 123 instanceof\n' +
698698
' Buffer\n' +
@@ -704,7 +704,7 @@ common.expectsError(
704704
() => {
705705
a(
706706
(() => 'string')()
707-
// eslint-disable-next-line
707+
// eslint-disable-next-line operator-linebreak
708708
===
709709
123 instanceof
710710
Buffer
@@ -716,7 +716,7 @@ common.expectsError(
716716
message: 'The expression evaluated to a falsy value:\n\n' +
717717
' a(\n' +
718718
' (() => \'string\')()\n' +
719-
' // eslint-disable-next-line\n' +
719+
' // eslint-disable-next-line operator-linebreak\n' +
720720
' ===\n' +
721721
' 123 instanceof\n' +
722722
' Buffer\n' +

0 commit comments

Comments
 (0)