-
-
Notifications
You must be signed in to change notification settings - Fork 681
[Bug] eslint-plugin-vue doesn't working with separate files #887
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
Comments
Thank you for this issue. But this is not a bug, because ESLint checks each file independently. |
I have this problem, 4 hours trying resolve the same problem, and 'vue/order-in-components', After see this answer i run test with clean Vue CLI 3 project, and using .vue the lint works but make import js in src script tag not work. so @mysticatea yes, this probably a bug or conf |
@runyasak try add For me this work |
I came here looking for a solution for the same thing. @AGPDev got it right. Just wanted to add for anyone who finds this in the future, as explained in vuejs/vue-cli#1602, the |
Tell us about your environment
Please show your full configuration:
What did you do?
I have created a Vue single file with separating script file, like this vue-separate-files.
First, the script was separated and it didn't warn any sign. But, when I wrote them in .vue file, warnings are appeared.
It should appear
eslint(vue/require-default-prop)
but it doesn't.What did you expect to happen?
The eslint warning should be worked on a js file.
What actually happened?
The eslint doesn't show any sign of warning.
The text was updated successfully, but these errors were encountered: