Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-13 21:23:00 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-22 00:58:12 +0300
commit5a3623af746b90b7c2b43d447a3ad345374bd498 (patch)
tree3546f7da1b6eda5d8b1575e39e3d6307aeaa3ae2 /.eslintrc.js
parentab3f7afacc0b8d76737935649e23c72ef61502c8 (diff)
assert: validate required arguments
This validates most `assert` functions to verify that the required arguments are indeed passed to the function. PR-URL: https://github.com/nodejs/node/pull/26641 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index f8e6e78769c..4863bbd9986 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -211,22 +211,6 @@ module.exports = {
message: 'Use `new` keyword when throwing an `Error`.',
},
{
- selector: "CallExpression[callee.property.name='notDeepStrictEqual'][arguments.length<2]",
- message: 'assert.notDeepStrictEqual() must be invoked with at least two arguments.',
- },
- {
- selector: "CallExpression[callee.property.name='deepStrictEqual'][arguments.length<2]",
- message: 'assert.deepStrictEqual() must be invoked with at least two arguments.',
- },
- {
- selector: "CallExpression[callee.property.name='notStrictEqual'][arguments.length<2]",
- message: 'assert.notStrictEqual() must be invoked with at least two arguments.',
- },
- {
- selector: "CallExpression[callee.property.name='strictEqual'][arguments.length<2]",
- message: 'assert.strictEqual() must be invoked with at least two arguments.',
- },
- {
selector: "CallExpression[callee.property.name='notDeepStrictEqual'][arguments.0.type='Literal']:not([arguments.1.type='Literal']):not([arguments.1.type='ObjectExpression']):not([arguments.1.type='ArrayExpression']):not([arguments.1.type='UnaryExpression'])",
message: 'The first argument should be the `actual`, not the `expected` value.',
},