doc: activate no-multiple-empty-lines rule

This enables the `no-multiple-empty-lines` eslint rule for the docs.

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Ruben Bridgewater authored and Myles Borins committed 2018-02-21 18:12:27 -05:00
1 parent 20ad397f93
commit cd2fa0412f
3 files changed
+3 -11

No files matched your search

+3
View File
@@ -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
View File
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
-3
View File
@@ -93,7 +93,6 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
s;
`, { context: contextifiedSandbox });
// Step 2
//
// "Link" the imported dependencies of this Module to it.
@@ -132,7 +131,6 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
}
await bar.link(linker);
// Step 3
//
// Instantiate the top-level Module.
@@ -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