Skip to content

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

Description

@bearfriend

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions