chore(cloudcmd) add dangle-comma

This commit is contained in:
coderaiser 2019-02-01 18:26:09 +02:00
parent 4447d43c89
commit ea08b92e8b
69 changed files with 242 additions and 242 deletions

View file

@ -126,11 +126,11 @@ const args = require('minimist')(argv.slice(2), {
u: 'username',
s: 'save',
a: 'auth',
c: 'config'
c: 'config',
},
unknown: (cmd) => {
exit('\'%s\' is not a cloudcmd option. See \'cloudcmd --help\'.', cmd);
}
},
});
if (args.version)
@ -266,7 +266,7 @@ function readConfig(name) {
const forEachKey = require('for-each-key');
const readjsonSync = (name) => jju.parse(fs.readFileSync(name, 'utf8'), {
mode: 'json'
mode: 'json',
});
const [error, data] = tryCatch(readjsonSync, name);

View file

@ -34,7 +34,7 @@ function main(callback) {
replaceVersion('HELP.md', version, versionNew, () => {
const historyNew = history + rendy(template, {
date : shortdate(),
version : versionNew
version : versionNew,
});
replaceVersion('HELP.md', history, historyNew, callback);