-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.vue.json
23 lines (23 loc) · 1.07 KB
/
tsconfig.vue.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
// shared tsconfig for vue projects, based on https://github.com/vuejs/tsconfig
"extends": "./tsconfig.json",
"compilerOptions": {
// Notes from vuejs/tsconfig:
// - Vue 3 supports ES2016+
// - For Vite, the actual compilation target is determined by the
// `build.target` option in the Vite config.
// So don't change the `target` field here. It has to be
// at least `ES2020` for dynamic `import()`s and `import.meta` to work correctly.
// - If you are not using Vite, feel free to override the `target` field.
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
// requried in vue projects
"jsx": "preserve",
// use the standard class definition,
// see: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#the-usedefineforclassfields-flag-and-the-declare-property-modifier
"useDefineForClassFields": true,
// for `<script setup>`,
// see <https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#preserve-value-imports>
"preserveValueImports": true,
}
}