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

Known issues with JSX and eslint-plugin-react  #213

@soda0289

Description

@soda0289
Member

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

corbinu commented on Apr 5, 2017

@corbinu

@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

soda0289 commented on Apr 5, 2017

@soda0289
MemberAuthor

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

corbinu commented on Apr 5, 2017

@corbinu

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.

self-assigned this
on Apr 10, 2017
sompylasar

sompylasar commented on May 20, 2017

@sompylasar

Refs #266 (comment) re: react/no-unescaped-entities.

soda0289

soda0289 commented on May 20, 2017

@soda0289
MemberAuthor

@sompylasar #277 fixes no-unescaped-entites

soda0289

soda0289 commented on May 23, 2017

@soda0289
MemberAuthor

These rules are now fixed in the master branch and will be part of the next release

sompylasar

sompylasar commented on May 23, 2017

@sompylasar

Thanks @soda0289 !

OliverJAsh

OliverJAsh commented on Jul 7, 2017

@OliverJAsh

Would it be possible to push a release out now?

JamesHenry

JamesHenry commented on Jul 10, 2017

@JamesHenry
Member
sarod

sarod commented on Aug 3, 2017

@sarod

README.MD still references this issue in the known issues list. Is it on purpose?

soda0289

soda0289 commented on Aug 3, 2017

@soda0289
MemberAuthor

@sarod The README can be updated. Haven't since any other issues reported from the react plugin

2 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @sompylasar@corbinu@JamesHenry@OliverJAsh@soda0289

      Issue actions

        Known issues with JSX and eslint-plugin-react · Issue #213 · eslint/typescript-eslint-parser