Skip to content

Enhancement: Remove 2 year old backwards compatibility check from getParserServices #5508

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Before You File a Proposal Please Confirm You Have Done The Following...

Relevant Package

utils

My proposal is suitable for this project

  • I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).

Description

The getParserServices function contains this comment:

// backwards compatibility check
// old versions of the parser would not return any parserServices unless parserOptions.project was set

Additionally, later on in that file:

const hasFullTypeInformation =
  context.parserServices.hasFullTypeInformation ??
  /* backwards compatible */ true;

Does that mean we can get rid of some of the code in that file?

Fail

n/a

Pass

n/a

Additional Info

No response

Metadata

Metadata

Assignees

Labels

breaking 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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy