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 @@