mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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: https://github.com/nodejs/node/pull/12293 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
758b8b6e5d
commit
6f202ef857
1 file changed
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user