From 9c67032b9a5e10de00ec0e3b55e43a026ffcc781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 7 Apr 2017 16:18:02 +0200 Subject: [PATCH] tools: enforce two arguments in assert.throws Enables the requireTwo option of our custom rule. PR-URL: https://github.com/nodejs/node/pull/12270 Backport-PR-URL: https://github.com/nodejs/node/pull/13785 Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott --- .eslintrc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 21ed2b558c..339a025d12 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -146,7 +146,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-useless-regex-char-class-escape: [2, { override: ['[', ']'] }] # Global scoped method and vars