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

Support for .vue files #31

Open
manuel-di-iorio opened this issue Feb 1, 2018 · 1 comment
Open

Support for .vue files #31

manuel-di-iorio opened this issue Feb 1, 2018 · 1 comment

Comments

@manuel-di-iorio
Copy link

The .vue file

<style lang="scss" scoped>
.unused-class {
  background: red;
}
</style>

My eslintrc.js config:

module.exports = {
  root: true,
  env: {
    browser: true,
    node: true
  },
  extends: [
    'plugin:vue/recommended',
    'plugin:css-modules/recommended'
  ],
  plugins: [
    'vue',
    'eslint-plugin-css-modules'
  ]
};

Expected: eslint should throws a warning/error for the unused class

@Solant
Copy link

Solant commented Jul 30, 2018

scoped attribute for <style> tag doesn't use css modules.
You should use module attribute for <style> tag to use css modules ( https://vue-loader.vuejs.org/guide/css-modules.html )

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

2 participants