typescript-eslint: Bug: Leading to new Errors while Upgrading package typescript-eslint/eslint-plugin from 5.62.0 to 6.19.0

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

eslint-plugin-tslint

Playground Link

No response

Repro Code

npm install eslint@latest @typescript-eslint/parser@latest @typescript-eslint/eslint-plugin@latest eslint-plugin-tsdoc@latest eslint-plugin-import@latest --save-dev

npm lint:check

ESLint Config

//other parts of code of .eslintric.json

  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "./tsconfig.json",
    "tsconfigRootDir": ".",
    "ecmaVersion": "latest",
    "sourceType": "module"
  },

  "plugins": ["@typescript-eslint", "eslint-plugin-tsdoc", "import"],
  "root": true,
  "rules": {
    "no-restricted-imports": [
      "error",
      {
        "patterns": ["**/src/**"]
      }
    ],
//other parts of code of .eslintric.json

tsconfig

{
  "compilerOptions": {
    "target": "es2016" ,
    "module": "commonjs" ,
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "skipLibCheck": true,
    "resolveJsonModule": true 
  }
}

Expected Result

I expected that runs fine after all compatibility and peer dependencies solved. and my expected lint: check will work

Actual Result

Upgraded the packages typescript-eslint/eslint-package to v16.9.0 and dependency peer requirements are also updated. But when running lint:check it causing new error. I tried in all ways from myside to resolve this issue through checking .eslintintric.json and tsconfig.json and they aren’t found any solutions, even tried through upgrading to v16.8.0 but no results.

I have checked the paths and compatibility everything looks fine but leading to fail with this error: image

Error cause --> .eslintric.json image

Additional Info

No response

Versions

package 6.19.0
@typescript-eslint/eslint-plugin 6.19.0
@typescript-eslint/parser 6.19.0
TypeScript 5.1.6
ESLint 8.26.0
node 21.5.0

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (4 by maintainers)

Most upvoted comments

Please re-read my above comment. It had a link and the help to fix this.