#Lint errors on new Tanstack Start project

7 messages · Page 1 of 1 (latest)

versed trellis
#

Running lint on new Tanstack project (v 1.133.13) gives me these errors:

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,
];

I'm wondering if this is the right approach or if there's a better approach. Thanks!

runic knoll
#

how is this related to start? how did you create the project?

versed trellis
#

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

#

Lint errors on new Tanstack Start project

runic knoll
versed trellis
#

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

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

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