A modern minimal Vite + React + TypeScript + TailwindCSS template with pre-configured ESLint (with Airbnb JS/React rules), Prettier, Testing with Jest and Git hooks with Husky out of the box 📦
This template arose out of a need to unite all the above libraries, which were not found in the existing Vite templates. This template has an active contributors that will update everything on this template as needed
npx degit dmitrix11/react-ts-starter my-app
cd my-app
# Required if you want a repository and work with Git hooks
git init
pnpm install
pnpm dev
In this project, you can run the following scripts:
Script | Description |
---|---|
pnpm dev | Runs the app in the development mode. |
pnpm build | Builds the app for production to the dist folder. |
pnpm preview | Builds the app for production to the dist folder, and run locally server. |
pnpm lint | Runs the Eslint and show code problems |
pnpm lint:fix | Runs the Eslint and fix the code problems |
pnpm format | Runs the Prettier and fix code style |
pnpm compile | Runs the TS Compiling |
pnpm test | Run the app tests. |
pnpm commit | Open the CZ CLI to create a message to your commit. |
To have correctly functioning (code and tests) of absolute imports, you should add some codes in some files, like: