/vite-react-ts

Vite React TypeScript with linters, typing and styling predefined settings

Primary LanguageTypeScriptMIT LicenseMIT

Vite React TypeScript

Vite starter template with opinionated predefined settings.

Features

Getting started

Use this repository as a GitHub template or use degit to scaffold your project locally:

npx degit volcomix/vite-react-ts my-project
cd my-project

pnpm install
pnpm dev

VSCode integration

You need to use the workspace version of TypeScript in order to get CSS modules static typing working. See the TypeScript plugin repository for advanced usage.

This starter template works well with the following extensions:

Fix all, organize imports and format on save work seamlessly when configured in user or workspace settings:

{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.codeActionsOnSave": {
    "source.fixAll": true,
    "source.organizeImports": true
  }
}