invalid json - bhsd-harry/wikiparser-node GitHub Wiki
❌ By default, this rule reports invalid JSON in <templatedata> tags. This rule is superseded by the more advanced vscode-json-languageservice in LanguageService.prototype.provideDiagnostics.
Examples of incorrect code for { "invalid-json": 2 }:
<templatedata>a</templatedata><maplink>{"type": // "Feature"}</maplink>Examples of correct code for { "invalid-json": 2 }:
<templatedata></templatedata><maplink>{
"type": //
"Feature",
}</maplink>duplicate option with a severity value.
Examples of incorrect code for { "invalid-json": [ 0, { "duplicate": 2 } ] }:
<templatedata>{"a": 1, "a": 2}</templatedata><mapframe>{"a": 1, /* comment */ "a": 2,}</mapframe>Examples of correct code for { "invalid-json": [ 2, { "duplicate": 0 } ] }:
<templatedata>{"a": 1, "a": 2}</templatedata><mapframe>{"a": 1, /* comment */ "a": 2,}</mapframe>