-
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. |
Beta Was this translation helpful? Give feedback.
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.
|
Beta Was this translation helpful? Give feedback.
-
"eslint-plugin-react": "^7.28.0", is incompatible with react-script v5 =( use " |
Beta Was this translation helpful? Give feedback.
-
The following steps helped me .eslintrc.json
packege.json
|
Beta Was this translation helpful? Give feedback.
-
I only had that to downgrade |
Beta Was this translation helpful? Give feedback.
-
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"
}
]
} |
Beta Was this translation helpful? Give feedback.
Ok I found a solution.
I had to upgrade the ESlint package that comes with CRA with the following command.