Skip to content

Commit ef31701

Browse files
vsemozhetbytMylesBorins
authored andcommitted
doc: compact eslint directives in common/README
PR-URL: #17971 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent b817a8a commit ef31701

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

test/common/README.md

+8-32
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,7 @@ Returns the result of
528528
The http2.js module provides a handful of utilities for creating mock HTTP/2
529529
frames for testing of HTTP/2 endpoints
530530

531-
<!-- eslint-disable strict -->
532-
<!-- eslint-disable required-modules -->
533-
<!-- eslint-disable no-unused-vars -->
534-
<!-- eslint-disable no-undef -->
531+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
535532
```js
536533
const http2 = require('../common/http2');
537534
```
@@ -541,10 +538,7 @@ const http2 = require('../common/http2');
541538
The `http2.Frame` is a base class that creates a `Buffer` containing a
542539
serialized HTTP/2 frame header.
543540

544-
<!-- eslint-disable strict -->
545-
<!-- eslint-disable required-modules -->
546-
<!-- eslint-disable no-unused-vars -->
547-
<!-- eslint-disable no-undef -->
541+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
548542
```js
549543
// length is a 24-bit unsigned integer
550544
// type is an 8-bit unsigned integer identifying the frame type
@@ -563,10 +557,7 @@ The serialized `Buffer` may be retrieved using the `frame.data` property.
563557
The `http2.DataFrame` is a subclass of `http2.Frame` that serializes a `DATA`
564558
frame.
565559

566-
<!-- eslint-disable strict -->
567-
<!-- eslint-disable required-modules -->
568-
<!-- eslint-disable no-unused-vars -->
569-
<!-- eslint-disable no-undef -->
560+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
570561
```js
571562
// id is the 32-bit stream identifier
572563
// payload is a Buffer containing the DATA payload
@@ -583,10 +574,7 @@ socket.write(frame.data);
583574
The `http2.HeadersFrame` is a subclass of `http2.Frame` that serializes a
584575
`HEADERS` frame.
585576

586-
<!-- eslint-disable strict -->
587-
<!-- eslint-disable required-modules -->
588-
<!-- eslint-disable no-unused-vars -->
589-
<!-- eslint-disable no-undef -->
577+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
590578
```js
591579
// id is the 32-bit stream identifier
592580
// payload is a Buffer containing the HEADERS payload (see either
@@ -604,10 +592,7 @@ socket.write(frame.data);
604592
The `http2.SettingsFrame` is a subclass of `http2.Frame` that serializes an
605593
empty `SETTINGS` frame.
606594

607-
<!-- eslint-disable strict -->
608-
<!-- eslint-disable required-modules -->
609-
<!-- eslint-disable no-unused-vars -->
610-
<!-- eslint-disable no-undef -->
595+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
611596
```js
612597
// ack is a boolean indicating whether or not to set the ACK flag.
613598
const frame = new http2.SettingsFrame(ack);
@@ -620,10 +605,7 @@ socket.write(frame.data);
620605
Set to a `Buffer` instance that contains a minimal set of serialized HTTP/2
621606
request headers to be used as the payload of a `http2.HeadersFrame`.
622607

623-
<!-- eslint-disable strict -->
624-
<!-- eslint-disable required-modules -->
625-
<!-- eslint-disable no-unused-vars -->
626-
<!-- eslint-disable no-undef -->
608+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
627609
```js
628610
const frame = new http2.HeadersFrame(1, http2.kFakeRequestHeaders, 0, true);
629611

@@ -635,10 +617,7 @@ socket.write(frame.data);
635617
Set to a `Buffer` instance that contains a minimal set of serialized HTTP/2
636618
response headers to be used as the payload a `http2.HeadersFrame`.
637619

638-
<!-- eslint-disable strict -->
639-
<!-- eslint-disable required-modules -->
640-
<!-- eslint-disable no-unused-vars -->
641-
<!-- eslint-disable no-undef -->
620+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
642621
```js
643622
const frame = new http2.HeadersFrame(1, http2.kFakeResponseHeaders, 0, true);
644623

@@ -650,10 +629,7 @@ socket.write(frame.data);
650629
Set to a `Buffer` containing the preamble bytes an HTTP/2 client must send
651630
upon initial establishment of a connection.
652631

653-
<!-- eslint-disable strict -->
654-
<!-- eslint-disable required-modules -->
655-
<!-- eslint-disable no-unused-vars -->
656-
<!-- eslint-disable no-undef -->
632+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
657633
```js
658634
socket.write(http2.kClientMagic);
659635
```

0 commit comments

Comments
 (0)