DavidAnson / vscode-markdownlint

Markdown linting and style checking for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint
MIT License
894 stars 166 forks source link

Expected double-quoted property name in JSON #318

Closed baixiaoyu2997 closed 5 months ago

baixiaoyu2997 commented 5 months ago

info:

markdownlint-cli2 0.12.1
extension: markdownlint v0.53.0

I think this is related issue: https://github.com/DavidAnson/markdownlint-cli2/issues/267

When I use the cli it does catch errors in the md file, but not the vscode extension because of the trailing commas present in the config file

image image

.markdownlint-cli2.jsonc:

{
  "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/main/schema/markdownlint-cli2-config-schema.json",
  "config": {
    "MD013": false,
    "MD024": false,
    "MD033": false,
    "MD041": false,
  },
  "ignores": [
    "public",
    "extends/*/public",
    ".nuxt",
    "extends/*/.nuxt",
    ".output",
    "extends/*/.output",
    "dist",
    "extends/*/dist",
    "node_modules",
    ".github",
  ],
}
DavidAnson commented 5 months ago

This is already fixed for the next release. Should be in a couple of days.

baixiaoyu2997 commented 5 months ago

thanks!!!