feat(frontend): Add vue-tsc, fix some types errors
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
import { ApplicationFormApi } from '#build/.api-client'
|
||||
import { ApplicationFormApi } from '../.api-client'
|
||||
|
||||
export const applicationFormApiClient = new ApplicationFormApi()
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
export default defineNuxtConfig({
|
||||
modules: ['@nuxt/ui-pro', '@nuxt/eslint'],
|
||||
css: ['~/assets/css/main.css'],
|
||||
typescript: {
|
||||
typeCheck: true
|
||||
},
|
||||
devtools: { enabled: true },
|
||||
compatibilityDate: '2024-11-01'
|
||||
})
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
"preview": "nuxt preview",
|
||||
"postinstall": "nuxt prepare",
|
||||
"format": "prettier . --write",
|
||||
"type-check": "nuxi typecheck",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"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",
|
||||
"eslint": "^9.20.1",
|
||||
"prettier": "3.5.1",
|
||||
"typescript": "^5.7.3"
|
||||
"typescript": "^5.7.3",
|
||||
"vue-tsc": "^2.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
4634
legalconsenthub/pnpm-lock.yaml
generated
4634
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
|
||||
"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