Skip to content

ParseError on SCSS in a single-file component #140

Closed
@marekdedic

Description

@marekdedic

Hi,
I have the following .svelte file:

// ... rest of component

<style lang="scss">
@use "./_smui-theme.scss";
@use '@material/theme' as theme;

  .breadcrumb {
    cursor: pointer;
    color: theme.$primary;
  }
</style>

When trying to lint this, I get ParseError on the $ character. I thing it is trying to parse the SCSS as JS...

This started happening after upgrading to typescript-eslint v5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions