Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Apr 8, 2024
1 parent 15dda8b commit dcc6a29
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 32 deletions.
19 changes: 11 additions & 8 deletions examples/basic/pages/client-only/+Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
</template>

<script lang="ts" setup>
import { ref, watchEffect } from 'vue';
import { ref, watchEffect } from 'vue'
import ClientOnly from 'vike-vue/ClientOnly'
const delay = 3000;
const delay = 3000
const timeLeft = ref(delay);
const timeLeft = ref(delay)
const interval = setInterval(() => {
timeLeft.value -= 100;
timeLeft.value -= 100
}, 100)
watchEffect(() => {
Expand All @@ -34,10 +34,13 @@ watchEffect(() => {
}
})
const load = () => new Promise((resolve) => setTimeout(async () => {
const Counter = await import('../../components/Counter.vue')
resolve(Counter)
}, delay))
const load = () =>
new Promise((resolve) =>
setTimeout(async () => {
const Counter = await import('../../components/Counter.vue')
resolve(Counter)
}, delay)
)
</script>

<style scoped>
Expand Down
6 changes: 3 additions & 3 deletions examples/basic/vue-shim.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// See https://stackoverflow.com/questions/71477277/typescript-cannot-find-module-in-vue-project

declare module "*.vue" {
import Vue from "vue";
export default Vue;
declare module '*.vue' {
import Vue from 'vue'
export default Vue
}
6 changes: 3 additions & 3 deletions examples/ssr-spa/vue-shim.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// See https://stackoverflow.com/questions/71477277/typescript-cannot-find-module-in-vue-project

declare module "*.vue" {
import Vue from "vue";
export default Vue;
declare module '*.vue' {
import Vue from 'vue'
export default Vue
}
4 changes: 2 additions & 2 deletions examples/with-vike-pinia/components/Counter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</template>

<script lang="ts" setup>
import { useCounterStore } from '../stores/useCounterStore';
import { useCounterStore } from '../stores/useCounterStore'
const counterStore = useCounterStore();
const counterStore = useCounterStore()
</script>
2 changes: 1 addition & 1 deletion examples/with-vike-pinia/pages/index/+Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</template>

<script lang="ts" setup>
import { onServerPrefetch } from 'vue';
import { onServerPrefetch } from 'vue'
import Counter from '../../components/Counter.vue'
import { useCounterStore } from '../../stores/useCounterStore'
Expand Down
6 changes: 3 additions & 3 deletions examples/with-vike-pinia/stores/useCounterStore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineStore } from 'pinia';
import { ref } from 'vue';
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useCounterStore = defineStore("counter", () => {
export const useCounterStore = defineStore('counter', () => {
const count = ref(0)

const increment = () => count.value++
Expand Down
6 changes: 3 additions & 3 deletions examples/with-vike-pinia/vue-shim.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// See https://stackoverflow.com/questions/71477277/typescript-cannot-find-module-in-vue-project

declare module "*.vue" {
import Vue from "vue";
export default Vue;
declare module '*.vue' {
import Vue from 'vue'
export default Vue
}
6 changes: 3 additions & 3 deletions examples/with-vue-plugin/vue-shim.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// See https://stackoverflow.com/questions/71477277/typescript-cannot-find-module-in-vue-project

declare module "*.vue" {
import Vue from "vue";
export default Vue;
declare module '*.vue' {
import Vue from 'vue'
export default Vue
}
8 changes: 2 additions & 6 deletions packages/vike-pinia/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
"module": "ES2020",
"moduleResolution": "Node",
"target": "ES2019",
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"esModuleInterop": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"noUncheckedIndexedAccess": true,
"strict": true,
"outDir": "./dist/",
"declaration": true,
"declaration": true
}
}

0 comments on commit dcc6a29

Please sign in to comment.