Skip to content

Commit 86154ca

Browse files
committed
Added @eslint/markdown as dev dependency
1 parent d2d8732 commit 86154ca

File tree

3 files changed

+1019
-1
lines changed

3 files changed

+1019
-1
lines changed

eslint.config.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import js from '@eslint/js'
22
import globals from 'globals'
33
import json from '@eslint/json'
4+
import markdown from '@eslint/markdown'
45

56
export default [
67
{
@@ -22,5 +23,14 @@ export default [
2223
}
2324
},
2425
{ files: ['**/*.mjs', '**/lib*/*.js'], languageOptions: { sourceType: 'module' }},
25-
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended }
26+
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended },
27+
{
28+
files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown },
29+
rules: {
30+
...markdown.configs.recommended[0].rules,
31+
'markdown/heading-increment': 'off', // allow headings to skip levels
32+
'markdown/fenced-code-language': 'off', // allow code blocks w/ no language specified
33+
'markdown/no-missing-label-refs': 'off' // allow missing label references
34+
}
35+
}
2636
]

0 commit comments

Comments
 (0)