Skip to content

Commit 68cc286

Browse files
committed
ci: Format code
1 parent da7c49b commit 68cc286

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

codegen/lib/format-code.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { env } from 'node:process'
21

2+
import { retry } from '@harisk/retryx'
33
import * as prettierPluginPhp from '@prettier/plugin-php/standalone'
44
import * as prettierPluginRuby from '@prettier/plugin-ruby'
55
import type { SyntaxName } from '@seamapi/blueprint'
66
import commandExists from 'command-exists'
77
import { execa } from 'execa'
88
import { format as prettier } from 'prettier'
9-
import { retry } from '@harisk/retryx'
109

1110
export const formatCode = async (
1211
content: string,
@@ -67,13 +66,14 @@ const formatRuby = async (content: string): Promise<string> => {
6766
)
6867
return content
6968
}
70-
return await retry(async () =>
71-
await prettier(content, {
72-
parser: 'ruby',
73-
plugins: [prettierPluginRuby.default],
74-
printWidth: 100,
75-
trailingComma: 'all',
76-
}),
69+
return await retry(
70+
async () =>
71+
await prettier(content, {
72+
parser: 'ruby',
73+
plugins: [prettierPluginRuby.default],
74+
printWidth: 100,
75+
trailingComma: 'all',
76+
}),
7777
)
7878
}
7979

0 commit comments

Comments
 (0)