Skip to content

Commit

Permalink
Disable markdown based linting by default (#429)
Browse files Browse the repository at this point in the history
VSCode does this for markdown files too. Some validation results are not
wanted. Some are even false positives.

Closes #424
  • Loading branch information
remcohaszing committed Apr 12, 2024
1 parent dcb89a9 commit 004b802
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-boats-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vscode-mdx": patch
---

Set markdown validation defaults to `"ignore"`
12 changes: 6 additions & 6 deletions packages/vscode-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"warning",
"error"
],
"default": "warning",
"default": "ignore",
"markdownDescription": "Diagnostic level for invalid reference links, e.g. `[text][no-such-ref]`."
},
"mdx.validate.validateFragmentLinks": {
Expand All @@ -100,7 +100,7 @@
"warning",
"error"
],
"default": "warning",
"default": "ignore",
"markdownDescription": "Diagnostic level for fragments links to headers in the current file that don’t exist, e.g. `[text](#no-such-header)`."
},
"mdx.validate.validateFileLinks": {
Expand All @@ -110,7 +110,7 @@
"warning",
"error"
],
"default": "warning",
"default": "ignore",
"markdownDescription": "Diagnostic level for links to local files that don’t exist, e.g. `[text](./no-such-file.png)`."
},
"mdx.validate.validateMarkdownFileLinkFragments": {
Expand All @@ -120,7 +120,7 @@
"warning",
"error"
],
"default": "warning",
"default": "ignore",
"markdownDescription": "Diagnostic level for the fragment part of links to other local markdown files , e.g. `[text](./file.md#no-such-header)`."
},
"mdx.validate.validateUnusedLinkDefinitions": {
Expand All @@ -130,7 +130,7 @@
"warning",
"error"
],
"default": "warning",
"default": "ignore",
"markdownDescription": "Diagnostic level for link definitions that aren’t used anywhere. `[never-used]: http://example.com`."
},
"mdx.validate.validateDuplicateLinkDefinitions": {
Expand All @@ -140,7 +140,7 @@
"warning",
"error"
],
"default": "warning",
"default": "ignore",
"markdownDescription": "Diagnostic level for duplicate link definitions."
},
"mdx.validate.ignoreLinks": {
Expand Down

0 comments on commit 004b802

Please sign in to comment.