-
Notifications
You must be signed in to change notification settings - Fork 36
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 .vue file #8
Comments
Very good suggestion. I also have the same need to validate copyright headers in vue files and other files such as shell (bash) script files, XML files, etc. |
Afraid I don't use Vue, so have some questions:
I'm probably not going to work on this issue, but would accept a PR if it's not too intrusive and much to maintain. |
Hi Stuk, Yes, eslint work with .vue files by using a parser (vue-eslint-parser). Agreed, it should work, but I noticed that this plugin assumes that first line starts with '/*', and last line ends with '*/'. I think this is a problem in order this plugin to work with comment syntax different to C-like languages. For XML files, this should recognize that the comment start with ''; or no assume anything about how comments start and end. I will take a look to the code and propose a solution as push request if it helps. |
Any update on this? Facing similar issue as @Stuk. Not working in vue files |
Afraid I don't have time to look into this. I would appreciate a PR to fix! |
Hi there, I have a fix that I'm testing locally. There are some caveats with Thanks! |
Created PR #32 |
It would be nice if this package can support .vue file.
leadingComments[0]
is HTML in .vue file.The text was updated successfully, but these errors were encountered: