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
custom rule - how? #772
Comments
Hmm - I haven't actually used that script; it was last touched 4 years ago. It's highly likely that it's out of date. The error looks like it's coming from |
I got this error right after I :
Any idea how I can get rid of the error message coming from flow? |
Can you make a branch on your fork, and post the link here? I'll clone it locally and try it out. |
These are the steps I have done after forking: used git clone https://github.com/Felicia5/eslint-plugin-jsx-a11y.git git add . I added my changes git add . npm version: 6.14.8 |
Can I look into this? |
Go for it! |
The flowconfig error i.e.
|
|
I'm going to close this; please file a new issue if anyone's still having trouble. |
Hi,
I am trying to add a custom rule using the logic of heading-has-content rule. But instead of headings I am looking for div elements. Also, in the util hasAccessibleChild I am not only looking for any text but a text that is equal to "apply".
#My questions:
I don't know how to handle these errors. Can you suggest some solutions?
I generated the rule files using the create-rule.md file. I added my changes to the rule and rule-test files. I run npm test and receive these errors:
Do you have a further guide on these below?
here is my custom rule:
https://github.com/Felicia5/eslint-plugin-jsx-a11y/blob/first-rule-button/src/rules/first-rule-button.js
The text was updated successfully, but these errors were encountered: