Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0.0 : vite-template-redux : npm run lint fails out of the box #132

Open
crazymykl opened this issue Jan 31, 2025 · 3 comments · May be fixed by #133
Open

v2.0.0 : vite-template-redux : npm run lint fails out of the box #132

crazymykl opened this issue Jan 31, 2025 · 3 comments · May be fixed by #133
Assignees
Labels
bug Something isn't working

Comments

@crazymykl
Copy link

Steps to Reproduce

npm install

~/w/r/p/vite-template-redux ❯❯❯ npm run lint                                                                                                                                                                                      

> vite-template-redux@0.0.0 lint
> eslint .

=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <5.2.0

YOUR TYPESCRIPT VERSION: 5.7.3

Please only submit bug reports when using the officially supported version.

=============

/Users/crazymykl/workspace/redux-templates/packages/vite-template-redux/vite.config.ts
  0:0  error  Parsing error: ESLint was configured to run on `<tsconfigRootDir>/vite.config.ts` using `parserOptions.project`: /users/crazymykl/workspace/redux-templates/packages/vite-template-redux/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-file

✖ 1 problem (1 error, 0 warnings)
@aryaemami59
Copy link
Contributor

I'm currently fixing multiple issues across all templates, and this one will be fixed as well.

@aryaemami59 aryaemami59 self-assigned this Jan 31, 2025
@aryaemami59 aryaemami59 added the bug Something isn't working label Jan 31, 2025
@nickserv
Copy link
Contributor

@aryaemami59 Thanks! btw if you haven't recently pulled upstream updates to the Vite templates it would probably be a good start now that they've got a more complete custom ESLint config.

@aryaemami59
Copy link
Contributor

@nickserv

@aryaemami59 Thanks! btw if you haven't recently pulled upstream updates to the Vite templates it would probably be a good start now that they've got a more complete custom ESLint config.

Yup, that's exactly what I've done, thanks for letting me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants