Skip to content

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

Closed
@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