Skip to content

Configuration for rule "react/function-component-definition" is invalid #11864

Answered by Leo843
Leo843 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok I found a solution.

I had to upgrade the ESlint package that comes with CRA with the following command.

yarn upgrade --latest react-scripts

Replies: 6 comments 11 replies

Comment options

You must be logged in to vote
4 replies
@douglaszaltron
Comment options

@implkiennguyen
Comment options

@Yashvi-98
Comment options

@Eirxne
Comment options

Answer selected by Leo843
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@Max0nyshchenko
Comment options

@namlq93
Comment options

@hec9527
Comment options

@ahmadkhanzadeh
Comment options

@saadazghour
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Udaay
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet