@@ -92,7 +92,7 @@ async function formatFiles(files, bsc_exe, isSupportedFile, checkFormatting) {
92
92
}
93
93
}
94
94
return null ;
95
- } )
95
+ } ) ,
96
96
) ;
97
97
} catch ( err ) {
98
98
console . error ( err ) ;
@@ -103,7 +103,7 @@ async function formatFiles(files, bsc_exe, isSupportedFile, checkFormatting) {
103
103
console . error ( "The file listed above needs formatting" ) ;
104
104
} else {
105
105
console . error (
106
- `The ${ incorrectlyFormattedFiles } files listed above need formatting`
106
+ `The ${ incorrectlyFormattedFiles } files listed above need formatting` ,
107
107
) ;
108
108
}
109
109
process . exit ( 3 ) ;
@@ -135,7 +135,7 @@ async function main(argv, rescript_exe, bsc_exe) {
135
135
// Require: -all or path to a file
136
136
if ( check . val && ! format_project && files . length == 0 ) {
137
137
console . error (
138
- "format check require path to a file or use `-all` to check the whole project"
138
+ "format check require path to a file or use `-all` to check the whole project" ,
139
139
) ;
140
140
process . exit ( 2 ) ;
141
141
}
@@ -152,7 +152,7 @@ async function main(argv, rescript_exe, bsc_exe) {
152
152
[ "info" , "-list-files" ] ,
153
153
{
154
154
encoding : "utf-8" ,
155
- }
155
+ } ,
156
156
) ;
157
157
if ( output . status !== 0 ) {
158
158
console . error ( output . stdout ) ;
@@ -173,7 +173,7 @@ async function main(argv, rescript_exe, bsc_exe) {
173
173
os . tmpdir ( ) ,
174
174
"rescript_" +
175
175
crypto . randomBytes ( 8 ) . toString ( "hex" ) +
176
- path . parse ( use_stdin ) . base
176
+ path . parse ( use_stdin ) . base ,
177
177
) ;
178
178
( async function ( ) {
179
179
var content = await readStdin ( ) ;
@@ -191,7 +191,7 @@ async function main(argv, rescript_exe, bsc_exe) {
191
191
console . error ( stderr ) ;
192
192
process . exit ( 2 ) ;
193
193
}
194
- }
194
+ } ,
195
195
) ;
196
196
} ) ( ) ;
197
197
} else {
0 commit comments