Skip to content

Commit

Permalink
Force line terminator to \\n on codemods tests
Browse files Browse the repository at this point in the history
  • Loading branch information
incepter committed Jul 3, 2023
1 parent 2f99fca commit 6f0a469
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/codemods/src/v4/key-transformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,5 @@ module.exports = (file, api) => {
// This function transforms usages of `QueryCache`.
transformQueryCacheUsages({ jscodeshift, utils, root, filePath })

return root.toSource({ quote: 'single' })
return root.toSource({ quote: 'single', lineTerminator: '\n' })
}
2 changes: 1 addition & 1 deletion packages/codemods/src/v4/replace-import-specifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ module.exports = (file, api) => {
})
})

return root.toSource({ quote: 'single' })
return root.toSource({ quote: 'single', lineTerminator: '\n' })
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ module.exports = (file, api) => {
},
})

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

0 comments on commit 6f0a469

Please sign in to comment.