Skip to content

Commit 4c44920

Browse files
author
ygj6
authored
fix: Add lineterminator option (#17)
1 parent f396fe2 commit 4c44920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/runTransformation.spec.ts

+1-1
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)