Skip to content

Commit a4b9c58

Browse files
committed
tools: enforce two arguments in assert.throws
Enables the requireTwo option of our custom rule. PR-URL: #12270 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 9de2e15 commit a4b9c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.eslintrc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ rules:
142142

143143
# Custom rules in tools/eslint-rules
144144
align-multiline-assignment: 2
145-
assert-throws-arguments: [2, { requireTwo: false }]
145+
assert-throws-arguments: [2, { requireTwo: true }]
146146
no-unescaped-regexp-dot: 2
147147

148148
# Global scoped method and vars

0 commit comments

Comments
 (0)