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

Check fails if a .vue file contains no <script> tag #1

Closed
Twiknight opened this issue Mar 31, 2016 · 1 comment
Closed

Check fails if a .vue file contains no <script> tag #1

Twiknight opened this issue Mar 31, 2016 · 1 comment
Assignees
Labels

Comments

@Twiknight
Copy link
Owner

If a .vue file contains no <script> tag, eslint would throw following error:

Module build failed: TypeError: Cannot read property 'forEach' of undefined

This is the consequence of sending an empty array as default text set to eslint.

preprocess: function (text, filename) {
    ...
    return []
  }

https://github.com/Twiknight/eslint-plugin-vue/blob/master/lib/processors/vueProcessor.js#L17

@Twiknight Twiknight self-assigned this Mar 31, 2016
@Twiknight Twiknight added the bug label Mar 31, 2016
@Twiknight
Copy link
Owner Author

b7cf446

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

No branches or pull requests

1 participant