add tsconfig

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
Julien Veyssier
2024-09-29 19:03:05 +02:00
parent 719f25eeed
commit 96c5395f1b
3 changed files with 33 additions and 0 deletions

8
package-lock.json generated
View File

@@ -39,6 +39,7 @@
"@nextcloud/eslint-config": "^8.1.2",
"@nextcloud/stylelint-config": "^3.0.1",
"@nextcloud/vite-config": "^1.4.2",
"@vue/tsconfig": "^0.5.1",
"eslint-webpack-plugin": "^4.0.0",
"stylelint": "^16.5.0",
"stylelint-webpack-plugin": "^5.0.0",
@@ -5415,6 +5416,13 @@
"dev": true,
"license": "MIT"
},
"node_modules/@vue/tsconfig": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/@vue/tsconfig/-/tsconfig-0.5.1.tgz",
"integrity": "sha512-VcZK7MvpjuTPx2w6blwnwZAu5/LgBUtejFOi3pPGQFXQN5Ela03FUtd2Qtg4yWGGissVL0dr6Ro1LfOFh+PCuQ==",
"dev": true,
"license": "MIT"
},
"node_modules/@vueuse/components": {
"version": "11.1.0",
"resolved": "https://registry.npmjs.org/@vueuse/components/-/components-11.1.0.tgz",

View File

@@ -68,6 +68,7 @@
"@nextcloud/eslint-config": "^8.1.2",
"@nextcloud/stylelint-config": "^3.0.1",
"@nextcloud/vite-config": "^1.4.2",
"@vue/tsconfig": "^0.5.1",
"eslint-webpack-plugin": "^4.0.0",
"stylelint": "^16.5.0",
"stylelint-webpack-plugin": "^5.0.0",

24
tsconfig.json Normal file
View File

@@ -0,0 +1,24 @@
{
"extends": "@vue/tsconfig/tsconfig.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": true,
"esModuleInterop": true,
"lib": ["DOM", "ESNext"],
"noEmit": true,
"outDir": "./js",
"plugins": [
{ "name": "typescript-plugin-css-modules" }
],
"sourceMap": true
},
"exclude": [
"js",
"lib",
"node_modules",
"vendor"
],
"vueCompilerOptions": {
"target": 2.7
}
}