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

"Fragment is never used" error #8

Open
marksyzm opened this issue Apr 27, 2020 · 1 comment
Open

"Fragment is never used" error #8

marksyzm opened this issue Apr 27, 2020 · 1 comment

Comments

@marksyzm
Copy link

When running jest tests against files that have shorthand Fragment usage, they complain that Fragment doesn't exist. But when putting that in, eslint complains that Fragment is never used.

I then can't use the shorthand Fragments (<></>).

@geisterfurz007
Copy link
Contributor

geisterfurz007 commented Apr 10, 2021

I would love to work on this issue, however by my understanding it's not as simple as adding "fragment": "Fragment" to the react settings since that would be understood as h.Fragment and not the actual Fragment import. If there is a good approach to do this, I would like to create a PR but so far I would be unsure where to start here. With a little nudge, I am more than willing to invest some time into this!

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

No branches or pull requests

2 participants