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: Allow specifying default TSConfig behavior with project service #7761

Closed as not planned
Labels
enhancementNew feature or requestpackage: parserIssues related to @typescript-eslint/parserwontfixThis will not be worked on
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

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

Relevant Package

parser

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

I've heard of two requests aroundEXPERIMENTAL_useProjectService:

These are technically two requests, but I think it'd be good to discuss them together. Whatever API we end up going with may need to accommodate both.

Proposal: how about afallbackCompilerOptions?

typeFallbackCompilerOptions=/* Don't allow fallback/inferred projects at all */|"error"/* Allow fallback/inferred projects but log a warning */|"warn"/* Directly use these */ts.CompilerOptions;// (approximation of the shape we'd allow)interfaceProjectServiceParserOptions{EXPERIMENTAL_useProjectService:true;// If undefined, go with TypeScript's defaultsfallbackCompilerOptions?:FallbackCompilerOptions;}

Additional Info

Courtesy of@jakebailey inhttps://discord.com/channels/508357248330760243/1163326359100199012/1163526441103802398: project services have asetCompilerOptionsForInferredProjects we can use.

#7752 largely enables the case of an inferred project in the first place.

Edit: oh, and also mentioned here:#6575 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpackage: parserIssues related to @typescript-eslint/parserwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp