Skip to content

Commit

Permalink
chore: Force line terminator to \\n on codemods tests (#5664)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominik Dorfmeister <[email protected]>
  • Loading branch information
incepter and TkDodo authored Jul 14, 2023
1 parent cefd080 commit a968036
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 a968036

Please sign in to comment.