diff --git a/README.md b/README.md index acb71b7..76446e3 100644 --- a/README.md +++ b/README.md @@ -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 @@ -398,6 +399,20 @@ Add to your `tsconfig.json`: ```json "extends": "@tsconfig/vite-react/tsconfig.json" ``` +### Vite Vue tsconfig.json + +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" +``` diff --git a/bases/vite-vue.json b/bases/vite-vue.json new file mode 100644 index 0000000..aa675c4 --- /dev/null +++ b/bases/vite-vue.json @@ -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 + } +}