@@ -1441,6 +1441,7 @@ of the four basic stream classes (`stream.Writable`, `stream.Readable`, |
1441 | 1441 | `stream.Duplex`, or `stream.Transform`), making sure they call the appropriate |
1442 | 1442 | parent class constructor: |
1443 | 1443 |
|
| 1444 | +<!-- eslint-disable no-useless-constructor --> |
1444 | 1445 | ```js |
1445 | 1446 | const { Writable } = require('stream'); |
1446 | 1447 |
|
@@ -1531,6 +1532,7 @@ changes: |
1531 | 1532 | * `final` {Function} Implementation for the |
1532 | 1533 | [`stream._final()`][stream-_final] method. |
1533 | 1534 |
|
| 1535 | +<!-- eslint-disable no-useless-constructor --> |
1534 | 1536 | ```js |
1535 | 1537 | const { Writable } = require('stream'); |
1536 | 1538 |
|
@@ -1702,11 +1704,6 @@ required elements of a custom [`Writable`][] stream instance: |
1702 | 1704 | const { Writable } = require('stream'); |
1703 | 1705 |
|
1704 | 1706 | class MyWritable extends Writable { |
1705 | | - constructor(options) { |
1706 | | - super(options); |
1707 | | - // ... |
1708 | | - } |
1709 | | - |
1710 | 1707 | _write(chunk, encoding, callback) { |
1711 | 1708 | if (chunk.toString().indexOf('a') >= 0) { |
1712 | 1709 | callback(new Error('chunk is invalid')); |
@@ -1780,6 +1777,7 @@ constructor and implement the `readable._read()` method. |
1780 | 1777 | * `destroy` {Function} Implementation for the |
1781 | 1778 | [`stream._destroy()`][readable-_destroy] method. |
1782 | 1779 |
|
| 1780 | +<!-- eslint-disable no-useless-constructor --> |
1783 | 1781 | ```js |
1784 | 1782 | const { Readable } = require('stream'); |
1785 | 1783 |
|
@@ -2038,6 +2036,7 @@ changes: |
2038 | 2036 | * `writableHighWaterMark` {number} Sets `highWaterMark` for the writable side |
2039 | 2037 | of the stream. Has no effect if `highWaterMark` is provided. |
2040 | 2038 |
|
| 2039 | +<!-- eslint-disable no-useless-constructor --> |
2041 | 2040 | ```js |
2042 | 2041 | const { Duplex } = require('stream'); |
2043 | 2042 |
|
@@ -2192,6 +2191,7 @@ output on the `Readable` side is not consumed. |
2192 | 2191 | * `flush` {Function} Implementation for the [`stream._flush()`][stream-_flush] |
2193 | 2192 | method. |
2194 | 2193 |
|
| 2194 | +<!-- eslint-disable no-useless-constructor --> |
2195 | 2195 | ```js |
2196 | 2196 | const { Transform } = require('stream'); |
2197 | 2197 |
|
|