Created
April 20, 2017 16:39
-
-
Save taxigy/01418db23060d6601ddeb895651a43ab to your computer and use it in GitHub Desktop.
Prettier problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IN | |
const renderIndexPage = data => indexPage.replace('<!-- {{ data }} -->', ` | |
<script> | |
window.CONTENTFUL_DATA = ${data}; | |
</script> | |
`); | |
// OUT | |
const renderIndexPage = data => | |
indexPage.replace( | |
"<!-- {{ data }} -->", | |
` | |
<script> | |
window.CONTENTFUL_DATA = ${data}; | |
</script> | |
` | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment