From bfe8e25a5b0de8826b675d876867548e518ded05 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Mon, 13 Nov 2023 13:01:10 +0530 Subject: [PATCH 1/3] chore: upgrade markdownlint to 0.31.0 --- 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 +- 4 files changed, 5 insertions(+), 4 deletions(-) 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..bb6c8d573a17 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.0", "markdownlint-cli": "^0.37.0", "marked": "^4.0.8", "memfs": "^3.0.1", From 249b4d1c97dc7646750a85f489242801e8448e41 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Mon, 13 Nov 2023 13:03:43 +0530 Subject: [PATCH 2/3] chore: upgrade markdownlint to 0.31.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bb6c8d573a17..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.31.0", + "markdownlint": "^0.31.1", "markdownlint-cli": "^0.37.0", "marked": "^4.0.8", "memfs": "^3.0.1", From 2a267bc17460523aed62b75d53b1338e6791f22b Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Thu, 16 Nov 2023 11:09:54 +0530 Subject: [PATCH 3/3] chore: upgrade markdownlint to 0.31.1 --- Makefile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.js b/Makefile.js index 24accfb61030..0e45632f7ae3 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"), @@ -431,6 +430,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,