Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCSS syntax option makes stylelint try to lint JS? #4

Open
irrg opened this issue Sep 6, 2018 · 3 comments
Open

SCSS syntax option makes stylelint try to lint JS? #4

irrg opened this issue Sep 6, 2018 · 3 comments

Comments

@irrg
Copy link

irrg commented Sep 6, 2018

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.

@ascendancyy
Copy link
Owner

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.

@steveworkman
Copy link

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

@ascendancyy
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants