Skip to content

Issue with the subDependencies of typescript-eslint #9112

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

Closed
4 tasks done
rajanmiddha001 opened this issue May 17, 2024 · 1 comment
Closed
4 tasks done

Issue with the subDependencies of typescript-eslint #9112

rajanmiddha001 opened this issue May 17, 2024 · 1 comment
Labels
fix: user error issue was fixed by correcting the configuration / correcting the code locked due to age Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing. wontfix This will not be worked on

Comments

@rajanmiddha001
Copy link

rajanmiddha001 commented May 17, 2024

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Relevant Package

typescript-eslint

Playground Link

No response

Repro Code

I started to install the packages 
eslint: 9.2.0 ,
typescript-eslint: 7.9.0
but it gives me an error Conflicting peer dependency: eslint@8.57.0 because typescript-eslint has eslint in the package.json with fixed version "8.57.0"  so it throws an error

ESLint Config

import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import sonarjs from "eslint-plugin-sonarjs";


export default [
  {
    languageOptions: { 
      globals: globals.node 
    }
  },
  pluginJs.configs.recommended,
  ...tseslint.configs.recommended,
  sonarjs.configs.recommended,
  {
    "rules": {
      "complexity": ["error", 7],
      "@typescript-eslint/no-explicit-any": ["off"]
    }
  }
];

tsconfig

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": { "*": ["types/*"] },
    "target": "ES2021",                          
    "module": "commonjs",                     
    "sourceRoot": "src",
    "outDir": "dist",
    "noImplicitAny": false,
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "declaration": false,
    "listFiles": false
  },
  "include": [
    "src/**/*"
  ],
  "exclude": [
    "test/**/*",
    ".vscode",
    ".serverless",
    ".git",
    "node_modules/**/*",
    "dist",
    ".eslintrc.js"
  ],
  "compileOnSave": true,
  "buildOnSave": false,
  "atom": {
    "rewriteTsconfig": false
  }
}

Expected Result

so it shouldn't fixed the eslint version to 8.57.0

Actual Result

it restricted me to install the npm packages.

Additional Info

No response

Versions

package version
@eslint/js 9.2.0
@typescript-eslint 7.9.0
TypeScript 5.4.5
ESLint 9.2.0

eslint error
typescript-eslint

@rajanmiddha001 rajanmiddha001 added bug Something isn't working triage Waiting for team members to take a look labels May 17, 2024
@auvred
Copy link
Member

auvred commented May 17, 2024

You've provided screenshots of the devDependencies section of the root package.json.

The actual place where eslint dependency is declared is

"peerDependencies": {
"eslint": "^8.56.0"
},


Please see pinned issue #8211:

We are not accepting issues against v9 until we have official support - so please do not file issues with crashes or bugs for now and please do not comment on this issue telling us about crashes.


If you want to try using typescript-eslint with eslint@9, you can use the v8 alpha version - #8211 (comment)

@auvred auvred closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
@auvred auvred added wontfix This will not be worked on fix: user error issue was fixed by correcting the configuration / correcting the code and removed bug Something isn't working triage Waiting for team members to take a look labels May 17, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2024
@bradzacher bradzacher added the locked due to age Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing. label Apr 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fix: user error issue was fixed by correcting the configuration / correcting the code locked due to age Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing. wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants