nikku / eslint-plugin-license-header

Rules to validate the presence of license headers in source files.
MIT License
27 stars 9 forks source link

license-header.js content is missing #3

Closed hansiemithun closed 4 years ago

hansiemithun commented 4 years ago

How license-header.js should look like?

nikku commented 4 years ago

I do not get your question, sorry.

hansiemithun commented 4 years ago

is this supported in vue project ?

nikku commented 4 years ago

Still do not understand your question.

What do you assume this library does? And what does not work?

nikku commented 4 years ago

Please spend a little bit more time to clearly explain your case. I otherwise cannot help you.

hansiemithun commented 4 years ago

I am extremely sorry to hear about it. Your plugin is great, I tried to incorporate in my Vue project, but that seems to be not working as per the expectations.

I used your simple example of having header.js to use as a template and it did generate the file header in all the files. Unfortunately, even App.vue extension files got added with JS comment section, so this broke the application. So, Is there any idea to support Vue files or how to tweak to get this work for the Vue project?

Vue files expect HTML way of comments like

But there will be javascript files as well along with this with / /. So, need to handle both scenarios

And by any chance, can we have a pattern match also enabled inside header.js for copyright year to ignore 2020 strictly, some files will be 2019?