-
-
Notifications
You must be signed in to change notification settings - Fork 75
Known issues with JSX and eslint-plugin-react #213
Comments
@soda0289 I will make sure to add the react plugin to my smoke tests. I know I still need to release a new version. Just been busy with work work :) |
Thanks @corbinu. We will need to find some projects that use typescript and react. I don't think the rules cause any crashes just false positives or incorrect line/column numbers. I noticed that the jsx-indent rules will cause eslint to run forever but have not tried to reproduce on a code snippet. We should also make a list of known issues for eslint core rules and popular plugins too as I think it will help reduce the amount of issues for this project. |
I just added the plugin and https://github.com/alm-tools/alm Will try to push the update tomorrow and then shouldn't be hard for us to make a list. |
Refs #266 (comment) re: |
@sompylasar #277 fixes |
These rules are now fixed in the master branch and will be part of the next release |
Thanks @soda0289 ! |
Would it be possible to push a release out now? |
@OliverJAsh we have just cut a release for the latest work https://github.com/eslint/typescript-eslint-parser/releases/tag/v4.0.0 |
README.MD still references this issue in the known issues list. Is it on purpose? |
@sarod The README can be updated. Haven't since any other issues reported from the react plugin |
These rules now work, however I think there are issues with the auto fixes—they seem to be corrupting the code. See #343. |
Since typescript v2.2 and typescript-eslint-parser v2.1 JSX parsing has significantly improved. All of the eslint rules should work as expected with JSX. We have also tested the eslint-plugin-jsx-a11y and have found no issues.
Most of the rules in eslint-plugin-react work except for the following:
Work still needs to be done to investigate the issue with each rule to determine exactly where the problem comes from.
The text was updated successfully, but these errors were encountered: