-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Errorneous linting of jsx fragments #5466
Comments
[edit] Oops, I missed your package.json which extends react-app |
Wouldn't be the case that this is happening because CRA does not use
|
It seems this is fixed in jsx-eslint/eslint-plugin-react@18898e1#diff-d41ba36daf851354b9587064dc4ee0ac |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Issue tracking the publication of a new release: jsx-eslint/eslint-plugin-react#2046 |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. |
Is this a bug report?
yes
Steps to Reproduce
npx create-react-app app
src/App.js
withnpx eslint ./src
insideapp
Expected Behavior
no errors, no warnings
Actual Behavior
There is a warning:
If I remove react import from
src/App.js
, then it shows an error:Reproducible Demo
https://github.com/vadzim/errorneous-fragment-linting.git
The text was updated successfully, but these errors were encountered: