Skip to content

Commit 54e8f48

Browse files
vsemozhetbytBridgeAR
authored andcommitted
doc: compact eslint directives in common/README
PR-URL: #17971 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 9fea7ea commit 54e8f48

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
@@ -557,10 +557,7 @@ implementation with tests from
557557
The http2.js module provides a handful of utilities for creating mock HTTP/2
558558
frames for testing of HTTP/2 endpoints
559559

560-
<!-- eslint-disable strict -->
561-
<!-- eslint-disable required-modules -->
562-
<!-- eslint-disable no-unused-vars -->
563-
<!-- eslint-disable no-undef -->
560+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
564561
```js
565562
const http2 = require('../common/http2');
566563
```
@@ -570,10 +567,7 @@ const http2 = require('../common/http2');
570567
The `http2.Frame` is a base class that creates a `Buffer` containing a
571568
serialized HTTP/2 frame header.
572569

573-
<!-- eslint-disable strict -->
574-
<!-- eslint-disable required-modules -->
575-
<!-- eslint-disable no-unused-vars -->
576-
<!-- eslint-disable no-undef -->
570+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
577571
```js
578572
// length is a 24-bit unsigned integer
579573
// type is an 8-bit unsigned integer identifying the frame type
@@ -592,10 +586,7 @@ The serialized `Buffer` may be retrieved using the `frame.data` property.
592586
The `http2.DataFrame` is a subclass of `http2.Frame` that serializes a `DATA`
593587
frame.
594588

595-
<!-- eslint-disable strict -->
596-
<!-- eslint-disable required-modules -->
597-
<!-- eslint-disable no-unused-vars -->
598-
<!-- eslint-disable no-undef -->
589+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
599590
```js
600591
// id is the 32-bit stream identifier
601592
// payload is a Buffer containing the DATA payload
@@ -612,10 +603,7 @@ socket.write(frame.data);
612603
The `http2.HeadersFrame` is a subclass of `http2.Frame` that serializes a
613604
`HEADERS` frame.
614605

615-
<!-- eslint-disable strict -->
616-
<!-- eslint-disable required-modules -->
617-
<!-- eslint-disable no-unused-vars -->
618-
<!-- eslint-disable no-undef -->
606+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
619607
```js
620608
// id is the 32-bit stream identifier
621609
// payload is a Buffer containing the HEADERS payload (see either
@@ -634,10 +622,7 @@ socket.write(frame.data);
634622
The `http2.SettingsFrame` is a subclass of `http2.Frame` that serializes an
635623
empty `SETTINGS` frame.
636624

637-
<!-- eslint-disable strict -->
638-
<!-- eslint-disable required-modules -->
639-
<!-- eslint-disable no-unused-vars -->
640-
<!-- eslint-disable no-undef -->
625+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
641626
```js
642627
// ack is a boolean indicating whether or not to set the ACK flag.
643628
const frame = new http2.SettingsFrame(ack);
@@ -650,10 +635,7 @@ socket.write(frame.data);
650635
Set to a `Buffer` instance that contains a minimal set of serialized HTTP/2
651636
request headers to be used as the payload of a `http2.HeadersFrame`.
652637

653-
<!-- eslint-disable strict -->
654-
<!-- eslint-disable required-modules -->
655-
<!-- eslint-disable no-unused-vars -->
656-
<!-- eslint-disable no-undef -->
638+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
657639
```js
658640
const frame = new http2.HeadersFrame(1, http2.kFakeRequestHeaders, 0, true);
659641

@@ -665,10 +647,7 @@ socket.write(frame.data);
665647
Set to a `Buffer` instance that contains a minimal set of serialized HTTP/2
666648
response headers to be used as the payload a `http2.HeadersFrame`.
667649

668-
<!-- eslint-disable strict -->
669-
<!-- eslint-disable required-modules -->
670-
<!-- eslint-disable no-unused-vars -->
671-
<!-- eslint-disable no-undef -->
650+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
672651
```js
673652
const frame = new http2.HeadersFrame(1, http2.kFakeResponseHeaders, 0, true);
674653

@@ -680,10 +659,7 @@ socket.write(frame.data);
680659
Set to a `Buffer` containing the preamble bytes an HTTP/2 client must send
681660
upon initial establishment of a connection.
682661

683-
<!-- eslint-disable strict -->
684-
<!-- eslint-disable required-modules -->
685-
<!-- eslint-disable no-unused-vars -->
686-
<!-- eslint-disable no-undef -->
662+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
687663
```js
688664
socket.write(http2.kClientMagic);
689665
```

0 commit comments

Comments
 (0)