jaredpalmer / tsdx

Zero-config CLI for TypeScript package development
https://tsdx.io
MIT License
11.21k stars 505 forks source link

ESLint dependency tree failing on build with eslint-config-tsdx #1067

Open joshuaaron opened 2 years ago

joshuaaron commented 2 years ago

Build failing with peer dependency issues for ESLint >7.x inside tsdx at the moment for me

Screen Shot 2021-08-03 at 8 10 12 PM

It seems eslint-config-tsdx has peer and devDeps of 6.x for eslint:

"peerDependencies": {
    "eslint": "6.x"
  },
  "devDependencies": {
    "eslint": "6.x"
  },

Is there a way around this? I tried just removing the eslint-config-tsdx lib but that leads to other issues though I'm not sure what a good workaround here is?

package.json


"peerDependencies": {
    "react": ">=16.8.0",
    "react-dom": ">=16.8.0"
  },
  "devDependencies": {
    "@testing-library/jest-dom": "5.11.9",
    "@testing-library/react": "11.2.5",
    "@testing-library/react-hooks": "5.0.3",
    "@types/react": "17.0.0",
    "@types/react-dom": "17.0.0",
    "@typescript-eslint/eslint-plugin": "4.11.1",
    "@typescript-eslint/parser": "4.11.1",
    "eslint": "7.11.0",
    "eslint-config-tsdx": "0.2.0",
    "eslint-plugin-react-hooks": "4.2.0",
    "husky": "4.3.6",
    "lint-staged": "10.5.4",
    "prettier": "2.2.1",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-test-renderer": "17.0.1",
    "tsdx": "0.14.1",
    "tslib": "2.0.3",
    "typescript": "4.0.3"
  },
aladdin-add commented 2 years ago

as of npm v7, you can try npm install --legacy-peer-deps.

just a reminder: if tsdx does not work well with eslint v7, you can use the fork @weiran.zsd/tsdx