Skip to content

Throw an error when import statement have have braces #42

@MoOx

Description

@MoOx
@import 'src/css/_foo'

:root {
  --color: #a12;
}

Omiting the ; make the root node to be part of the import statement in the AST.
@ai doesn't think of a simpler way to handle that in postcss itself because the parser is very flexible (which is a good thing).
So we might here throw an error or a message via postcss message api.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions