From 2c5cf8e68c772939e052c436a94d71d8de85a4ca Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 13 Feb 2018 01:52:02 +0100 Subject: [PATCH] doc: activate `no-multiple-empty-lines` rule This enables the `no-multiple-empty-lines` eslint rule for the docs. --- doc/.eslintrc.yaml | 3 +++ doc/api/vm.md | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/.eslintrc.yaml b/doc/.eslintrc.yaml index 8038836fe310db..c8c1612e3a100b 100644 --- a/doc/.eslintrc.yaml +++ b/doc/.eslintrc.yaml @@ -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}] diff --git a/doc/api/vm.md b/doc/api/vm.md index 824cd4d40345a3..e4ea6ca87a0f7e 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -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