Skip to content

Commit b4c2633

Browse files
Bump @eslint/markdown from 7.5.1 to 8.0.1 (#4024)
* Bump @eslint/markdown from 7.5.1 to 8.0.1 Bumps [@eslint/markdown](https://github.com/eslint/markdown) from 7.5.1 to 8.0.1. - [Release notes](https://github.com/eslint/markdown/releases) - [Changelog](https://github.com/eslint/markdown/blob/main/CHANGELOG.md) - [Commits](eslint/markdown@v7.5.1...v8.0.1) --- updated-dependencies: - dependency-name: "@eslint/markdown" dependency-version: 8.0.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix issue * update rules --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nicolas Stepien <stepien.nicolas@gmail.com>
1 parent 7e7e4a8 commit b4c2633

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

eslint.config.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,20 +1103,38 @@ copy(
11031103
name: 'markdown',
11041104
files: ['**/*.md'],
11051105
plugins: {
1106-
// @ts-expect-error
11071106
markdown
11081107
},
1109-
language: 'markdown/commonmark',
1108+
language: 'markdown/gfm',
11101109
rules: {
1110+
// `@eslint/markdown` rules
1111+
// https://github.com/eslint/markdown/blob/main/README.md#rules
1112+
/*
1113+
// copy all the rules from the rules table for easy pasting
1114+
copy(
1115+
Iterator.from(
1116+
document
1117+
// select rules table
1118+
.querySelector('.markdown-heading:has(> a[href="#rules"]) ~ markdown-accessiblity-table tbody')
1119+
// select all rule links
1120+
.querySelectorAll(':any-link')
1121+
)
1122+
// map link to rule declaration
1123+
.map((link) => `'markdown/${link.textContent}': 1,`)
1124+
.toArray()
1125+
.join('\n')
1126+
);
1127+
*/
11111128
'markdown/fenced-code-language': 1,
1129+
'markdown/fenced-code-meta': 0,
11121130
'markdown/heading-increment': 1,
11131131
'markdown/no-bare-urls': 1,
11141132
'markdown/no-duplicate-definitions': 1,
1115-
'markdown/no-duplicate-headings': 0,
1133+
'markdown/no-duplicate-headings': [1, { checkSiblingsOnly: true }],
11161134
'markdown/no-empty-definitions': 1,
11171135
'markdown/no-empty-images': 1,
11181136
'markdown/no-empty-links': 1,
1119-
'markdown/no-html': 0,
1137+
'markdown/no-html': [1, { allowed: ['br', 'kbd'] }],
11201138
'markdown/no-invalid-label-refs': 1,
11211139
'markdown/no-missing-atx-heading-space': 1,
11221140
'markdown/no-missing-label-refs': 1,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"devDependencies": {
5050
"@eslint-react/eslint-plugin": "^3.0.0",
51-
"@eslint/markdown": "^7.5.1",
51+
"@eslint/markdown": "^8.0.1",
5252
"@faker-js/faker": "^10.3.0",
5353
"@tanstack/react-router": "^1.166.7",
5454
"@tanstack/router-plugin": "^1.166.7",

0 commit comments

Comments
 (0)