T
TanStack2mo ago
harsh-harlequin

Lint errors on new Tanstack Start project

Running lint on new Tanstack project (v 1.133.13) gives me these errors:
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

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
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

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
After some trial and error, I managed to resolve the errors by adding the config files to the ignores section of the eslint.config.js file:
export default [
{
ignores: [
'eslint.config.js',
'prettier.config.js',
'vite.config.ts',
],
},
...tanstackConfig,
];
export default [
{
ignores: [
'eslint.config.js',
'prettier.config.js',
'vite.config.ts',
],
},
...tanstackConfig,
];
I'm wondering if this is the right approach or if there's a better approach. Thanks!
4 Replies
apparent-cyan
apparent-cyan2mo ago
how is this related to start? how did you create the project?
harsh-harlequin
harsh-harlequinOP4w ago
I created it with npm create @tanstack/start@latest every project I've created with Tanstack Start with ESLint, including one today has these lint errors
apparent-cyan
apparent-cyan4w ago
can you create an issue here please: https://github.com/TanStack/create-tsrouter-app
GitHub
GitHub - TanStack/create-tsrouter-app: Create-tsrouter-app is drop-...
Create-tsrouter-app is drop-in replacement for create-react-app that builds TanStack Router based SPA applications - TanStack/create-tsrouter-app
harsh-harlequin
harsh-harlequinOP4w ago
Looks like there are 2 issues for it already: https://github.com/TanStack/create-tsrouter-app/issues/80 & https://github.com/TanStack/create-tsrouter-app/issues/123 the suggested fix is to add allowJs: true to the tsconfig.json
GitHub
Linter errors - "parserOptions.project" has been provided for @type...
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/sglut...
GitHub
ESLint errors after installing TanStack Router following official g...
Which project does this relate to? Create Tanstack App Describe the bug After following the official installation guide for TanStack Router, running npm run lint gives multiple ESLint errors, some ...

Did you find this page helpful?