This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Description
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:
react/no-unescaped-entities
react/self-closing-comp
react/void-dom-elements-no-children
react/jsx-indent
react/jsx-indent-props
react/jsx-max-props-per-line
Work still needs to be done to investigate the issue with each rule to determine exactly where the problem comes from.
Activity
corbinu commentedon Apr 5, 2017
@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 :)
soda0289 commentedon Apr 5, 2017
Thanks @corbinu. We will need to find some projects that use typescript and react.
The only one I can think of is Apollo React Client and it is tiny. We should start working on integration tests between all these rules and typescript parser as well.
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.
corbinu commentedon Apr 5, 2017
I just added the plugin and https://github.com/alm-tools/alm
I am happy to take suggestions though as I don't use React or TSX at all
Will try to push the update tomorrow and then shouldn't be hard for us to make a list.
sompylasar commentedon May 20, 2017
Refs #266 (comment) re:
react/no-unescaped-entities
.soda0289 commentedon May 20, 2017
@sompylasar #277 fixes
no-unescaped-entites
soda0289 commentedon May 23, 2017
These rules are now fixed in the master branch and will be part of the next release
sompylasar commentedon May 23, 2017
Thanks @soda0289 !
OliverJAsh commentedon Jul 7, 2017
Would it be possible to push a release out now?
JamesHenry commentedon Jul 10, 2017
@OliverJAsh we have just cut a release for the latest work https://github.com/eslint/typescript-eslint-parser/releases/tag/v4.0.0
sarod commentedon Aug 3, 2017
README.MD still references this issue in the known issues list. Is it on purpose?
soda0289 commentedon Aug 3, 2017
@sarod The README can be updated. Haven't since any other issues reported from the react plugin
2 remaining items