]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/docs/src/rules/no-multiple-empty-lines.md
import 8.41.0 source
[pve-eslint.git] / eslint / docs / src / rules / no-multiple-empty-lines.md
index 8ca5d2384cfaa3ee61d926071ba60a7a45078c61..5457c54c1f0b9f7c08c5dab9ed7592acfa509876 100644 (file)
@@ -1,6 +1,5 @@
 ---
 title: no-multiple-empty-lines
-layout: doc
 rule_type: layout
 ---
 
@@ -32,6 +31,7 @@ Examples of **incorrect** code for this rule with the default `{ "max": 2 }` opt
 var foo = 5;
 
 
+
 var bar = 3;
 ```
 
@@ -46,6 +46,7 @@ Examples of **correct** code for this rule with the default `{ "max": 2 }` optio
 
 var foo = 5;
 
+
 var bar = 3;
 ```
 
@@ -62,8 +63,10 @@ Examples of **incorrect** code for this rule with the `{ max: 2, maxEOF: 0 }` op
 
 var foo = 5;
 
+
 var bar = 3;
 
+
 ```
 
 :::
@@ -77,6 +80,7 @@ Examples of **correct** code for this rule with the `{ max: 2, maxEOF: 0 }` opti
 
 var foo = 5;
 
+
 var bar = 3;
 ```
 
@@ -86,29 +90,37 @@ var bar = 3;
 
 **Incorrect**:
 
+::: incorrect
+
 ```js
-1    /*eslint no-multiple-empty-lines: ["error", { "max": 2, "maxEOF": 0 }]*/⏎
-2    
-3    var foo = 5;⏎
-4    
-5    
-6    var bar = 3;⏎
-7    
-8
+/*eslint no-multiple-empty-lines: ["error", { "max": 2, "maxEOF": 0 }]*/⏎
+⏎
+var foo = 5;⏎
+⏎
+⏎
+var bar = 3;⏎
+⏎
+
 ```
 
+:::
+
 **Correct**:
 
+::: correct
+
 ```js
-1    /*eslint no-multiple-empty-lines: ["error", { "max": 2, "maxEOF": 0 }]*/⏎
-2    
-3    var foo = 5;⏎
-4    
-5    
-6    var bar = 3;⏎
-7
+/*eslint no-multiple-empty-lines: ["error", { "max": 2, "maxEOF": 0 }]*/⏎
+⏎
+var foo = 5;⏎
+⏎
+⏎
+var bar = 3;⏎
+
 ```
 
+:::
+
 ### maxBOF
 
 Examples of **incorrect** code for this rule with the `{ max: 2, maxBOF: 1 }` options:
@@ -118,8 +130,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;
 ```
 
@@ -134,6 +148,7 @@ Examples of **correct** code for this rule with the `{ max: 2, maxBOF: 1 }` opti
 
 var foo = 5;
 
+
 var bar = 3;
 ```