Skip to content

Commit

Permalink
chore: Cleanup Typescript and package configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jan 22, 2024
1 parent d609d0e commit 06c0cff
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@types/gettext-parser": "^4.0.2",
"@types/node": "^20.6.3",
"@types/node-gettext": "^3.0.4",
"@vue/tsconfig": "^0.5.1",
"gettext-extractor": "^3.8.0",
"gettext-parser": "^7.0.1",
"sass": "^1.68.0",
Expand Down
6 changes: 0 additions & 6 deletions src/vite-env.d.ts

This file was deleted.

9 changes: 9 additions & 0 deletions src/vue-shims.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare module '*.vue' {
import Vue from 'vue'
export default Vue
}

declare module '@nextcloud/vue/dist/Components/*.js' {
import Vue from 'vue'
export default Vue
}
21 changes: 6 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
{
"extends": "@vue/tsconfig",
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "bundler",
"strict": true,
"jsx": "preserve",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"skipLibCheck": true,
"noImplicitAny": false, // Allow implicit any to fix type check errors of some dependencies on build
"noEmit": true,
"types": [
"vite/client",
],
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"include": [
"src/**/*.ts",
"src/**/*.vue"
],
"references": [{ "path": "./tsconfig.node.json" }],
}

0 comments on commit 06c0cff

Please sign in to comment.