Quote all JSON keys for consistency.

This commit is contained in:
David Anson 2016-10-16 21:46:02 -07:00
parent 0ca8bc7bb6
commit 23404f95ac

View file

@ -371,8 +371,8 @@ Output:
{ {
"good.md": {}, "good.md": {},
"bad.md": { "bad.md": {
MD010: [ 3 ], "MD010": [ 3 ],
MD018: [ 1, 3 ] "MD018": [ 1, 3 ]
} }
} }
``` ```
@ -403,24 +403,24 @@ And the `result` object becomes:
{ {
"good.md": [], "good.md": [],
"bad.md": [ "bad.md": [
{ lineNumber: 3, { "lineNumber": 3,
ruleName: "MD010", "ruleName": "MD010",
ruleAlias: "no-hard-tabs", "ruleAlias": "no-hard-tabs",
ruleDescription: "Hard tabs", "ruleDescription": "Hard tabs",
errorDetail: "Column: 17", "errorDetail": "Column: 17",
errorContext: null }, "errorContext": null },
{ lineNumber: 1, { "lineNumber": 1,
ruleName: "MD018", "ruleName": "MD018",
ruleAlias: "no-missing-space-atx", "ruleAlias": "no-missing-space-atx",
ruleDescription: "No space after hash on atx style header", "ruleDescription": "No space after hash on atx style header",
errorDetail: null, "errorDetail": null,
errorContext: "#bad.md" }, "errorContext": "#bad.md" },
{ lineNumber: 3, { "lineNumber": 3,
ruleName: "MD018", "ruleName": "MD018",
ruleAlias: "no-missing-space-atx", "ruleAlias": "no-missing-space-atx",
ruleDescription: "No space after hash on atx style header", "ruleDescription": "No space after hash on atx style header",
errorDetail: null, "errorDetail": null,
errorContext: "#This file fails\tsome rules." } "errorContext": "#This file fails\tsome rules." }
] ]
} }
``` ```