From a9874dcdeb87fda6e176ac25a39ed2d9b32ec52a Mon Sep 17 00:00:00 2001 From: Adam DeHaven <2229946+adamdehaven@users.noreply.github.com> Date: Tue, 22 Aug 2023 08:37:32 -0400 Subject: [PATCH] fix: vue tsconfig (#1262) * fix: extend vue tsconfig * fix: type exports * fix: lockfile --- .eslintrc.cjs | 6 +- package.json | 7 +- sandbox/shared/SharedLayout.vue | 3 +- sandbox/shared/router.ts | 3 +- src/components/AcceptInvitationForm.vue | 5 +- src/components/ChangePasswordForm.vue | 3 +- src/components/ForgotPasswordForm.vue | 5 +- src/components/LoginForm.vue | 5 +- src/components/RegisterForm.vue | 5 +- src/components/ResetPasswordForm.vue | 5 +- src/composables/useIdentityProvider.ts | 3 +- src/composables/useInjectStyles.ts | 3 +- src/index.ts | 4 +- src/utils/index.ts | 2 +- tsconfig.json | 6 +- yarn.lock | 190 ++++++++++++++---------- 16 files changed, 153 insertions(+), 102 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 3c7e2972e..054e6fb32 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -16,7 +16,7 @@ module.exports = { indent: 'off', camelcase: 'off', 'space-before-function-paren': 'off', - quotes: ['error', 'single', { avoidEscape: true }], + quotes: ['error', 'single', {avoidEscape: true}], 'no-multi-spaces': 'error', 'no-trailing-spaces': 'error', 'comma-dangle': ['error', 'always-multiline'], @@ -41,6 +41,10 @@ module.exports = { 'vue/attributes-order': ['error', { alphabetical: true, }], + '@typescript-eslint/consistent-type-imports': ['error', { + prefer: 'type-imports', + fixStyle: 'separate-type-imports', + }], }, overrides: [ { diff --git a/package.json b/package.json index 5c0b675a8..d7e9e3c2f 100644 --- a/package.json +++ b/package.json @@ -55,11 +55,12 @@ "@semantic-release/changelog": "^6.0.2", "@semantic-release/git": "^10.0.1", "@types/node": "^16.18.41", - "@typescript-eslint/eslint-plugin": "^4.18.0", - "@typescript-eslint/parser": "^4.18.0", + "@typescript-eslint/eslint-plugin": "^6.1.0", + "@typescript-eslint/parser": "^6.1.0", "@vitejs/plugin-vue": "^4.3.2", "@vue/eslint-config-standard": "^6.1.0", "@vue/eslint-config-typescript": "^10.0.0", + "@vue/tsconfig": "^0.4.0", "commitizen": "^4.3.0", "cross-env": "^7.0.3", "cypress": "^12.17.4", @@ -82,7 +83,7 @@ "stylelint-config-recommended-scss": "^8.0.0", "stylelint-config-recommended-vue": "^1.5.0", "stylelint-order": "^6.0.3", - "typescript": "~4.9.5", + "typescript": "^5.1.6", "vite": "^4.4.9", "vue-router": "^4.2.4", "vue-tsc": "^1.8.8" diff --git a/sandbox/shared/SharedLayout.vue b/sandbox/shared/SharedLayout.vue index 92e8b3a05..ebad8d3b2 100644 --- a/sandbox/shared/SharedLayout.vue +++ b/sandbox/shared/SharedLayout.vue @@ -16,7 +16,8 @@