summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-13 19:23:00 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-21 22:58:12 +0100
commit5a3623af746b90b7c2b43d447a3ad345374bd498 (patch)
tree3546f7da1b6eda5d8b1575e39e3d6307aeaa3ae2 /.eslintrc.js
parentab3f7afacc0b8d76737935649e23c72ef61502c8 (diff)
downloadandroid-node-v8-5a3623af746b90b7c2b43d447a3ad345374bd498.tar.gz
android-node-v8-5a3623af746b90b7c2b43d447a3ad345374bd498.tar.bz2
android-node-v8-5a3623af746b90b7c2b43d447a3ad345374bd498.zip
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 f8e6e78769..4863bbd998 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.',
},