GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: compact eslint directives in common/README · nodejs/node@9404573

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/common
    • README.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/common/README.md‎

Copy file name to clipboardExpand all lines: test/common/README.md
+8-32Lines changed: 8 additions & 32 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,7 @@ Returns the result of
509509
The http2.js module provides a handful of utilities for creating mock HTTP/2
510510
frames for testing of HTTP/2 endpoints
511511

512-
<!-- eslint-disable strict -->
513-
<!-- eslint-disable required-modules -->
514-
<!-- eslint-disable no-unused-vars -->
515-
<!-- eslint-disable no-undef -->
512+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
516513
```js
517514
const http2 = require('../common/http2');
518515
```
@@ -522,10 +519,7 @@ const http2 = require('../common/http2');
522519
The `http2.Frame` is a base class that creates a `Buffer` containing a
523520
serialized HTTP/2 frame header.
524521

525-
<!-- eslint-disable strict -->
526-
<!-- eslint-disable required-modules -->
527-
<!-- eslint-disable no-unused-vars -->
528-
<!-- eslint-disable no-undef -->
522+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
529523
```js
530524
// length is a 24-bit unsigned integer
531525
// type is an 8-bit unsigned integer identifying the frame type
@@ -544,10 +538,7 @@ The serialized `Buffer` may be retrieved using the `frame.data` property.
544538
The `http2.DataFrame` is a subclass of `http2.Frame` that serializes a `DATA`
545539
frame.
546540

547-
<!-- eslint-disable strict -->
548-
<!-- eslint-disable required-modules -->
549-
<!-- eslint-disable no-unused-vars -->
550-
<!-- eslint-disable no-undef -->
541+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
551542
```js
552543
// id is the 32-bit stream identifier
553544
// payload is a Buffer containing the DATA payload
@@ -564,10 +555,7 @@ socket.write(frame.data);
564555
The `http2.HeadersFrame` is a subclass of `http2.Frame` that serializes a
565556
`HEADERS` frame.
566557

567-
<!-- eslint-disable strict -->
568-
<!-- eslint-disable required-modules -->
569-
<!-- eslint-disable no-unused-vars -->
570-
<!-- eslint-disable no-undef -->
558+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
571559
```js
572560
// id is the 32-bit stream identifier
573561
// payload is a Buffer containing the HEADERS payload (see either
@@ -585,10 +573,7 @@ socket.write(frame.data);
585573
The `http2.SettingsFrame` is a subclass of `http2.Frame` that serializes an
586574
empty `SETTINGS` frame.
587575

588-
<!-- eslint-disable strict -->
589-
<!-- eslint-disable required-modules -->
590-
<!-- eslint-disable no-unused-vars -->
591-
<!-- eslint-disable no-undef -->
576+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
592577
```js
593578
// ack is a boolean indicating whether or not to set the ACK flag.
594579
const frame = new http2.SettingsFrame(ack);
@@ -601,10 +586,7 @@ socket.write(frame.data);
601586
Set to a `Buffer` instance that contains a minimal set of serialized HTTP/2
602587
request headers to be used as the payload of a `http2.HeadersFrame`.
603588

604-
<!-- eslint-disable strict -->
605-
<!-- eslint-disable required-modules -->
606-
<!-- eslint-disable no-unused-vars -->
607-
<!-- eslint-disable no-undef -->
589+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
608590
```js
609591
const frame = new http2.HeadersFrame(1, http2.kFakeRequestHeaders, 0, true);
610592

@@ -616,10 +598,7 @@ socket.write(frame.data);
616598
Set to a `Buffer` instance that contains a minimal set of serialized HTTP/2
617599
response headers to be used as the payload a `http2.HeadersFrame`.
618600

619-
<!-- eslint-disable strict -->
620-
<!-- eslint-disable required-modules -->
621-
<!-- eslint-disable no-unused-vars -->
622-
<!-- eslint-disable no-undef -->
601+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
623602
```js
624603
const frame = new http2.HeadersFrame(1, http2.kFakeResponseHeaders, 0, true);
625604

@@ -631,10 +610,7 @@ socket.write(frame.data);
631610
Set to a `Buffer` containing the preamble bytes an HTTP/2 client must send
632611
upon initial establishment of a connection.
633612

634-
<!-- eslint-disable strict -->
635-
<!-- eslint-disable required-modules -->
636-
<!-- eslint-disable no-unused-vars -->
637-
<!-- eslint-disable no-undef -->
613+
<!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
638614
```js
639615
socket.write(http2.kClientMagic);
640616
```

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.