summaryrefslogtreecommitdiff
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2017-04-07 16:18:02 +0200
committerMyles Borins <mylesborins@google.com>2017-07-11 17:43:46 +0100
commit9c67032b9a5e10de00ec0e3b55e43a026ffcc781 (patch)
treea59fd70c2a03f729e79a2e6d5cf00ff1dc2b2b85 /.eslintrc.yaml
parent2411318f600ef3d0f16c315ff4e4e99f34d6e0eb (diff)
downloadnode-new-9c67032b9a5e10de00ec0e3b55e43a026ffcc781.tar.gz
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 <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml2
1 files changed, 1 insertions, 1 deletions
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