mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36:29 +00:00
Add an empty line at the end of the rc file when writing to it
This commit is contained in:
parent
a973379bd5
commit
cd8369f681
2 changed files with 4 additions and 3 deletions
|
@ -24,4 +24,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -7,9 +7,10 @@ function formatCommaFirst(o) {
|
|||
return JSON.stringify(o, null, 2)
|
||||
.split(/(,\n\s+)/)
|
||||
.map(function (e, i) {
|
||||
return i%2 ? '\n'+e.substring(4)+', ' : e
|
||||
return i % 2 ? '\n' + e.substring(4) + ', ' : e
|
||||
})
|
||||
.join('');
|
||||
.join('')
|
||||
+ '\n';
|
||||
}
|
||||
|
||||
function readConfig(configPath) {
|
||||
|
|
Loading…
Reference in a new issue