|
Hi! Since I added eslint-config-airbnb the project gives me an error when I try to build it. Here is my package.json I wanted to post it here first before opening an issue in case it is some dumb mistakes or a known error. |
Answered by
Leo843
Jan 1, 2022
Replies: 6 comments 11 replies
|
Ok I found a solution. I had to upgrade the ESlint package that comes with CRA with the following command. |
4 replies
Answer selected by
Leo843
|
"eslint-plugin-react": "^7.28.0", is incompatible with react-script v5 =( use " |
0 replies
|
The following steps helped me .eslintrc.json packege.json |
6 replies
|
I only had that to downgrade |
0 replies
|
Further to @yaverm's suggestion .eslintrc.json "rules": {
"react/function-component-definition": [
'error', // <-------- "2" didn't work for me, for some reason
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
]
} |
1 reply
|
. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok I found a solution.
I had to upgrade the ESlint package that comes with CRA with the following command.