Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ We target the latest stable version of TypeScript, note that because we want to
| [Svelte](#svelte-tsconfigjson) | [`@tsconfig/svelte`](https://npmjs.com/package/@tsconfig/svelte) |
| [Taro](#taro-tsconfigjson) | [`@tsconfig/taro`](https://npmjs.com/package/@tsconfig/taro) |
| [Vite React](#vite-react-tsconfigjson) | [`@tsconfig/vite-react`](https://npmjs.com/package/@tsconfig/vite-react) |
| [Vite Vue](#vite-vue-tsconfigjson) | [`@tsconfig/vite-vue`](https://npmjs.com/package/@tsconfig/vite-vue) |

### Available TSConfigs

Expand Down Expand Up @@ -398,6 +399,20 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/vite-react/tsconfig.json"
```
### Vite Vue <kbd><a href="./bases/vite-vue.json">tsconfig.json</a></kbd>

Install:

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

Add to your `tsconfig.json`:

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

<!-- /AUTO -->

Expand Down
27 changes: 27 additions & 0 deletions bases/vite-vue.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Vite Vue",
"_version": "1.0.0",

"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",

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