diff --git a/.eslintrc.js b/.eslintrc.js index e4192c3539925c..8347d066ed22ec 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -159,6 +159,10 @@ module.exports = { // and test/.eslintrc.yaml. '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.'