Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refactor: Deprecate createDefaultProgram/shouldCreateDefaultProgram #5857

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Overview

Back in the day, if a user didn't provide a parserOptions.project, @typescript-eslint/parser would create one behind-the-scenes for them. This was convenient but came at severe performance cost: the parser would recompute a bunch of information for each file added.

We wish to remove the createDefaultProgram option. But, there may be some users who still rely on it. See #3627.

For now, our plan will be:

  1. In the upcoming major version, rename it to deprecated__createDefaultProgram
  2. Remove it in the next major version

Metadata

Metadata

Labels

accepting prsGo ahead, send a pull request that resolves this issuebreaking changeThis change will require a new major version to be releasedrefactorPRs that refactor code only

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions