]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: format
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 8 Jul 2022 15:22:58 +0000 (17:22 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Wed, 13 Jul 2022 10:32:58 +0000 (12:32 +0200)
packages/nuxt/playground/app.vue
packages/nuxt/playground/composables/counter.ts
packages/nuxt/playground/nuxt.config.ts

index 6437c6db97eec81fc472983073e8f3b8af51a7a3..b36025b412b1d7b03a6fe97e1751233b0fa271dc 100644 (file)
@@ -9,8 +9,6 @@ if (process.server) {
 <template>
   <div>
     <p>Count: {{ counter.$state.count }}</p>
-    <button @click="counter.increment()">
-      +
-    </button>
+    <button @click="counter.increment()">+</button>
   </div>
 </template>
index ca32b6a5821cfd08c65130167bf69a7b7cd4e00a..6d164f024d4e2608b62c4ae72993c0351a827eaf 100644 (file)
@@ -1,13 +1,13 @@
 export const useCounter = definePiniaStore('counter', {
   state: () => ({
-    count: 100
+    count: 100,
   }),
   actions: {
-    increment () {
+    increment() {
       this.count++
-    }
+    },
   },
   getters: {
-    getCount: state => state.count
-  }
+    getCount: (state) => state.count,
+  },
 })
index db25ae40a80493fecfe4344a29ceeee945102dde..3bc8ae01ed809985ff9aa0545772014cc2d4d639 100644 (file)
@@ -2,7 +2,5 @@ import { defineNuxtConfig } from 'nuxt'
 import piniaModule from '../src/module'
 
 export default defineNuxtConfig({
-  modules: [
-    piniaModule
-  ]
+  modules: [piniaModule],
 })