Skip to content

Commit a65dc66

Browse files
targosgibfahn
authored andcommitted
tools: enforce two arguments in assert.throws
Enables the requireTwo option of our custom rule. PR-URL: #12270 Backport-PR-URL: #13785 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 751896b commit a65dc66

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
@@ -146,7 +146,7 @@ rules:
146146

147147
# Custom rules in tools/eslint-rules
148148
align-multiline-assignment: 2
149-
assert-throws-arguments: [2, { requireTwo: false }]
149+
assert-throws-arguments: [2, { requireTwo: true }]
150150
no-useless-regex-char-class-escape: [2, { override: ['[', ']'] }]
151151

152152
# Global scoped method and vars

0 commit comments

Comments
 (0)