diff --git a/edit/lint.js b/edit/lint.js index 141c954a..e7d3d492 100644 --- a/edit/lint.js +++ b/edit/lint.js @@ -279,7 +279,8 @@ function checkRules(linter, rules) { } function stringifyRules(rules) { - return JSON.stringify(rules, null, 2); + return JSON.stringify(rules, null, 2) + .replace(/,\n\s+\{\n\s+("severity":\s"\w+")\n\s+\}/g, ', {$1}'); } function setupLinterSettingsEvents(popup) {