yarn
yarn dev
yarn lint
(however, if you install the vscode eslint extension as recommended, eslint will read the eslint config file in this project and give you feedback within vscode).
yarn test
or, to have tests re-run on each file save:
yarn test:watch
If you are getting errors from ts (typescript) that you want to turn off, you can edit jsconfig.json
and set"checkJs": false
- vite,
- eslint rule tweaks,
- vitest for testing,
- prettier for formatting
- deleted lots of css and initial App.jsx content
- added optional components demoing prop-types
- added demo of a unit test
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh