You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
4
5
-
## Available Scripts
5
+
Currently, two official plugins are available:
6
6
7
-
In the project directory, you can run:
7
+
-[@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+
-[@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
8
9
9
-
### `npm start`
10
+
##Expanding the ESLint configuration
10
11
11
-
Runs the app in the development mode.\
12
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
12
+
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
13
14
-
The page will reload if you make edits.\
15
-
You will also see any lint errors in the console.
14
+
- Configure the top-level `parserOptions` property like this:
Launches the test runner in the interactive watch mode.\
20
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
-
22
-
### `npm run build`
23
-
24
-
Builds the app for production to the `build` folder.\
25
-
It correctly bundles React in production mode and optimizes the build for the best performance.
26
-
27
-
The build is minified and the filenames include the hashes.\
28
-
Your app is ready to be deployed!
29
-
30
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
-
32
-
### `npm run eject`
33
-
34
-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
-
36
-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
-
38
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
-
40
-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
-
42
-
## Learn More
43
-
44
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
-
46
-
To learn React, check out the [React documentation](https://reactjs.org/).
28
+
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
0 commit comments