Skip to content

Parser Misrepresentation of Escaped Newlines Alters Positional Data in AST and Stylelint Reports #1

@blyedev

Description

@blyedev

The current parser does not have the capability to represent JavaScript string literal escaped newlines (\n) in the AST differently from traditional newlines. As a result, during output, escaped newlines are converted into literal newlines, altering their position in the file. This change causes downstream issues with tools such as Stylelint, which rely on accurate positional data for reporting, leading Stylelint to report errors as if they occur elsewhere in the file.

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