Skip to content

Commit 33a3b1d

Browse files
committed
chore: Add typescript config
Signed-off-by: Jonas <jonas@freesources.org>
1 parent c0f39bc commit 33a3b1d

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
"@nextcloud/webpack-vue-config": "^6.0.1",
128128
"@vitejs/plugin-vue2": "^2.3.1",
129129
"@vue/test-utils": "^1.3.0 <2",
130+
"@vue/tsconfig": "^0.5.1",
130131
"@vue/vue2-jest": "^29.2.6",
131132
"@vueuse/core": "^10.9.0",
132133
"cypress": "^13.6.2",

tsconfig.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": "@vue/tsconfig",
3+
"compilerOptions": {
4+
"allowSyntheticDefaultImports": true,
5+
"declaration": true,
6+
"esModuleInterop": true,
7+
"lib": ["DOM", "ESNext"],
8+
"noEmit": true,
9+
"outDir": "./js",
10+
"plugins": [
11+
{ "name": "typescript-plugin-css-modules" }
12+
],
13+
"sourceMap": true
14+
},
15+
"exclude": [
16+
"js",
17+
"lib",
18+
"node_modules",
19+
"vendor"
20+
],
21+
"vueCompilerOptions": {
22+
"target": 2.7
23+
}
24+
}

0 commit comments

Comments
 (0)