Skip to content

Commit 6f0a469

Browse files
committed
Force line terminator to \\n on codemods tests
1 parent 2f99fca commit 6f0a469

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/codemods/src/v4/key-transformation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,5 @@ module.exports = (file, api) => {
134134
// This function transforms usages of `QueryCache`.
135135
transformQueryCacheUsages({ jscodeshift, utils, root, filePath })
136136

137-
return root.toSource({ quote: 'single' })
137+
return root.toSource({ quote: 'single', lineTerminator: '\n' })
138138
}

packages/codemods/src/v4/replace-import-specifier.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ module.exports = (file, api) => {
2121
})
2222
})
2323

24-
return root.toSource({ quote: 'single' })
24+
return root.toSource({ quote: 'single', lineTerminator: '\n' })
2525
}

packages/codemods/src/v5/remove-overloads/remove-overloads.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ module.exports = (file, api) => {
5555
},
5656
})
5757

58-
return root.toSource({ quote: 'single' })
58+
return root.toSource({ quote: 'single', lineTerminator: '\n' })
5959
}

0 commit comments

Comments
 (0)