Skip to content

Commit 26af2e5

Browse files
committed
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.
1 parent 91727d3 commit 26af2e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-assert.js

Lines changed: 4 additions & 4 deletions
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)