Closed
Description
Describe the bug
The default .eslintrc.cjs
file included in packages/create-vite/template-react
and packages/create-vite/template-react-ts
has a linter error in a freshly generated app.
'module' is not defined
Reproduction
https://stackblitz.com/edit/vitejs-vite-zyxecy?file=.eslintrc.cjs%3AL1&terminal=dev
Steps to reproduce
Create a vite app with react or react with TypeScript.
System Info
N/A
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.