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

PluginConflictError: Plugin "react" was conflicted between "package.json #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

LorhanSohaky
Copy link

I couldn't open Issue....

I had this error:

PluginConflictError: Plugin "react" was conflicted between "package.json » eslint-config-react-app » /.../project/node_modules/eslint-config-react-app/base.js" and "BaseConfig » /.../project/node_modules/@ksmithut/prettier-standard/src/vendor/node_modules/eslint-config-standard-jsx/index.js".

package.json

{
  "name": "frontend",
  "version": "1.1.0",
  "private": true,
  "engines": {
    "node": ">=14.18.3, <16.0.0"
  },
  "dependencies": {
    "env-cmd": "^10.1.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-router-dom": "^5.1.2",
    "react-scripts": "^5.0.1",
    "redux-devtools-extension": "^2.13.8",
    "web-vitals": "^2.1.4"
  },
  "scripts": {
    "start": "npx serve build",
    "dev": "env-cmd -e localhost react-scripts start",
    "prepare": "husky install",
    "lint": "prettier-standard  \"*.+(html|js|jsx|json|css|md)\" \"+(src)/**/*.+(html|js|jsx|json|css|md)\" --check",
    "lint:staged": "lint-staged",
    "lint:fix": "prettier-standard \"*.+(html|js|jsx|json|css|md)\" \"+(src)/**/*.+(html|js|jsx|json|css|md)\" --format --lint",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "lint-staged": {
    "*.+(html|js|jsx|json|css|md|json)": [
      "prettier-standard --lint",
      "git add"
    ],
    "+(src)/**/*.+(html|js|jsx|json|css|md)": [
      "prettier-standard --lint",
      "git add"
    ]
  },
  "eslintConfig": {
    "extends": [
      "react-app"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@ksmithut/prettier-standard": "^0.1.4",
    "husky": "^6.0.0",
    "lint-staged": "^11.1.2"
  }
}

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