diff --git a/src/commands/pretty.ts b/src/commands/pretty.ts index a858d1f96c1..d94c712910c 100644 --- a/src/commands/pretty.ts +++ b/src/commands/pretty.ts @@ -40,12 +40,11 @@ export default class Pretty extends Command { let formatted: string; try { - const yamlDoc = yaml.parseDocument(content); + const yamlDoc = yaml.parseDocument(content); - formatted = yamlDoc.toString({ - lineWidth: 0, - }); - + formatted = yamlDoc.toString({ + lineWidth: 0, + }); } catch (err) { this.error(`Error formatting file: ${err}`); } @@ -58,4 +57,4 @@ export default class Pretty extends Command { this.log(`Asyncapi document ${filePath} has been beautified in-place.`); } } -} \ No newline at end of file +} diff --git a/src/core/flags/pretty.flags.ts b/src/core/flags/pretty.flags.ts index 93d28995a8c..102656eb739 100644 --- a/src/core/flags/pretty.flags.ts +++ b/src/core/flags/pretty.flags.ts @@ -7,4 +7,4 @@ export const prettyFlags = () => { description: 'Output file path', }), }; -}; \ No newline at end of file +}; diff --git a/test/integration/pretty.test.ts b/test/integration/pretty.test.ts index eed5d8fe00e..38d5d73e62e 100644 --- a/test/integration/pretty.test.ts +++ b/test/integration/pretty.test.ts @@ -34,5 +34,5 @@ describe('pretty', () => { expect(ctx.stderr).to.equal(''); done(); }); - -})}) \ No newline at end of file + }); +});