Skip to content

Commit

Permalink
Reformatting with prettier linting. Single quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Soleone committed Aug 9, 2020
1 parent 2b892f6 commit dcf63ed
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 20 deletions.
5 changes: 4 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{ "semi": false }
{
"semi": false,
"singleQuote": true
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Tales",
"name": "tales",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down Expand Up @@ -40,7 +40,7 @@
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended",
"plugin:prettier/recommended",
"@vue/prettier"
],
"parserOptions": {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
</template>

<script>
import { SET_NAME } from "@/store/constants.js"
import { SET_NAME } from '@/store/constants.js'
export default {
name: "Welcome",
name: 'Welcome',
props: {
title: String
},
Expand Down Expand Up @@ -43,7 +43,7 @@ export default {
this.$refs.name.focus()
},
start() {
this.$router.push({ name: "scene", params: { id: "start" } })
this.$router.push({ name: 'scene', params: { id: 'start' } })
}
}
}
Expand Down
23 changes: 9 additions & 14 deletions src/views/Scene.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,26 @@
:title="action.id"
@click.prevent="HANDLE_ACTION(action.id)"
:class="{ done: action.done }"
>{{ action.description }}</a
>
{{ action.description }}
</a>
</li>
<li>
<Player />
</li>
</ul>
</div>

<div class="result" v-show="result">
{{ result }}
</div>
<div class="result" v-show="result">{{ result }}</div>
</div>
</template>

<script>
import { mapState, mapGetters, mapActions } from "vuex"
import * as Constants from "@/store/constants"
import Player from "@/components/Player.vue"
import { mapState, mapGetters, mapActions } from 'vuex'
import * as Constants from '@/store/constants'
import Player from '@/components/Player.vue'
export default {
name: "Scene",
name: 'Scene',
components: {
Player
},
Expand All @@ -51,13 +48,13 @@ export default {
const startingMoment = this.$store.getters.scene.moments[0]
this.$store.dispatch(Constants.SET_MOMENT, startingMoment.id)
if (this.id === "start") {
if (this.id === 'start') {
this.$store.dispatch(Constants.NEW_GAME)
}
},
computed: {
...mapState(["sceneName", "momentName", "result", "actions"]),
...mapGetters(["scene", "moment", "options"])
...mapState(['sceneName', 'momentName', 'result', 'actions']),
...mapGetters(['scene', 'moment', 'options'])
},
methods: {
...mapActions([Constants.HANDLE_ACTION])
Expand Down Expand Up @@ -93,8 +90,6 @@ h3 {
text-decoration: line-through;
}
ul {
}
li {
text-align: left;
}
Expand Down

0 comments on commit dcf63ed

Please sign in to comment.