mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
1 parent
9de2e159c4
commit
a4b9c585b3
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user