-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Fix] no-invalid-html-attribute
: convert autofix to suggestion
#3474
[Fix] no-invalid-html-attribute
: convert autofix to suggestion
#3474
Conversation
Fixes jsx-eslint#3458. Co-authored-by: himanshu007-creator <addyjeridiq@gmail.com> Co-authored-by: Jordan Harband <ljharb@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems pretty reasonable - with test changes, and the appropriate descriptions, this should be good to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Let's update the tests and get this landed :-)
@himanshu007-creator any test updates? there's a bunch of failing tests :-) |
Hi @ljharb , i would require some help on this |
I think what's needed is that all the test cases that were asserting I'm also seeing a syntax error in the logs, which I'll rereview for. |
ok, i think this will probably get most of them passing |
ok, now the failures are expected :-) all the "output" test cases will need to be updated to not have output, but to have suggestions. |
Codecov Report
@@ Coverage Diff @@
## master #3474 +/- ##
==========================================
- Coverage 97.58% 94.48% -3.10%
==========================================
Files 130 129 -1
Lines 9218 9189 -29
Branches 3341 3333 -8
==========================================
- Hits 8995 8682 -313
- Misses 223 507 +284
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Looks better! Seems like for the error cases, each error needs to supply a suggestions array. |
59af733
to
865ed16
Compare
069314a
to
181c68f
Compare
94cf97b
to
4f1ace7
Compare
no-invalid-html-attribute
: convert autofix to suggestion
@ljharb finally tests passed! :) |
4f1ace7
to
a522476
Compare
Fixes : #3458