Skip to content

Bug (v8): .js files not found with parserOptions.project set to tsconfig.eslint.json including **/*.js #9749

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

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 have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Issue Description

Coming over from maxnowack/signaldb#817: with v7, npm run lint passes in that repository. But when upgrading to v8:

/Users/josh/repos/signaldb/.eslintrc.js
  0:0  error  Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): .eslintrc.js

/Users/josh/repos/signaldb/commitlint.config.js
  0:0  error  Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): commitlint.config.js

/Users/josh/repos/signaldb/examples/appwrite/next.config.js
  0:0  error  Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): examples/appwrite/next.config.js

/Users/josh/repos/signaldb/examples/firebase/next.config.js
  0:0  error  Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): examples/firebase/next.config.js

/Users/josh/repos/signaldb/examples/replication-http/next.config.js
  0:0  error  Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): examples/replication-http/next.config.js

/Users/josh/repos/signaldb/examples/rxdb/next.config.js
  0:0  error  Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): examples/rxdb/next.config.js

/Users/josh/repos/signaldb/examples/supabase/next.config.js
  0:0  error  Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): examples/supabase/next.config.js

...despite parserOptions.project: './tsconfig.eslint.json' explicitly having include: ["**/*.js"] (among other entries).

Reproduction Repository Link

https://github.com/maxnowack/signaldb/tree/ab50bdeb84dbcc3ce6241b1ac53d239eef6d08d2

Repro Steps

  1. clone the repo
  2. npm install
  3. npm run lint

Versions

package version
@typescript-eslint/eslint-plugin 8.0.1
@typescript-eslint/parser 8.0.1
TypeScript 5.5.4
ESLint 8.57.0

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.triageWaiting 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