autofix for jsx-sort-props doesn't respect comments
See original GitHub issueAutofix for jsx-sort-props doesn’t respect comments.
For example:
<foo
b={1}
// comment for a
a={0}
/>
will be fixed like this:
<foo
a={0}
// comment for a
b={1}
/>
But I think it should be like this:
<foo
// comment for a
a={0}
b={1}
/>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:14 (9 by maintainers)
Top Results From Across the Web
eslint-plugin-react/CHANGELOG.md at master
... jsx-no-leaked-render : autofix nested "&&" logical expressions (#3353 @hduprat); jsx-sort-props : sorted attributes now respect comments ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So, something like this? Ok, I will take a look
@ROSSROSALES I think the comments will be attached as a property on an adjacent node of another kind.