-
-
Notifications
You must be signed in to change notification settings - Fork 681
Plugin does not properly handle disabling max-lines rule. #339
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. I understand your intention: currently, we have no way to disable errors on the outside of I don't think JS style comments make sense on the outside of I'm not sure the best solution... 🤔 |
Ah, I missed the known limitations. That makes sense unfortunately. As for comments outside of eslint-plugin-html skipped Looking at Vue docs under Single File Components. See this link. If you look at the example code, there's an HTML comment before the Hope you can come to some sort of decent resolution! eslint-plugin-vue is a major plus in building consistent code! In the meantime, I can use "warn" for max-lines and deal with them accordingly. |
I remember there was a proposal for this kind of rule that would support setting max lines for each block of code separately, as in terms of single Vue components rule for checking lines in entire component might not be really relevant. See #202 |
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
See Vue eslint online demo
What did you expect to happen?
Expected the max-lines rule to be disabled for the document.
See Eslint demo
I can't use the same document as the Eslint demo will fail on a Vue document that starts with , but in this case, we're looking at just the fact that the document is greater than 300 lines.
What actually happened? Please include the actual, raw output from ESLint.
1:1 File must be at most 300 lines long. It's 315 lines long. (max-lines)
The text was updated successfully, but these errors were encountered: