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

LINT: [error in resolving packages version of install dependencies] There is no support for eslint 9 #110

Open
BaurinVladislav opened this issue Aug 31, 2024 · 1 comment

Comments

@BaurinVladislav
Copy link

При попытке установить зависимость наблюдаю ошибку:

vite-eslint-app % npm install -D @feature-sliced/eslint-config
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^9.9.0" from the root project
npm ERR!   peer eslint@">=6.0.0" from [email protected]
npm ERR!   node_modules/eslint-plugin-boundaries
npm ERR!     peer eslint-plugin-boundaries@">=2" from @feature-sliced/[email protected]
npm ERR!     node_modules/@feature-sliced/eslint-config
npm ERR!       dev @feature-sliced/eslint-config@"*" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" from [email protected]
npm ERR! node_modules/eslint-plugin-import
npm ERR!   peer eslint-plugin-import@">=2" from @feature-sliced/[email protected]
npm ERR!   node_modules/@feature-sliced/eslint-config
npm ERR!     dev @feature-sliced/eslint-config@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /Users/main/.npm/_logs/2024-08-31T20_44_44_205Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/main/.npm/_logs/2024-08-31T20_44_44_205Z-debug-0.log

package.json

{
  "name": "vite-app",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "tsc -b && vite build",
    "lint": "eslint .",
    "preview": "vite preview"
  },
  "dependencies": {
    "react": "^18.3.1",
    "react-dom": "^18.3.1"
  },
  "devDependencies": {
    "@eslint/js": "^9.9.0",
    "@types/react": "^18.3.3",
    "@types/react-dom": "^18.3.0",
    "@vitejs/plugin-react": "^4.3.1",
    "eslint": "^9.9.0",
    "eslint-plugin-react-hooks": "^5.1.0-rc.0",
    "eslint-plugin-react-refresh": "^0.4.9",
    "globals": "^15.9.0",
    "typescript": "^5.5.3",
    "typescript-eslint": "^8.0.1",
    "vite": "^5.4.1",
    "vite-plugin-eslint2": "^4.4.0"
  }
}
@illright
Copy link
Member

illright commented Sep 1, 2024

This config is mostly deprecated in favour of Steiger, our own linter. Consider migrating to it. Otherwise, if this is a simple fix, then we would welcome a PR

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

No branches or pull requests

2 participants