File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1- import { env } from 'node:process'
21
2+ import { retry } from '@harisk/retryx'
33import * as prettierPluginPhp from '@prettier/plugin-php/standalone'
44import * as prettierPluginRuby from '@prettier/plugin-ruby'
55import type { SyntaxName } from '@seamapi/blueprint'
66import commandExists from 'command-exists'
77import { execa } from 'execa'
88import { format as prettier } from 'prettier'
9- import { retry } from '@harisk/retryx'
109
1110export 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
You can’t perform that action at this time.
0 commit comments