Skip to content

Linter errors - "parserOptions.project" has been provided for @typescript-eslint/parser. #80

Open
@randspy

Description

@randspy

Which project does this relate to?

Create Tanstack App

Describe the bug

Hi,

I get lint errors on a generated app without any modifications. Linting in the IDE (Cursor) works correctly.

/Users/sgluter/programming/react/tanstack/test-lint/eslint.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): eslint.config.js

/Users/sgluter/programming/react/tanstack/test-lint/prettier.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): prettier.config.js

/Users/sgluter/programming/react/tanstack/test-lint/vite.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): vite.config.js

✖ 3 problems (3 errors, 0 warnings)

Your Example Website or App

https://github.com/TanStack/create-tsrouter-app/

Steps to Reproduce the Bug or Issue

Run:

$ npx create-tsrouter-app@latest --add-ons
┌ Let's configure your TanStack application

◇ What would you like to name your project?
│ test-lint

◇ Select the router type:
│ File Router - File-based routing structure

◇ Would you like to use Tailwind CSS?
│ No

◇ Select toolchain
│ eslint+prettier

◇ What add-ons would you like for your project:
│ none

◇ Would you like any examples?
│ none

◇ Installed dependencies

◇ Applied toolchain eslint+prettier

◇ Initialized git repository

└ Your TanStack app is ready in 'test-lint'.

Use the following commands to start your app:
% cd test-lint
% npm start

Please read the README.md for more information on testing, styling, adding routes, react-query, etc.

$ cd test-lint
$ npm run lint

lint
eslint

Expected behavior

Shouldn't run into errors

Screenshots or Videos

No response

Platform

  • OS: macOS Sequoia 15.3.2
  • Node: 22.14.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions