-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingworking as intendedIssues that are closed as they are working as intendedIssues that are closed as they are working as intended
Milestone
Description
Edit (July 2023 by @JoshuaKGoldberg): see...
- @typescript-eslint/utils imports no longer detect types in moduleResolution: node(10) in 6.0.0 #7185 (comment) for why this is
working as intended
- @typescript-eslint/utils imports no longer detect types in moduleResolution: node(10) in 6.0.0 #7185 (comment) for why Next.js & other bundled apps should use
"moduleResolution": "bundler"
(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 have searched for related issues and found none that matched my issue.
- I have read 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.git
cd eslint-config
npm i
npm 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@latest
npm 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
package | version |
---|---|
@typescript-eslint/eslint-plugin |
6.0.0 |
@typescript-eslint/parser |
6.0.0 |
@typescript-eslint/scope-manager |
6.0.0 |
@typescript-eslint/typescript-estree |
6.0.0 |
@typescript-eslint/type-utils |
6.0.0 |
@typescript-eslint/utils |
6.0.0 |
TypeScript |
5.1.6 |
ESLint |
8.44.0 |
node |
18.16.1 |
JoshuaKGoldberg
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingworking as intendedIssues that are closed as they are working as intendedIssues that are closed as they are working as intended