ESLint parserOptions issues

In my src/env.mjs file, I get this error
Parsing error: ESLint was configured to run on `<tsconfigRootDir>/src/env.mjs` using `parserOptions.project`: /users/niels/path/to/project/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-fileeslint
Parsing error: ESLint was configured to run on `<tsconfigRootDir>/src/env.mjs` using `parserOptions.project`: /users/niels/path/to/project/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-fileeslint
0 Replies
No replies yetBe the first to reply to this messageJoin