Skip to content

Commit

Permalink
doc: activate no-multiple-empty-lines rule
Browse files Browse the repository at this point in the history
This enables the `no-multiple-empty-lines` eslint rule for the docs.

PR-URL: #18747
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matheus Marchini <[email protected]>
  • Loading branch information
BridgeAR authored and MylesBorins committed Feb 21, 2018
1 parent 20ad397 commit cd2fa04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
3 changes: 3 additions & 0 deletions doc/.eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ rules:
no-var: error
prefer-const: error
prefer-rest-params: error

# Stylistic Issues
no-multiple-empty-lines: [error, {max: 1, maxEOF: 0, maxBOF: 0}]
8 changes: 0 additions & 8 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ console.log(buf1.toString());
// Prints: this is a tC)st
console.log(buf1.toString('ascii'));


const buf2 = new Buffer('7468697320697320612074c3a97374', 'hex');

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


const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');

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


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

// Prints: 4
Expand Down Expand Up @@ -1475,7 +1472,6 @@ console.log(buf.lastIndexOf('buffer', 5));
// Prints: -1
console.log(buf.lastIndexOf('buffer', 4));


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

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


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

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


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

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


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

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


const buf2 = Buffer.from('tést');

// Prints: 74c3a97374
Expand Down
3 changes: 0 additions & 3 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
s;
`, { context: contextifiedSandbox });


// Step 2
//
// "Link" the imported dependencies of this Module to it.
Expand Down Expand Up @@ -132,7 +131,6 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
}
await bar.link(linker);


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

bar.instantiate();


// Step 4
//
// Evaluate the Module. The evaluate() method returns a Promise with a single
Expand Down

0 comments on commit cd2fa04

Please sign in to comment.