summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 9aa90c6366..cfada1f65c 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -184,7 +184,11 @@ module.exports = {
},
{
selector: "CallExpression[callee.property.name='doesNotThrow']",
- message: 'Please replace `assert.doesNotThrow()` and add a comment next to the code instead.',
+ message: 'Do not use `assert.doesNotThrow()`. Write the code without the wrapper and add a comment instead.',
+ },
+ {
+ selector: "CallExpression[callee.property.name='doesNotReject']",
+ message: 'Do not use `assert.doesNotReject()`. Write the code without the wrapper and add a comment instead.',
},
{
selector: "CallExpression[callee.property.name='rejects'][arguments.length<2]",