Skip to content

Commit 85db724

Browse files
authored
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
1 parent 21ebf8a commit 85db724

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

Makefile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const checker = require("npm-license"),
1616
glob = require("glob"),
1717
marked = require("marked"),
1818
matter = require("gray-matter"),
19-
markdownlint = require("markdownlint"),
2019
os = require("os"),
2120
path = require("path"),
2221
semver = require("semver"),
@@ -433,6 +432,7 @@ function getFirstVersionOfDeletion(filePath) {
433432
* @private
434433
*/
435434
function lintMarkdown(files) {
435+
const markdownlint = require("markdownlint");
436436
const config = yaml.load(fs.readFileSync(path.join(__dirname, "./.markdownlint.yml"), "utf8")),
437437
result = markdownlint.sync({
438438
files,

docs/src/library/link-card.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Links can be rendered as cards by using the `link` shortcode. The only required
1010

1111
## Examples
1212

13+
<!-- markdownlint-disable-next-line MD034 -->
1314
{% link "https://blog.izs.me/2010/12/an-open-letter-to-javascript-leaders-regarding/" %}
14-
15+
<!-- markdownlint-disable-next-line MD034 -->
1516
{% link "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get" %}

docs/src/rules/prefer-destructuring.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ further_reading:
77
---
88

99

10-
10+
<!-- markdownlint-disable-next-line MD051 -->
1111
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.
1212

1313
## Rule Details

docs/src/rules/template-tag-spacing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ further_reading:
77
---
88

99
This rule was **deprecated** in ESLint v8.53.0. Please use the corresponding rule in [`@stylistic/eslint-plugin-js`](https://eslint.style/packages/js).
10-
10+
<!-- markdownlint-disable-next-line MD051 -->
1111
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.
1212

1313
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:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"gray-matter": "^4.0.3",
133133
"lint-staged": "^11.0.0",
134134
"load-perf": "^0.2.0",
135-
"markdownlint": "^0.25.1",
135+
"markdownlint": "^0.31.1",
136136
"markdownlint-cli": "^0.37.0",
137137
"marked": "^4.0.8",
138138
"memfs": "^3.0.1",

0 commit comments

Comments
 (0)