File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ export class Formatter {
6666 shfmtConfig ?: Record < string , string | boolean > | null ,
6767 ) : Promise < string > {
6868 const indentation : number = formatOptions ?. insertSpaces ? formatOptions . tabSize : 0
69- const args : string [ ] = [ `--indent =${ indentation } ` ]
70- if ( shfmtConfig ?. binaryNextLine ) args . push ( '-- binary-next-line' )
71- if ( shfmtConfig ?. caseIndent ) args . push ( '-- case-indent' )
72- if ( shfmtConfig ?. funcNextLine ) args . push ( '-- func-next-line' )
73- if ( shfmtConfig ?. spaceRedirects ) args . push ( '-- space-redirects' )
69+ const args : string [ ] = [ `-i =${ indentation } ` ] // --indent
70+ if ( shfmtConfig ?. binaryNextLine ) args . push ( '-bn' ) // -- binary-next-line
71+ if ( shfmtConfig ?. caseIndent ) args . push ( '-ci' ) // -- case-indent
72+ if ( shfmtConfig ?. funcNextLine ) args . push ( '-fn' ) // -- func-next-line
73+ if ( shfmtConfig ?. spaceRedirects ) args . push ( '-sr' ) // -- space-redirects
7474
7575 logger . debug ( `Shfmt: running "${ this . executablePath } ${ args . join ( ' ' ) } "` )
7676
You can’t perform that action at this time.
0 commit comments