summaryrefslogtreecommitdiff
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-04-12 13:37:11 -0700
committerMyles Borins <myles.borins@gmail.com>2017-10-25 04:09:42 -0400
commit44cc39d278b20ec94b8516ee084350970cc5ea28 (patch)
tree3e7428f9ce20c2445a138df7977934e708e73805 /.eslintrc.yaml
parent4917d8cfef828b77bdd8f15cb4cdb7f5ee6babb3 (diff)
downloadnode-new-44cc39d278b20ec94b8516ee084350970cc5ea28.tar.gz
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. Backport-PR-URL: https://github.com/nodejs/node/pull/15479 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>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml3
1 files changed, 0 insertions, 3 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 080d521235..8deaa73d72 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -131,9 +131,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: error
no-trailing-spaces: error