Skip to content
/ template-vite-react Public template

A template for react projects built with vite

License

Notifications You must be signed in to change notification settings

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

yarn dev

Runs the project in watch mode.

yarn build

Builds/transpiles the code to ./build.

yarn start

Runs the built project.

yarn test, yarn test:e2e

Runs tests with vitest.

yarn tidy

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

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

I suggesting using the settings in .vscode/settings-example.json, that should be pasted into your own .vscode/settings.json. I'm not commiting the .vscode/settings.json proper because it shouldn't be in VCS as it contains your personal settings.