diff --git a/package-lock.json b/package-lock.json index e996b1d7..0cf99d2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index d45c8c1e..4f5144ca 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..5c8e0959 --- /dev/null +++ b/tsconfig.json @@ -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 + } +}