feat(frontend): Add vue-tsc, fix some types errors
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -58,4 +58,4 @@ bin/
|
|||||||
.kotlin
|
.kotlin
|
||||||
|
|
||||||
### OpenAPI ###
|
### OpenAPI ###
|
||||||
.api-client
|
legalconsenthub/.api-client
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
import { ApplicationFormApi } from '#build/.api-client'
|
import { ApplicationFormApi } from '../.api-client'
|
||||||
|
|
||||||
export const applicationFormApiClient = new ApplicationFormApi()
|
export const applicationFormApiClient = new ApplicationFormApi()
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
modules: ['@nuxt/ui-pro', '@nuxt/eslint'],
|
modules: ['@nuxt/ui-pro', '@nuxt/eslint'],
|
||||||
css: ['~/assets/css/main.css'],
|
css: ['~/assets/css/main.css'],
|
||||||
|
typescript: {
|
||||||
|
typeCheck: true
|
||||||
|
},
|
||||||
devtools: { enabled: true },
|
devtools: { enabled: true },
|
||||||
compatibilityDate: '2024-11-01'
|
compatibilityDate: '2024-11-01'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"preview": "nuxt preview",
|
"preview": "nuxt preview",
|
||||||
"postinstall": "nuxt prepare",
|
"postinstall": "nuxt prepare",
|
||||||
"format": "prettier . --write",
|
"format": "prettier . --write",
|
||||||
|
"type-check": "nuxi typecheck",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:fix": "eslint . --fix",
|
"lint:fix": "eslint . --fix",
|
||||||
"api:generate": "openapi-generator-cli generate -i ../legalconsenthub-backend/api/legalconsenthub.yml -g typescript-fetch -o .api-client",
|
"api:generate": "openapi-generator-cli generate -i ../legalconsenthub-backend/api/legalconsenthub.yml -g typescript-fetch -o .api-client",
|
||||||
@@ -28,6 +29,7 @@
|
|||||||
"@types/better-sqlite3": "^7.6.12",
|
"@types/better-sqlite3": "^7.6.12",
|
||||||
"eslint": "^9.20.1",
|
"eslint": "^9.20.1",
|
||||||
"prettier": "3.5.1",
|
"prettier": "3.5.1",
|
||||||
"typescript": "^5.7.3"
|
"typescript": "^5.7.3",
|
||||||
|
"vue-tsc": "^2.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
3362
legalconsenthub/pnpm-lock.yaml
generated
3362
legalconsenthub/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
// https://nuxt.com/docs/guide/concepts/typescript
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
"extends": "./.nuxt/tsconfig.json"
|
"extends": "./.nuxt/tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
// Prevents the following error with openapi generated code (came with nuxt 3.12):
|
||||||
|
// ERROR(vue-tsc) This parameter property must have an 'override' modifier because it overrides a member in base class 'Error'.
|
||||||
|
// FILE /Users/denislugowski/Projekte/legalconsenthub/legalconsenthub/.api-client/runtime.ts:276:5
|
||||||
|
"noImplicitOverride": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user