fix: opt-out volar strictness

This commit is contained in:
Anthony Fu 2022-06-03 22:15:26 +08:00
parent 63edae16c0
commit e014365e9e
3 changed files with 541 additions and 229 deletions

View File

@ -13,18 +13,18 @@
"typecheck": "vue-tsc --noEmit" "typecheck": "vue-tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"@vueuse/core": "^8.5.0", "@vueuse/core": "^8.6.0",
"@vueuse/head": "^0.7.6", "@vueuse/head": "^0.7.6",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"pinia": "^2.0.14", "pinia": "^2.0.14",
"prism-theme-vars": "^0.2.3", "prism-theme-vars": "^0.2.3",
"vue": "^3.2.36", "vue": "^3.2.36",
"vue-demi": "^0.12.5", "vue-demi": "^0.13.1",
"vue-i18n": "^9.1.10", "vue-i18n": "^9.1.10",
"vue-router": "^4.0.15" "vue-router": "^4.0.15"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^0.24.2", "@antfu/eslint-config": "^0.25.1",
"@iconify-json/carbon": "^1.1.5", "@iconify-json/carbon": "^1.1.5",
"@intlify/vite-plugin-vue-i18n": "^4.0.0", "@intlify/vite-plugin-vue-i18n": "^4.0.0",
"@types/markdown-it-link-attributes": "^3.0.1", "@types/markdown-it-link-attributes": "^3.0.1",
@ -33,26 +33,26 @@
"@vue/test-utils": "^2.0.0", "@vue/test-utils": "^2.0.0",
"critters": "^0.0.16", "critters": "^0.0.16",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"cypress": "^9.7.0", "cypress": "^10.0.2",
"eslint": "^8.16.0", "eslint": "^8.16.0",
"eslint-plugin-cypress": "^2.12.1", "eslint-plugin-cypress": "^2.12.1",
"https-localhost": "^4.7.1", "https-localhost": "^4.7.1",
"markdown-it-link-attributes": "^4.0.0", "markdown-it-link-attributes": "^4.0.0",
"markdown-it-prism": "^2.2.4", "markdown-it-prism": "^2.2.4",
"pnpm": "^7.1.6", "pnpm": "^7.1.7",
"typescript": "^4.7.2", "typescript": "^4.7.2",
"unocss": "^0.34.1", "unocss": "^0.37.2",
"unplugin-auto-import": "^0.8.5", "unplugin-auto-import": "^0.8.7",
"unplugin-vue-components": "^0.19.6", "unplugin-vue-components": "^0.19.6",
"vite": "^2.9.9", "vite": "^2.9.9",
"vite-plugin-inspect": "^0.5.0", "vite-plugin-inspect": "^0.5.0",
"vite-plugin-md": "^0.13.1", "vite-plugin-md": "^0.14.0",
"vite-plugin-pages": "^0.23.0", "vite-plugin-pages": "^0.23.0",
"vite-plugin-pwa": "^0.12.0", "vite-plugin-pwa": "^0.12.0",
"vite-plugin-vue-layouts": "^0.6.0", "vite-plugin-vue-layouts": "^0.6.0",
"vite-ssg": "^0.20.0", "vite-ssg": "^0.20.0",
"vite-ssg-sitemap": "^0.2.7", "vite-ssg-sitemap": "^0.2.7",
"vitest": "^0.12.9", "vitest": "^0.13.1",
"vue-tsc": "^0.34.16" "vue-tsc": "^0.36.0"
} }
} }

File diff suppressed because it is too large Load Diff

13
src/html.d.ts vendored Normal file
View File

@ -0,0 +1,13 @@
// for UnoCSS attributify mode compact in Volar
// refer: https://github.com/johnsoncodehk/volar/issues/1077#issuecomment-1145361472
declare module '@vue/runtime-dom' {
interface HTMLAttributes {
[key: string]: any
}
}
declare module '@vue/runtime-core' {
interface AllowedComponentProps {
[key: string]: any
}
}
export {}