Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f176124

Browse filesBrowse files
Trotttargos
authored andcommitted
lib,tools: remove empty lines between JSDoc tags
This is in preparation for enabling a recommended JSDoc lint rule. PR-URL: #41147 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent c486da1 commit f176124
Copy full SHA for f176124

File tree

Expand file treeCollapse file tree

7 files changed

+63
-25
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

7 files changed

+63
-25
lines changed
Open diff view settings
Collapse file

‎lib/internal/blob.js‎

Copy file name to clipboardExpand all lines: lib/internal/blob.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ function getSource(source, endings) {
123123
class Blob {
124124
/**
125125
* @typedef {string|ArrayBuffer|ArrayBufferView|Blob} SourcePart
126-
*
126+
*/
127+
128+
/**
127129
* @param {SourcePart[]} [sources]
128130
* @param {{
129131
* endings? : string,
Collapse file

‎lib/internal/webstreams/adapters.js‎

Copy file name to clipboardExpand all lines: lib/internal/webstreams/adapters.js
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ const { UV_EOF } = internalBinding('uv');
7979
* @typedef {import('../../stream').Readable} Readable
8080
* @typedef {import('./writablestream').WritableStream} WritableStream
8181
* @typedef {import('./readablestream').ReadableStream} ReadableStream
82-
*
82+
*/
83+
84+
/**
8385
* @typedef {import('../abort_controller').AbortSignal} AbortSignal
8486
*/
8587

@@ -525,7 +527,9 @@ function newStreamReadableFromReadableStream(readableStream, options = {}) {
525527
* @typedef {import('./readablestream').ReadableWritablePair
526528
* } ReadableWritablePair
527529
* @typedef {import('../../stream').Duplex} Duplex
528-
*
530+
*/
531+
532+
/**
529533
* @param {Duplex} duplex
530534
* @returns {ReadableWritablePair}
531535
*/
Collapse file

‎lib/internal/webstreams/queuingstrategies.js‎

Copy file name to clipboardExpand all lines: lib/internal/webstreams/queuingstrategies.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const isCountQueuingStrategy =
3838
* @callback QueuingStrategySize
3939
* @param {any} chunk
4040
* @returns {number}
41-
*
41+
*/
42+
43+
/**
4244
* @typedef {{
4345
* highWaterMark : number,
4446
* size? : QueuingStrategySize,
Collapse file

‎lib/internal/webstreams/readablestream.js‎

Copy file name to clipboardExpand all lines: lib/internal/webstreams/readablestream.js
+24-9Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,45 +140,60 @@ const kPull = Symbol('kPull');
140140
* @typedef {import('./queuingstrategies').QueuingStrategySize
141141
* } QueuingStrategySize
142142
* @typedef {import('./writablestream').WritableStream} WritableStream
143-
*
143+
*/
144+
145+
/**
144146
* @typedef {ReadableStreamDefaultController | ReadableByteStreamController
145147
* } ReadableStreamController
146-
*
148+
*/
149+
150+
/**
147151
* @typedef {ReadableStreamDefaultReader | ReadableStreamBYOBReader
148152
* } ReadableStreamReader
149-
*
153+
*/
154+
155+
/**
150156
* @callback UnderlyingSourceStartCallback
151157
* @param {ReadableStreamController} controller
152158
* @returns { any | Promise<void> }
153-
*
159+
*/
160+
161+
/**
154162
* @callback UnderlyingSourcePullCallback
155163
* @param {ReadableStreamController} controller
156164
* @returns { Promise<void> }
157-
*
165+
*/
166+
167+
/**
158168
* @callback UnderlyingSourceCancelCallback
159169
* @param {any} reason
160170
* @returns { Promise<void> }
161-
*
171+
*/
172+
173+
/**
162174
* @typedef {{
163175
* readable: ReadableStream,
164176
* writable: WritableStream,
165177
* }} ReadableWritablePair
166-
*
178+
*/
179+
180+
/**
167181
* @typedef {{
168182
* preventClose? : boolean,
169183
* preventAbort? : boolean,
170184
* preventCancel? : boolean,
171185
* signal? : AbortSignal,
172186
* }} StreamPipeOptions
173-
*
187+
*/
188+
189+
/**
174190
* @typedef {{
175191
* start? : UnderlyingSourceStartCallback,
176192
* pull? : UnderlyingSourcePullCallback,
177193
* cancel? : UnderlyingSourceCancelCallback,
178194
* type? : "bytes",
179195
* autoAllocateChunkSize? : number
180196
* }} UnderlyingSource
181-
*
182197
*/
183198

184199
class ReadableStream {
Collapse file

‎lib/internal/webstreams/transformstream.js‎

Copy file name to clipboardExpand all lines: lib/internal/webstreams/transformstream.js
+12-4Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,27 @@ const assert = require('internal/assert');
7070
* } QueuingStrategy
7171
* @typedef {import('./queuingstrategies').QueuingStrategySize
7272
* } QueuingStrategySize
73-
*
73+
*/
74+
75+
/**
7476
* @callback TransformerStartCallback
7577
* @param {TransformStreamDefaultController} controller;
76-
*
78+
*/
79+
80+
/**
7781
* @callback TransformerFlushCallback
7882
* @param {TransformStreamDefaultController} controller;
7983
* @returns {Promise<void>}
80-
*
84+
*/
85+
86+
/**
8187
* @callback TransformerTransformCallback
8288
* @param {any} chunk
8389
* @param {TransformStreamDefaultController} controller
8490
* @returns {Promise<void>}
85-
*
91+
*/
92+
93+
/**
8694
* @typedef {{
8795
* start? : TransformerStartCallback,
8896
* transform? : TransformerTransformCallback,
Collapse file

‎lib/internal/webstreams/writablestream.js‎

Copy file name to clipboardExpand all lines: lib/internal/webstreams/writablestream.js
+15-5Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,32 @@ const kError = Symbol('kError');
8383
* } QueuingStrategy
8484
* @typedef {import('./queuingstrategies').QueuingStrategySize
8585
* } QueuingStrategySize
86-
*
86+
*/
87+
88+
/**
8789
* @callback UnderlyingSinkStartCallback
8890
* @param {WritableStreamDefaultController} controller
89-
*
91+
*/
92+
93+
/**
9094
* @callback UnderlyingSinkWriteCallback
9195
* @param {any} chunk
9296
* @param {WritableStreamDefaultController} controller
9397
* @returns {Promise<void>}
94-
*
98+
*/
99+
100+
/**
95101
* @callback UnderlyingSinkCloseCallback
96102
* @returns {Promise<void>}
97-
*
103+
*/
104+
105+
/**
98106
* @callback UnderlyingSinkAbortCallback
99107
* @param {any} reason
100108
* @returns {Promise<void>}
101-
*
109+
*/
110+
111+
/**
102112
* @typedef {{
103113
* start? : UnderlyingSinkStartCallback,
104114
* write? : UnderlyingSinkWriteCallback,
Collapse file

‎tools/eslint-rules/crypto-check.js‎

Copy file name to clipboardExpand all lines: tools/eslint-rules/crypto-check.js
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/**
22
* @fileoverview Check that common.hasCrypto is used if crypto, tls,
33
* https, or http2 modules are required.
4-
*
5-
* This rule can be ignored using // eslint-disable-line crypto-check
6-
*
74
* @author Daniel Bevenius <daniel.bevenius@gmail.com>
85
*/
96
'use strict';

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.