From 85db7243ddb8706ed60ab64a7ddf604d0d7de493 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Thu, 16 Nov 2023 13:56:03 +0530 Subject: [PATCH] chore: upgrade `markdownlint` to 0.31.1 (#17754) * chore: upgrade markdownlint to 0.31.0 * chore: upgrade markdownlint to 0.31.1 * chore: upgrade markdownlint to 0.31.1 --- Makefile.js | 2 +- docs/src/library/link-card.md | 3 ++- docs/src/rules/prefer-destructuring.md | 2 +- docs/src/rules/template-tag-spacing.md | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile.js b/Makefile.js index 9671203f69bd..a0f60a2c1b89 100644 --- a/Makefile.js +++ b/Makefile.js @@ -16,7 +16,6 @@ const checker = require("npm-license"), glob = require("glob"), marked = require("marked"), matter = require("gray-matter"), - markdownlint = require("markdownlint"), os = require("os"), path = require("path"), semver = require("semver"), @@ -433,6 +432,7 @@ function getFirstVersionOfDeletion(filePath) { * @private */ function lintMarkdown(files) { + const markdownlint = require("markdownlint"); const config = yaml.load(fs.readFileSync(path.join(__dirname, "./.markdownlint.yml"), "utf8")), result = markdownlint.sync({ files, diff --git a/docs/src/library/link-card.md b/docs/src/library/link-card.md index db400f31d68c..d21291b1a60e 100644 --- a/docs/src/library/link-card.md +++ b/docs/src/library/link-card.md @@ -10,6 +10,7 @@ Links can be rendered as cards by using the `link` shortcode. The only required ## Examples + {% link "https://blog.izs.me/2010/12/an-open-letter-to-javascript-leaders-regarding/" %} - + {% link "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get" %} diff --git a/docs/src/rules/prefer-destructuring.md b/docs/src/rules/prefer-destructuring.md index 34b30c8de32b..4a313922ed31 100644 --- a/docs/src/rules/prefer-destructuring.md +++ b/docs/src/rules/prefer-destructuring.md @@ -7,7 +7,7 @@ further_reading: --- - + With JavaScript ES6, a new syntax was added for creating variables from an array index or object property, called [destructuring](#further-reading). This rule enforces usage of destructuring instead of accessing a property through a member expression. ## Rule Details diff --git a/docs/src/rules/template-tag-spacing.md b/docs/src/rules/template-tag-spacing.md index 2adf4c762051..48a5d56355d5 100644 --- a/docs/src/rules/template-tag-spacing.md +++ b/docs/src/rules/template-tag-spacing.md @@ -7,7 +7,7 @@ further_reading: --- This rule was **deprecated** in ESLint v8.53.0. Please use the corresponding rule in [`@stylistic/eslint-plugin-js`](https://eslint.style/packages/js). - + With ES6, it's possible to create functions called [tagged template literals](#further-reading) where the function parameters consist of a template literal's strings and expressions. When using tagged template literals, it's possible to insert whitespace between the tag function and the template literal. Since this whitespace is optional, the following lines are equivalent: diff --git a/package.json b/package.json index 4641ee1e3050..b44bc78a08be 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,7 @@ "gray-matter": "^4.0.3", "lint-staged": "^11.0.0", "load-perf": "^0.2.0", - "markdownlint": "^0.25.1", + "markdownlint": "^0.31.1", "markdownlint-cli": "^0.37.0", "marked": "^4.0.8", "memfs": "^3.0.1",