Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Issues with vue/no-unused-components rule: wrong report #768

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

Closed
tinymins opened this issue Jan 12, 2019 · 1 comment
Closed

Issues with vue/no-unused-components rule: wrong report #768

tinymins opened this issue Jan 12, 2019 · 1 comment

Comments

@tinymins
Copy link
Contributor

Tell us about your environment

  • ESLint version: 5.12.0
  • eslint-plugin-vue version: 5.1.0
  • Node version: 8

Please show your full configuration:

// Default

What did you do?

import XButton from 'path/to/x-button';

export default {
  components: {
    [XButton.name]: XButton,
  },
};

What did you expect to happen?
Should not report error.

What actually happened?

https://google.com/#q=vue%2Fno-unused-components The "name" component has been registered but not used
src/views/secret/create.vue:219:5

@ota-meshi
Copy link
Member

@tinymins Thank you for this issue.
I will fix this issue.

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