Skip to content

Commit 69f7ce9

Browse files
committed
doc: activate no-multiple-empty-lines rule
This enables the `no-multiple-empty-lines` eslint rule for the docs. PR-URL: #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>
1 parent e9ac80b commit 69f7ce9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/.eslintrc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ rules:
1212
no-var: error
1313
prefer-const: error
1414
prefer-rest-params: error
15+
16+
# Stylistic Issues
17+
no-multiple-empty-lines: [error, {max: 1, maxEOF: 0, maxBOF: 0}]

doc/api/vm.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
9393
s;
9494
`, { context: contextifiedSandbox });
9595

96-
9796
// Step 2
9897
//
9998
// "Link" the imported dependencies of this Module to it.
@@ -132,7 +131,6 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
132131
}
133132
await bar.link(linker);
134133

135-
136134
// Step 3
137135
//
138136
// Instantiate the top-level Module.
@@ -142,7 +140,6 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
142140

143141
bar.instantiate();
144142

145-
146143
// Step 4
147144
//
148145
// Evaluate the Module. The evaluate() method returns a Promise with a single

0 commit comments

Comments
 (0)