Skip to content

mkvlrn/template-vite-react

Repository files navigation

template-vite-react

A sane, opinionated template for esm react projects written in typescript and built with vite.

Uses:

running

npm run dev

Runs the project in watch mode.

npm run build

Builds/transpiles the code to ./build.

npm start

Runs the production simulation of the project.

npm test

Runs tests with vitest.

npm run biome-fix

Runs biome in fix mode (only safe fixes) to lint and format the project.

npm run typecheck

Runs type checking using tsc.

that tsconfig.json seems very strict and opinionated

Yup.

vscode

You might want to install the recommended extensions in vscode. Search for @recommended in the extensions tab, they'll show up as "workspace recommendations".

If you have been using eslint and prettier and their extensions, you might want to disable eslint entirely and keep prettier as the formatter only for certain types of files.

This is done by the .vscode/settings.json file.

A debug configuration for Firefox is also included.

About

A template for react projects built with vite

Topics

Resources

License

Stars

Watchers

Forks