future-architect / eslint-plugin-vue-scoped-css

ESLint plugin for Scoped CSS in Vue.js
https://future-architect.github.io/eslint-plugin-vue-scoped-css/
MIT License
99 stars 10 forks source link

False positive: "Parsing error: Expected a pseudo-class or pseudo-element" when using Sass property nesting #371

Open JoCa96 opened 1 month ago

JoCa96 commented 1 month ago

There is a false positive for the rule vue-scoped-css/no-parsing-error, when using SCSS and the Property Declaration Nesting feature.

<style lang="scss"> // <-- Parsing error: Expected a pseudo-class or pseudo-element. eslint(vue-scoped-css/no-parsing-error)
h1 {
  border: {
    style: solid;
    width: 2px;
    color: red;
  }
}
</style>