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

Adding options to image-redundant-alt #72

Closed
badtant opened this issue Aug 9, 2016 · 1 comment
Closed

Adding options to image-redundant-alt #72

badtant opened this issue Aug 9, 2016 · 1 comment
Labels

Comments

@badtant
Copy link
Contributor

badtant commented Aug 9, 2016

Hi,

I'm trying to do a pull request which add options to image-redundant-alt so that it can cater for any words the user wants. How do I add words to be included in the tests so that I can see that it's working when I run them? I tried to add it in src/index.js but when I log context.options it's empty.

Thanks

@beefancohen
Copy link
Contributor

Check out tests/src/rules/img-has-alt.js. The object takes an argument called options which reflects context.options. You then have to update the schema in the img-redundant-alt rule to accept those options!

Cool idea, let me know if you have any other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants