Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

@typescript-eslint/utils imports no longer detect types in moduleResolution: node(10) in 6.0.0 #7185

Closed
Labels
bugSomething isn't workingworking as intendedIssues that are closed as they are working as intended
@andreashuber69

Description

@andreashuber69

Edit (July 2023 by@JoshuaKGoldberg): see...

(hijacking OP for visibility)

Edit 2: filed & pinned#7284 for visibility.


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 havesearched for related issues and found none that matched my issue.
  • I haveread the FAQ and my problem is not listed.

Issue Description

After upgrading@typescript-eslint/eslint-plugin and@typescript-eslint/parser to 6.0.0 (from 5.61.0) it appears that@typescript-eslint/utils can no longer be found, see Repro for details.

Reproduction Repository Link

https://github.com/andreashuber69/eslint-config

Repro Steps

git clone https://github.com/andreashuber69/eslint-config.gitcd eslint-confignpm inpm run lint

The above steps produce no error (5.61.0 packages are installed). Now upgrade to 6.0.0 and lint again, as follows:

npm i @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latestnpm run lint

I get the following errors:

/home/a/git/eslint-config/test/getSeverities.ts   6:18  error  'any' overrides all other types in this union type  @typescript-eslint/no-redundant-type-constituents   6:31  error  'any' overrides all other types in this union type  @typescript-eslint/no-redundant-type-constituents  14:13  error  Unsafe return of an `any` typed value               @typescript-eslint/no-unsafe-return  19:11  error  Unsafe assignment of an `any` value                 @typescript-eslint/no-unsafe-assignment  29:13  error  Unsafe return of an `any` typed value               @typescript-eslint/no-unsafe-return/home/a/git/eslint-config/test/typescriptEslintRules.ts   5:69  error  Unsafe return of an `any` typed value       @typescript-eslint/no-unsafe-return   5:81  error  Unsafe member access [0] on an `any` value  @typescript-eslint/no-unsafe-member-access   8:11  error  Unsafe assignment of an `any` value         @typescript-eslint/no-unsafe-assignment  14:5   error  Unsafe return of an `any` typed value       @typescript-eslint/no-unsafe-return

Versions

packageversion
@typescript-eslint/eslint-plugin6.0.0
@typescript-eslint/parser6.0.0
@typescript-eslint/scope-manager6.0.0
@typescript-eslint/typescript-estree6.0.0
@typescript-eslint/type-utils6.0.0
@typescript-eslint/utils6.0.0
TypeScript5.1.6
ESLint8.44.0
node18.16.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingworking as intendedIssues that are closed as they are working as intended

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp