From 0a463dbf7cc5a77d442879c9117204d4d38db972 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Fri, 3 Jul 2020 21:44:38 +0200 Subject: [PATCH] Docs: fix no-multiple-empty-lines examples (fixes #13432) (#13433) --- docs/rules/no-multiple-empty-lines.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/rules/no-multiple-empty-lines.md b/docs/rules/no-multiple-empty-lines.md index 836cb18e471..aff6c2e6f1b 100644 --- a/docs/rules/no-multiple-empty-lines.md +++ b/docs/rules/no-multiple-empty-lines.md @@ -23,6 +23,8 @@ Examples of **incorrect** code for this rule with the default `{ "max": 2 }` opt var foo = 5; + + var bar = 3; ``` @@ -33,6 +35,7 @@ Examples of **correct** code for this rule with the default `{ "max": 2 }` optio var foo = 5; + var bar = 3; ``` @@ -45,7 +48,10 @@ Examples of **incorrect** code for this rule with the `{ max: 2, maxEOF: 0 }` op var foo = 5; + var bar = 3; + + ``` Examples of **correct** code for this rule with the `{ max: 2, maxEOF: 0 }` options: @@ -55,6 +61,7 @@ Examples of **correct** code for this rule with the `{ max: 2, maxEOF: 0 }` opti var foo = 5; + var bar = 3; ``` @@ -92,8 +99,10 @@ Examples of **incorrect** code for this rule with the `{ max: 2, maxBOF: 1 }` op ```js /*eslint no-multiple-empty-lines: ["error", { "max": 2, "maxBOF": 1 }]*/ + var foo = 5; + var bar = 3; ``` @@ -104,6 +113,7 @@ Examples of **correct** code for this rule with the `{ max: 2, maxBOF: 1 }` opti var foo = 5; + var bar = 3; ```