summaryrefslogtreecommitdiff
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index e73e97dede..377f615e8a 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -135,8 +135,11 @@ rules:
no-mixed-spaces-and-tabs: error
no-multiple-empty-lines: [error, {max: 2, maxEOF: 0, maxBOF: 0}]
no-restricted-syntax: [error, {
+ selector: "CallExpression[callee.object.name='assert'][callee.property.name='doesNotThrow']",
+ message: "Please replace `assert.doesNotThrow()` and add a comment next to the code instead."
+ }, {
selector: "CallExpression[callee.object.name='assert'][callee.property.name='throws'][arguments.1.type='Literal']:not([arguments.1.regex])",
- message: "use a regular expression for second argument of assert.throws()"
+ message: "Use a regular expression for second argument of assert.throws()"
}, {
selector: "CallExpression[callee.object.name='assert'][callee.property.name='throws'][arguments.length<2]",
message: "assert.throws() must be invoked with at least two arguments."