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 b95a406 commit caf39b8
Show file tree
Hide file tree
Showing 3 changed files with 1,153 additions and 136 deletions.
11 changes: 10 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 @@ -26,5 +27,13 @@ export default [
}
},
{ files: ['**/*.mjs'], 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
}
}
]
Loading

0 comments on commit caf39b8

Please sign in to comment.