Skip to content

Utils: remove eslint-scope types #4953

Closed
@bradzacher

Description

@bradzacher

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';

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebreaking changeThis change will require a new major version to be releasedenhancementNew feature or requestpackage: utilsIssues related to the @typescript-eslint/utils package

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions