Skip to content

Conversation

@jparise
Copy link
Owner

@jparise jparise commented Dec 24, 2022

If the previous line isn't GraphQL, assume we're part of a template string and indent this new line within it.

This is (hopefully) an improvement over the previous behavior which preserved the indentation of the previous line in these cases.

Closes #87

If the previous line isn't GraphQL, assume we're part of a template
string and indent this new line within it.

This is (hopefully) an improvement over the previous behavior which
preserved the indentation of the previous line in these cases.

Closes #87
@jparise jparise merged commit 8da6cf8 into master Dec 24, 2022
@jparise jparise deleted the indent-template branch December 24, 2022 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatic indentation inside JavaScript template literals not working as expected

2 participants