Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.3 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.3 KB

React + Vite

installing dependencies

yarn

Running dev server:

yarn dev

Running lint:

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).

Running unit tests:

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

Based on Academy lightweight template for React

  • 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

Original notes from the react template for vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available: