Skip to content

Commit 6965519

Browse files
committed
fix: Add lineterminator option
1 parent ab03041 commit 6965519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/runTransformation.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const addUseStrict: Transform = (file, api, options) => {
3939
body[0].comments = body[1].comments
4040
delete body[1].comments
4141

42-
return root.toSource(options.printOptions || { quote: 'single' })
42+
return root.toSource(options.printOptions || { quote: 'single', lineTerminator: '\n' })
4343
}
4444

4545
describe('run-transformation', () => {

0 commit comments

Comments
 (0)