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 c569f70

Browse filesBrowse files
BridgeARMylesBorins
authored andcommitted
doc: activate no-multiple-empty-lines rule
This enables the `no-multiple-empty-lines` eslint rule for the docs. PR-URL: #18747 Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com>
1 parent 00b629b commit c569f70
Copy full SHA for c569f70

File tree

Expand file treeCollapse file tree

3 files changed

+3
-11
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-11
lines changed
Open diff view settings
Collapse file

‎doc/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: doc/.eslintrc.yaml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ rules:
1212
no-var: error
1313
prefer-const: error
1414
prefer-rest-params: error
15+
16+
# Stylistic Issues
17+
no-multiple-empty-lines: [error, {max: 1, maxEOF: 0, maxBOF: 0}]
Collapse file

‎doc/api/buffer.md‎

Copy file name to clipboardExpand all lines: doc/api/buffer.md
-8Lines changed: 0 additions & 8 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ console.log(buf1.toString());
500500
// Prints: this is a tC)st
501501
console.log(buf1.toString('ascii'));
502502

503-
504503
const buf2 = new Buffer('7468697320697320612074c3a97374', 'hex');
505504

506505
// Prints: this is a tést
@@ -908,7 +907,6 @@ console.log(buf1.toString());
908907
// Prints: this is a tC)st
909908
console.log(buf1.toString('ascii'));
910909

911-
912910
const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');
913911

914912
// Prints: this is a tést
@@ -1364,7 +1362,6 @@ console.log(buf.indexOf(Buffer.from('a buffer example')));
13641362
// Prints: 8
13651363
console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8)));
13661364

1367-
13681365
const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2');
13691366

13701367
// Prints: 4
@@ -1475,7 +1472,6 @@ console.log(buf.lastIndexOf('buffer', 5));
14751472
// Prints: -1
14761473
console.log(buf.lastIndexOf('buffer', 4));
14771474

1478-
14791475
const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2');
14801476

14811477
// Prints: 6
@@ -1998,7 +1994,6 @@ buf1.swap16();
19981994
// Prints: <Buffer 02 01 04 03 06 05 08 07>
19991995
console.log(buf1);
20001996

2001-
20021997
const buf2 = Buffer.from([0x1, 0x2, 0x3]);
20031998

20041999
// Throws an exception: RangeError: Buffer size must be a multiple of 16-bits
@@ -2028,7 +2023,6 @@ buf1.swap32();
20282023
// Prints: <Buffer 04 03 02 01 08 07 06 05>
20292024
console.log(buf1);
20302025

2031-
20322026
const buf2 = Buffer.from([0x1, 0x2, 0x3]);
20332027

20342028
// Throws an exception: RangeError: Buffer size must be a multiple of 32-bits
@@ -2058,7 +2052,6 @@ buf1.swap64();
20582052
// Prints: <Buffer 08 07 06 05 04 03 02 01>
20592053
console.log(buf1);
20602054

2061-
20622055
const buf2 = Buffer.from([0x1, 0x2, 0x3]);
20632056

20642057
// Throws an exception: RangeError: Buffer size must be a multiple of 64-bits
@@ -2130,7 +2123,6 @@ console.log(buf1.toString('ascii'));
21302123
// Prints: abcde
21312124
console.log(buf1.toString('ascii', 0, 5));
21322125

2133-
21342126
const buf2 = Buffer.from('tést');
21352127

21362128
// Prints: 74c3a97374
Collapse file

‎doc/api/vm.md‎

Copy file name to clipboardExpand all lines: doc/api/vm.md
-3Lines changed: 0 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
9393
s;
9494
`, { context: contextifiedSandbox });
9595

96-
9796
// Step 2
9897
//
9998
// "Link" the imported dependencies of this Module to it.
@@ -132,7 +131,6 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
132131
}
133132
await bar.link(linker);
134133

135-
136134
// Step 3
137135
//
138136
// Instantiate the top-level Module.
@@ -142,7 +140,6 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
142140

143141
bar.instantiate();
144142

145-
146143
// Step 4
147144
//
148145
// Evaluate the Module. The evaluate() method returns a Promise with a single

0 commit comments

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