ccbikai / stylelint-processor-html

Please Use stylelint-processor-arbitrary-tags
https://github.com/mapbox/stylelint-processor-arbitrary-tags
8 stars 3 forks source link

Parse scss #3

Open ghost opened 7 years ago

ghost commented 7 years ago

When using this processor with .vue files it seems to parse the styles as css. Most of the stylelint rules work but it fails to parse things like double slashes comments, which causes code like

<style lang='scss'>
  // comment
  .foo {
    color: #ffffff;
  }
</style>

to warn about an unknown // selector. Is it possible to parse code inside <style> tags as scss?

ccbikai commented 7 years ago

Try

stylelint --syntax scss --config .stylelintrc *.scss