Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f1ea2c8

Browse filesBrowse files
Trotttargos
authored andcommitted
tools: update markdown linter rules
Update remark-preset-lint-node to 2.2.0 which includes improved YAML comment linting for our markdown files. PR-URL: #38384 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent f2c0258 commit f1ea2c8
Copy full SHA for f1ea2c8

File tree

Expand file treeCollapse file tree

2 files changed

+11
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+11
-6
lines changed
Open diff view settings
Collapse file

‎tools/lint-md.js‎

Copy file name to clipboardExpand all lines: tools/lint-md.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49667,6 +49667,11 @@ function validateMeta(node, file, meta) {
4966749667

4966849668
function validateYAMLComments(tree, file) {
4966949669
unistUtilVisit(tree, "html", function visitor(node) {
49670+
if (node.value.startsWith("<!--YAML\n"))
49671+
file.message(
49672+
"Expected `<!-- YAML`, found `<!--YAML`. Please add a space",
49673+
node
49674+
);
4967049675
if (!node.value.startsWith("<!-- YAML\n")) return;
4967149676
try {
4967249677
const meta = jsYaml$2.load("#" + node.value.slice(0, -"-->".length));
Collapse file

‎tools/node-lint-md-cli-rollup/package-lock.json‎

Copy file name to clipboardExpand all lines: tools/node-lint-md-cli-rollup/package-lock.json
+6-6Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.