chore: add tsconfig

Signed-off-by: Crisciany Souza <crisciany.souza@librecode.coop>
This commit is contained in:
Crisciany Souza 2024-07-24 11:03:11 -04:00 committed by backportbot-libresign[bot]
parent 2de9732472
commit 0af8f6b07d
3 changed files with 23 additions and 0 deletions

7
package-lock.json generated
View file

@ -48,6 +48,7 @@
"@nextcloud/eslint-config": "^8.4.1",
"@nextcloud/stylelint-config": "^3.0.1",
"@nextcloud/webpack-vue-config": "^6.0.1",
"@vue/tsconfig": "^0.5.1",
"babel-loader-exclude-node-modules-except": "^1.2.1",
"esbuild-loader": "^4.2.2",
"file-loader": "^6.2.0",
@ -4082,6 +4083,12 @@
}
}
},
"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
},
"node_modules/@vueuse/components": {
"version": "10.11.0",
"resolved": "https://registry.npmjs.org/@vueuse/components/-/components-10.11.0.tgz",

View file

@ -66,6 +66,7 @@
"@nextcloud/eslint-config": "^8.4.1",
"@nextcloud/stylelint-config": "^3.0.1",
"@nextcloud/webpack-vue-config": "^6.0.1",
"@vue/tsconfig": "^0.5.1",
"babel-loader-exclude-node-modules-except": "^1.2.1",
"esbuild-loader": "^4.2.2",
"file-loader": "^6.2.0",

15
tsconfig.json Normal file
View file

@ -0,0 +1,15 @@
{
"extends": "@vue/tsconfig/tsconfig.json",
"include": ["src/**/*.ts", "src/env.d.ts"],
"exclude": ["node_modules", "vendor"],
"compilerOptions": {
"outDir": "./js",
"allowJs": true,
"checkJs": false,
"allowImportingTsExtensions": true,
"lib": ["ESNext"],
},
"vueCompilerOptions": {
"target": 2.7,
}
}