Permalink
Browse files

tools: remove assert.fail() lint rule

assert.fail() has been updated to accept a single argument so that is no
longer an error. Remove lint rule that checks for assert.fail() with a
single argument.

PR-URL: #12293
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
Trott committed Apr 12, 2017
1 parent 758b8b6 commit 6f202ef85710374a832cb38701302d999b18fe5f
Showing with 0 additions and 3 deletions.
  1. +0 −3 .eslintrc.yaml
View
@@ -110,9 +110,6 @@ rules:
}, {
selector: "ThrowStatement > CallExpression[callee.name=/Error$/]",
message: "Use new keyword when throwing an Error."
}, {
selector: "CallExpression[callee.object.name='assert'][callee.property.name='fail'][arguments.length=1]",
message: "assert.fail() message should be third argument"
}]
no-tabs: 2
no-trailing-spaces: 2

0 comments on commit 6f202ef

Please sign in to comment.