Skip to content

Commit

Permalink
Added @eslint/markdown as dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Nov 13, 2024
1 parent d2d8732 commit 86154ca
Show file tree
Hide file tree
Showing 3 changed files with 1,019 additions and 1 deletion.
12 changes: 11 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import js from '@eslint/js'
import globals from 'globals'
import json from '@eslint/json'
import markdown from '@eslint/markdown'

export default [
{
Expand All @@ -22,5 +23,14 @@ export default [
}
},
{ files: ['**/*.mjs', '**/lib*/*.js'], languageOptions: { sourceType: 'module' }},
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended }
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended },
{
files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown },
rules: {
...markdown.configs.recommended[0].rules,
'markdown/heading-increment': 'off', // allow headings to skip levels
'markdown/fenced-code-language': 'off', // allow code blocks w/ no language specified
'markdown/no-missing-label-refs': 'off' // allow missing label references
}
}
]
Loading

0 comments on commit 86154ca

Please sign in to comment.