tools: enforce two arguments in assert.throws

Enables the requireTwo option of our custom rule.

PR-URL: https://github.com/nodejs/node/pull/12270
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Michaël Zasso committed 2017-04-13 11:31:54 +02:00
1 parent 9de2e159c4
commit a4b9c585b3
1 file changed
+1 -1
+1 -1
View File
@@ -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