Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When npm start, show "Plugin "react" was conflicted between "package.json » eslint-config-react-app..."bug #11940

Open
BrickerZou opened this issue Jan 16, 2022 · 6 comments · May be fixed by ayishagisel/create-react-app#119

Comments

@BrickerZou
Copy link

BrickerZou commented Jan 16, 2022

Plugin "react" was conflicted between "package.json » eslint-config-react-app » D:\d\react\test_react\node_modules\eslint-config-react-app\base.js" and "BaseConfig » D:\d\react\test_react\node_modules\eslint-config-react-app\base.js".
@igortas
Copy link

igortas commented Jan 16, 2022

@7889zcm try to update setupTests.ts with this import statement: import @types/jest

@BrickerZou
Copy link
Author

Thanks, but I'm not sure. What exactly do in setupTest.ts?Just import @types/jest ?

@igortas
Copy link

igortas commented Jan 17, 2022

Thanks, but I'm not sure. What exactly do in setupTest.ts?Just import @types/jest ?

U are right, I'm in middle of setting up monorepo w/ lerna and things are not going well., so I was figuring things out Actually u don't need that import, but, u need to set skip eslint flag: DISABLE_ESLINT_PLUGIN=true in your start script.

Do this, in case u have custom .eslintrc file. Also I've remove CRA eslint config inside package.json.

@BrickerZou
Copy link
Author

oh yes thanks

@magicdima
Copy link

magicdima commented Nov 17, 2022

delete eslint config .eslintrc.{js,yml,json} file in your project, CRA provides eslint configuration and your custom config in conflict with the base one. If you want to override the base CRA esling config refer to this section of docs https://create-react-app.dev/docs/setting-up-your-editor/#extending-or-replacing-the-default-eslint-config

@Selvakumar-123
Copy link

data not shown in list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants