Make linter config JSON more readable
This commit is contained in:
parent
52af5c85c0
commit
95ff72b722
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user