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 11, 2024
1 parent 3e53941 commit ac8275f
Show file tree
Hide file tree
Showing 3 changed files with 1,018 additions and 1 deletion.
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 @@ -23,5 +24,13 @@ export default [
}
},
{ files: ['**/*.mjs', '**/components/*.js', '**/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
}
}
]
Loading

0 comments on commit ac8275f

Please sign in to comment.