# @tsconfig/vite-react

> A base TSConfig for working with Vite React.

Latest version **8.1.1** (published 2026-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tsconfig/vite-react
pnpm add @tsconfig/vite-react
yarn add @tsconfig/vite-react
bun add @tsconfig/vite-react
```

## Health

**Score 60/100 (C)** — status: active.

Positive: no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 8.1.1 |
| Published | 2026-07-11 |
| First published | 2021-10-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 7880 |
| Maintainers | orta, typescript-deploys |
| Keywords | tsconfig, vite-react |

## Links

- npm: https://www.npmjs.com/package/@tsconfig/vite-react
- Repository: https://github.com/tsconfig/bases
- Homepage: https://github.com/tsconfig/bases#readme
- Issues: https://github.com/tsconfig/bases/issues
- npm.io page: https://npm.io/package/@tsconfig/vite-react

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 8.1.1 (latest) — 2026-07-11
- 8.0.6 — 2026-05-15
- 7.0.2 — 2025-11-13
- 7.0.1 — 2025-09-08
- 7.0.0 — 2025-07-10
- 6.3.6 — 2025-06-17
- 6.3.5 — 2025-05-25
- 3.4.0 — 2024-11-27
- 3.0.2 — 2024-03-27
- 3.0.1 — 2024-03-06
- 3.0.0 — 2023-12-12
- 2.0.1 — 2023-09-16
- 2.0.0 — 2023-05-10
- 1.0.1 — 2022-08-09
- 1.0.0 — 2021-10-25

## README

### A base TSConfig for working with Vite React.

Add the package to your `"devDependencies"`:

```sh
npm install --save-dev @tsconfig/vite-react
yarn add --dev @tsconfig/vite-react
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/vite-react/tsconfig.json"
```

---

The `tsconfig.json`: 

```jsonc
{
  "$schema": "https://www.schemastore.org/tsconfig",
  "_version": "8.1.1",

  "compilerOptions": {
    "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
    "target": "es2023",
    "lib": ["ES2023", "DOM"],
    "module": "esnext",
    "types": ["vite/client"],
    "allowArbitraryExtensions": true,
    "skipLibCheck": true,

    /* Bundler mode */
    "moduleResolution": "bundler",
    "allowImportingTsExtensions": true,
    "verbatimModuleSyntax": true,
    "moduleDetection": "force",
    "noEmit": true,
    "jsx": "react-jsx",

    /* Linting */
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "erasableSyntaxOnly": true,
    "noFallthroughCasesInSwitch": true
  }
}

```

You can find the [code here](https://github.com/tsconfig/bases/blob/master/bases/vite-react.json).

---
_Source: https://npm.io/package/@tsconfig/vite-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
