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

Either template or templateFile must be set #9

Closed
retorquere opened this issue Feb 18, 2019 · 2 comments
Closed

Either template or templateFile must be set #9

retorquere opened this issue Feb 18, 2019 · 2 comments
Assignees

Comments

@retorquere
Copy link

When I use the first example from the readme:

"notice/notice":["error",{"mustMatch":"Copyright \\(c\\) [0-9]{0,4}, Nick Deis"}]

I get an error:

Either template or templateFile must be set
@nickdeis
Copy link
Owner

Hey @retorquere,
Thank you for filling an issue. This seems like a defect, since the expected behavior is that it checks headers/notices without a template file. I should be able to fix this in the next few days.
Best,
Nick

nickdeis added a commit that referenced this issue Feb 24, 2019
 - Simply return null, which disables the fixer in createFixer
 - Also updated all the years in the snapshot tests
@nickdeis
Copy link
Owner

Hey @retorquere,
I have implemented the fix in version 0.7.8. Once again, thanks for pointing this issue out to me! I hope the fix works out for you, and please let me know if there is anything else I can help you with.
Cheers,
Nick

@nickdeis nickdeis self-assigned this Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants