Skip to content

Commit cfba599

Browse files
committed
running eslint
1 parent c5eee31 commit cfba599

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/commands/content-type/diagram.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class DiagramCommand extends Command {
2727
description: 'management token alias',
2828
required: false,
2929
}),
30-
30+
3131
output: flags.string({
3232
char: 'o',
3333
description: 'full path to output',
@@ -78,23 +78,21 @@ export default class DiagramCommand extends Command {
7878

7979
cli.action.stop()
8080

81-
8281
const diagramOptions: CreateDiagramOptions = {
8382
stackName: stack.name,
8483
contentTypes: contentTypes.content_types,
8584
globalFields: globalFields.global_fields,
8685
outputFileName: outputPath,
8786
outputFileType: flags.type,
8887
style: {
89-
orientation: flags.direction === 'portrait' ? 'LR' : 'TD'
90-
}
88+
orientation: flags.direction === 'portrait' ? 'LR' : 'TD',
89+
},
9190
}
9291

9392
const output = await createDiagram(diagramOptions)
9493
this.log(`Created Graph: ${output.outputPath}`)
95-
9694
} catch (error) {
9795
this.error(error, {exit: 1, suggestions: error.suggestions})
9896
}
9997
}
100-
}
98+
}

src/core/content-type/diagram.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export async function createDiagram(options: CreateDiagramOptions): Promise<Crea
5757
fs.writeFileSync(outputPath, dotOutput)
5858

5959
return {
60-
outputPath
60+
outputPath,
6161
}
6262
}
6363

@@ -327,4 +327,4 @@ function createOutputPath(outputFile: string) {
327327
fs.mkdirSync(dirName, {recursive: true})
328328

329329
return outputPath
330-
}
330+
}

0 commit comments

Comments
 (0)