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

Bug: Parser should error when bothprojectService andproject are set #11319

Open
Labels
bugSomething isn't workingtriageWaiting for team members to take a look
@MariaSolOs

Description

@MariaSolOs

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I havesearched for related issues and found none that matched my issue.
  • I haveread the FAQ and my problem is not listed.

Relevant Package

parser

Playground Link

No response

Repro Code

N/A.Thisissue isaboutaconfusingconfigurationbehavior.

ESLint Config

// base-config.jsmodule.exports={plugins:["@typescript-eslint"],parser:"@typescript-eslint/parser",parserOptions:{projectService:true}}// .eslintrc.jsmodule.exports={extends:"./base-config.js",parserOptions:{project:"./tsconfig.eslint.json"}}

tsconfig

{"compilerOptions": {// ...  }}

Expected Result

The docs aren't clear of what the parser will use when bothprojectService andproject are set. This can be particularly confusing when extending a configuration that setsparserOptions which are later combined into a single merged object. I would expect for the parser to throw an explicit error in such misconfiguration scenarios, or have a well-documented explanation of what happens when both settings are provided.

Actual Result

eslint --print-config shows that the merged configuration has{ project: "./tsconfig.eslint.json", projectService: true }, and it's not clear how the TypeScript program will be discovered.

Additional Info

No response

Versions

packageversion
@typescript-eslint/eslint-plugin^8.31.0
@typescript-eslint/parser^8.31.0
TypeScript5.8.3
ESLint^8.57.0
node22.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageWaiting for team members to take a look

    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