summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 99cef88669..8aa090e889 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -160,6 +160,10 @@ module.exports = {
'no-restricted-syntax': [
'error',
{
+ selector: "CallExpression[callee.object.name='assert'][callee.property.name='deepStrictEqual'][arguments.2.type='Literal']",
+ message: 'Do not use a literal for the third argument of assert.deepStrictEqual()'
+ },
+ {
selector: "CallExpression[callee.object.name='assert'][callee.property.name='doesNotThrow']",
message: 'Please replace `assert.doesNotThrow()` and add a comment next to the code instead.'
},