Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 812f1d4

Browse files
[skip ci] Run README through prettier
1 parent 3d9665c commit 812f1d4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import createPersistedState from "vuex-persistedstate";
3939

4040
const store = new Vuex.Store({
4141
// ...
42-
plugins: [createPersistedState()]
42+
plugins: [createPersistedState()],
4343
});
4444
```
4545

@@ -121,14 +121,14 @@ const store = new Store({
121121
plugins: [
122122
createPersistedState({
123123
storage: {
124-
getItem: key => Cookies.get(key),
124+
getItem: (key) => Cookies.get(key),
125125
// Please see https://github.com/js-cookie/js-cookie#json, on how to handle JSON.
126126
setItem: (key, value) =>
127127
Cookies.set(key, value, { expires: 3, secure: true }),
128-
removeItem: key => Cookies.remove(key)
129-
}
130-
})
131-
]
128+
removeItem: (key) => Cookies.remove(key),
129+
},
130+
}),
131+
],
132132
});
133133
```
134134

@@ -159,12 +159,12 @@ const store = new Store({
159159
plugins: [
160160
createPersistedState({
161161
storage: {
162-
getItem: key => ls.get(key),
162+
getItem: (key) => ls.get(key),
163163
setItem: (key, value) => ls.set(key, value),
164-
removeItem: key => ls.remove(key)
165-
}
166-
})
167-
]
164+
removeItem: (key) => ls.remove(key),
165+
},
166+
}),
167+
],
168168
});
169169
```
170170

0 commit comments

Comments
 (0)