Skip to content

Commit

Permalink
tools: enforce two arguments in assert.throws
Browse files Browse the repository at this point in the history
Enables the requireTwo option of our custom rule.

PR-URL: #12270
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
targos committed Apr 13, 2017
1 parent 9de2e15 commit a4b9c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ rules:

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

# Global scoped method and vars
Expand Down

0 comments on commit a4b9c58

Please sign in to comment.