vue-cli-plugin-stylelint icon indicating copy to clipboard operation
vue-cli-plugin-stylelint copied to clipboard

SCSS syntax option makes stylelint try to lint JS?

Open irrg opened this issue 7 years ago • 3 comments

This plugin looks exactly like what I need, but I can't figure out a way to pass the syntax option and, well, have things work.

module.exports = {
  pluginOptions: {
    lintStyleOnBuild: false,
    stylelint: {
      syntax: 'scss'
    }
  }
}

This leads to stylelint trying to point out css errors in the JS code in my .vue files.

irrg avatar Sep 06 '18 23:09 irrg

I've been busy at uni and haven't had time to properly update the plugin to match changes in vue-cli which might the problem here. I'll hopefully take a look by next week.

ascendancyy avatar Nov 29 '18 18:11 ascendancyy

I think this and issue #5 might be the same. Try the PR #6 and see if that helps

steveworkman avatar Dec 14 '18 14:12 steveworkman

It's been a while so I forgot exactly how stylelint works but omitting the syntax option and stylelint should be able to correctly infer the correct syntax. I think the scss value is meant for actual sass files and not combined files like .vue files.

ascendancyy avatar Jan 30 '19 03:01 ascendancyy