Make linter config JSON more readable

This commit is contained in:
Rob Garrison 2017-08-26 09:37:32 -05:00
parent 52af5c85c0
commit 95ff72b722

View File

@ -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) {