Use Prettier JS (#5017)

* Adds prettier

* Run lint before tests
This commit is contained in:
Florent Vilmart
2018-09-01 13:58:06 -04:00
committed by GitHub
parent 189cd259ee
commit d83a0b6808
240 changed files with 41098 additions and 29020 deletions

View File

@@ -1,16 +1,15 @@
import program from './commander';
function logStartupOptions(options) {
for (const key in options) {
let value = options[key];
if (key == "masterKey") {
value = "***REDACTED***";
if (key == 'masterKey') {
value = '***REDACTED***';
}
if (typeof value === 'object') {
try {
value = JSON.stringify(value)
} catch(e) {
value = JSON.stringify(value);
} catch (e) {
if (value && value.constructor && value.constructor.name) {
value = value.constructor.name;
}
@@ -22,12 +21,7 @@ function logStartupOptions(options) {
}
}
export default function({
definitions,
help,
usage,
start
}) {
export default function({ definitions, help, usage, start }) {
program.loadDefinitions(definitions);
if (usage) {
program.usage(usage);