chore: eslint prefer-template

This commit is contained in:
Peter Jaszkowiak
2021-02-03 23:59:08 -07:00
committed by Julian Lam
parent 4ee0f1459d
commit 707b55b6a5
357 changed files with 2425 additions and 2427 deletions

View File

@@ -16,7 +16,7 @@ function setup(initConfig) {
winston.info('NodeBB Setup Triggered via Command Line');
console.log('\nWelcome to NodeBB v' + pkg.version + '!');
console.log(`\nWelcome to NodeBB v${pkg.version}!`);
console.log('\nThis looks like a new installation, so you\'ll have to answer a few questions about your environment before we can proceed.');
console.log('Press enter to accept the default setting (shown in brackets).');
@@ -50,16 +50,16 @@ function setup(initConfig) {
separator += '=';
}
}
console.log('\n' + separator + '\n');
console.log(`\n${separator}\n`);
if (err) {
winston.error('There was a problem completing NodeBB setup\n' + err.stack);
winston.error(`There was a problem completing NodeBB setup\n${err.stack}`);
throw err;
} else {
if (data.hasOwnProperty('password')) {
console.log('An administrative user was automatically created for you:');
console.log(' Username: ' + data.username + '');
console.log(' Password: ' + data.password + '');
console.log(` Username: ${data.username}`);
console.log(` Password: ${data.password}`);
console.log('');
}
console.log('NodeBB Setup Completed. Run "./nodebb start" to manually start your NodeBB server.');