Happifies eslint and adds an editorconfig

This commit is contained in:
Michael Weimann
2018-12-03 22:40:39 +01:00
parent 18b03550cc
commit 411cab1d45
7 changed files with 159 additions and 146 deletions

View File

@@ -20,11 +20,10 @@
*
*/
// initial state
const state = {
hidden: true,
component: 'Sidebar'
hidden: true,
component: 'Sidebar'
}
// getters
@@ -32,22 +31,22 @@ const getters = {}
// actions
const actions = {
toggle ({ commit }) {
commit('toggle')
}
toggle({ commit }) {
commit('toggle')
}
}
// mutations
const mutations = {
toggle (state) {
state.hidden = !state.hidden
}
toggle(state) {
state.hidden = !state.hidden
}
}
export default {
namespaced: true,
state,
getters,
actions,
mutations
namespaced: true,
state,
getters,
actions,
mutations
}