-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebreaking changeThis change will require a new major version to be releasedThis change will require a new major version to be releasedenhancementNew feature or requestNew feature or requestpackage: utilsIssues related to the @typescript-eslint/utils packageIssues related to the @typescript-eslint/utils package
Milestone
Description
eslint-scope
has switched to use package.json exports - meaning we can no longer deep import the various bits of their codebase. The export we currently have in utils
is to add types to the package which are augmented with our TSESTree types.
Because of this breaking change we cannot provide these types any more.
The reason I never removed eslint-scope
from utils
originally was laziness... People can use our scope-manager
package instead - which is a proper fork (/ rewrite) of eslint-scope
, rather than just a hackily typed and exported version.
Fail
import {TSESLintScope} from '@typescript-eslint/utils';
Pass
import * as TSESLintScope from '@typescript-eslint/scope-manager';
JoshuaKGoldberg
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebreaking changeThis change will require a new major version to be releasedThis change will require a new major version to be releasedenhancementNew feature or requestNew feature or requestpackage: utilsIssues related to the @typescript-eslint/utils packageIssues related to the @typescript-eslint/utils package