-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug]: Autofix do not work in react/jsx-wrap-multilines
#3545
Comments
It's not a bug that a rule doesn't autofix, to be clear - not all rules autofix. That said, it'd be great to add autofixing to this rule. |
I see that the rule has some code that does autofix, also documentation mentioned this. |
ah yes, you're right, everything is passing a fixer, so there's something wrong here. |
Tried replicating this, but it fixes that example piece of code correctly for me 🤔 |
@burtek with what config? The test case I can get passing autofixes to: export default () => (<h1>
<span>
hello
</span>
</h1>); (note the parens not being on their own lines) |
Oh wait, missed the part where parens should be on separate lines. Will see if I can fix it quickly |
Wait, but with what config @ljharb ? Default is EDIT: see attached PR with tests |
Is there an existing issue for this?
Description Overview
Error reported:

No fix applied
Expected Behavior
Auto fix correct code to:
eslint-plugin-react version
v7.32.2
eslint version
v8.35.0
node version
v18.14.2
The text was updated successfully, but these errors were encountered: