Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enhancement: Disallow parserOptions.project: [] (prefer false and/or null?) #8210

Closed as not planned
Labels
enhancementNew feature or requestlocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.wontfixThis will not be worked on
Milestone
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

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

Relevant Package

typescript-estree

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

Forwarding@fisker's#8136 (comment) here: right now, it seems there are three ways to turn offparserOptions.project in some way:

  • false
  • null
  • []

That last one,[], is something I didn't know anybody was using (thanks@fisker for mentioning!). My interpretation ofparserOptions.project set to an array is that providing aproject array says explicitly that thereis a list of projects. So not providing any projects in that list means you'll never find the types. If there's no difference between that andfalse/null, then this is an ambiguity we need to at least document.

Proposal: as a breaking change for v7, if we see an empty array, perhaps we should throw an error (à la#6403) asking the user to either put projects in it, use v7's name forEXPERIMENTAL_useProjectService, or set it tofalse /null?

Additional Info

Adding to thev7 v8 milestone as we should really lock this down while we have the change to make breaking changes if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp