Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"unnecessary newlines" warning not helpful when using template literals #52

Open
bearfriend opened this issue Oct 11, 2023 · 0 comments

Comments

@bearfriend
Copy link
Owner

When using template literals (i.e. backticks) for strings, the newline warning is not helpful because the detected characters are actual newlines within the template, not unnecessary escaped newlines.

Solution is to skip the check when using backticks for quotes, and check for escaped newlines instead.

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

No branches or pull requests

1 participant