diff --git a/.eslintrc b/.eslintrc.json similarity index 100% rename from .eslintrc rename to .eslintrc.json diff --git a/examples/nuxt/components/HelloWorld.vue b/examples/nuxt/components/HelloWorld.vue index e873c6d..d6a19a1 100644 --- a/examples/nuxt/components/HelloWorld.vue +++ b/examples/nuxt/components/HelloWorld.vue @@ -1,19 +1,17 @@ - - - {{ msg }}, {{ name }} - - Inc - - {{ count }} x 2 = {{ doubled }} - - - + - - + + + {{ msg }}, {{ name }} + + Inc + + {{ count }} x 2 = {{ doubled }} + + + diff --git a/examples/nuxt/pages/index.vue b/examples/nuxt/pages/index.vue index 8648c5c..6e14f73 100644 --- a/examples/nuxt/pages/index.vue +++ b/examples/nuxt/pages/index.vue @@ -1,13 +1,14 @@ - - - - - + + + + + diff --git a/examples/nuxt/shims-vue.d.ts b/examples/nuxt/shims-vue.d.ts new file mode 100644 index 0000000..06ef633 --- /dev/null +++ b/examples/nuxt/shims-vue.d.ts @@ -0,0 +1 @@ +/// diff --git a/examples/nuxt/tsconfig.json b/examples/nuxt/tsconfig.json index ef822c0..35370a6 100644 --- a/examples/nuxt/tsconfig.json +++ b/examples/nuxt/tsconfig.json @@ -9,27 +9,20 @@ "DOM" ], "esModuleInterop": true, - "skipLibCheck": true, + "skipLibCheck": false, "allowJs": true, "sourceMap": true, "strict": true, "noEmit": true, - "baseUrl": ".", - "paths": { - "~/*": [ - "./*" - ], - "@/*": [ - "./*" - ] - }, "types": [ "@types/node", - "@nuxt/types", - "unplugin-vue2-script-setup/types" + "@nuxt/types" ] }, "exclude": [ "node_modules" - ] + ], + "vueCompilerOptions": { + "experimentalCompatMode": 2 + } } diff --git a/examples/vue-cli/package.json b/examples/vue-cli/package.json index fd42a0f..92e64fc 100644 --- a/examples/vue-cli/package.json +++ b/examples/vue-cli/package.json @@ -7,8 +7,9 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "@vue/composition-api": "^1.4.3", "core-js": "^3.20.1", - "vue": "^2.6.11" + "vue": "^2.6.14" }, "devDependencies": { "@vue/cli-plugin-babel": "^4.5.15", @@ -18,5 +19,8 @@ "unplugin-vue2-script-setup": "workspace:*", "vue-template-compiler": "^2.6.14", "vue-tsc": "^0.30.1" + }, + "vueCompilerOptions": { + "experimentalCompatMode": 2 } } diff --git a/examples/vue-cli/src/App.vue b/examples/vue-cli/src/App.vue index 9db9937..aa4ac08 100644 --- a/examples/vue-cli/src/App.vue +++ b/examples/vue-cli/src/App.vue @@ -1,13 +1,11 @@ + - - -