diff options
author | cjihrig <cjihrig@gmail.com> | 2018-12-14 22:22:40 -0500 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-12-16 20:30:50 -0800 |
commit | 707b0a85344e16f38a6cded922df30361eaedd83 (patch) | |
tree | 84de938319f0d2dc407be220435102723d48fc10 /test | |
parent | 18f2bf7f9bd183f7baf08a705035fc99580a2c40 (diff) | |
download | android-node-v8-707b0a85344e16f38a6cded922df30361eaedd83.tar.gz android-node-v8-707b0a85344e16f38a6cded922df30361eaedd83.tar.bz2 android-node-v8-707b0a85344e16f38a6cded922df30361eaedd83.zip |
tools: enable no-useless-constructor lint rule
This commit enables ESLint's no-useless-constructor rule. Note
that the documentation examples that only include constructor
calls were left in tact.
PR-URL: https://github.com/nodejs/node/pull/25055
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-stream-writable-null.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/parallel/test-stream-writable-null.js b/test/parallel/test-stream-writable-null.js index 63e122a3b4..dc0f569ee6 100644 --- a/test/parallel/test-stream-writable-null.js +++ b/test/parallel/test-stream-writable-null.js @@ -5,10 +5,6 @@ const assert = require('assert'); const stream = require('stream'); class MyWritable extends stream.Writable { - constructor(opt) { - super(opt); - } - _write(chunk, encoding, callback) { assert.notStrictEqual(chunk, null); callback(); |