A useful video tutorial about how to setup environment for Vite + React + Typescript + Eslint + Prettier + Vitest and so on

Some bash commands and github link in this video:

npm i -D eslint
npx eslint --init

npx install-peerdeps --dev eslint-config-airbnb
npm install eslint-config-airbnb-typescript
npm i -D prettier eslint-config-prettier eslint-plugin-prettier
# crete cjs file for prettier
npm i -D vitest
npm i -D @testing-library/react @testing-library/jest-dom

https://github.com/CodingGarden/react-ts-starter

发表回复