From 0c64d475561fc13038631b4aab1c98a4c830c9d2 Mon Sep 17 00:00:00 2001 From: jonz94 Date: Sat, 28 Jan 2023 23:41:41 +0800 Subject: [PATCH 1/2] docs: Fix examples in no-multiple-empty-lines rule --- docs/src/rules/no-multiple-empty-lines.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/rules/no-multiple-empty-lines.md b/docs/src/rules/no-multiple-empty-lines.md index a997103966b..a3aa13ecac5 100644 --- a/docs/src/rules/no-multiple-empty-lines.md +++ b/docs/src/rules/no-multiple-empty-lines.md @@ -31,6 +31,7 @@ Examples of **incorrect** code for this rule with the default `{ "max": 2 }` opt var foo = 5; + var bar = 3; ``` @@ -45,6 +46,7 @@ Examples of **correct** code for this rule with the default `{ "max": 2 }` optio var foo = 5; + var bar = 3; ``` @@ -61,8 +63,10 @@ Examples of **incorrect** code for this rule with the `{ max: 2, maxEOF: 0 }` op var foo = 5; + var bar = 3; + ``` ::: @@ -76,6 +80,7 @@ Examples of **correct** code for this rule with the `{ max: 2, maxEOF: 0 }` opti var foo = 5; + var bar = 3; ``` @@ -117,8 +122,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; ``` @@ -133,6 +140,7 @@ Examples of **correct** code for this rule with the `{ max: 2, maxBOF: 1 }` opti var foo = 5; + var bar = 3; ``` From 1d4b1d12bf05e236dde0e9f4e2c53453884ab58b Mon Sep 17 00:00:00 2001 From: jonz94 Date: Sat, 28 Jan 2023 23:42:02 +0800 Subject: [PATCH 2/2] chore: Add missing `::: correct` and `::: incorrect` --- docs/src/rules/no-multiple-empty-lines.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/rules/no-multiple-empty-lines.md b/docs/src/rules/no-multiple-empty-lines.md index a3aa13ecac5..81bb3127356 100644 --- a/docs/src/rules/no-multiple-empty-lines.md +++ b/docs/src/rules/no-multiple-empty-lines.md @@ -90,6 +90,8 @@ var bar = 3; **Incorrect**: +::: incorrect + ```js 1 /*eslint no-multiple-empty-lines: ["error", { "max": 2, "maxEOF": 0 }]*/⏎ 2 ⏎ @@ -101,8 +103,12 @@ var bar = 3; 8 ``` +::: + **Correct**: +::: correct + ```js 1 /*eslint no-multiple-empty-lines: ["error", { "max": 2, "maxEOF": 0 }]*/⏎ 2 ⏎ @@ -113,6 +119,8 @@ var bar = 3; 7 ``` +::: + ### maxBOF Examples of **incorrect** code for this rule with the `{ max: 2, maxBOF: 1 }` options: