chore(v2): fix code style

This commit is contained in:
Alexey Pyltsyn 2020-04-05 17:27:03 +03:00
parent b07507c9cc
commit 6965a668cd
143 changed files with 458 additions and 457 deletions

View file

@ -26,7 +26,7 @@ if (!semver.satisfies(process.version, requiredVersion)) {
function wrapCommand(fn) {
return (...args) =>
fn(...args).catch((err) => {
fn(...args).catch(err => {
console.error(chalk.red(err.stack));
process.exitCode = 1;
});
@ -43,7 +43,7 @@ program
wrapCommand(init)(path.resolve(rootDir), siteName, template);
});
program.arguments('<command>').action((cmd) => {
program.arguments('<command>').action(cmd => {
program.outputHelp();
console.log(` ${chalk.red(`\n Unknown command ${chalk.yellow(cmd)}.`)}`);
console.log();