TanStackT
TanStack3mo ago
6 replies
specific-silver

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


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!
Was this page helpful?