Skip to content

Commit 2834295

Browse files
committed
Solve new ESLint errors
- Name components under layouts, pages with 2+ words - Stop repeating same variables between data and asyncData
1 parent 01eb4e6 commit 2834295

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

layouts/default.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
<nuxt />
44
</div>
55
</template>
6+
7+
<script lang="ts">
8+
export default {
9+
name: 'LayoutDefault'
10+
}
11+
</script>

pages/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@
1414
</template>
1515

1616
<script lang="ts">
17+
export default {
18+
name: 'PageIndex'
19+
}
1720
</script>

pages/options-api.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ export default Vue.extend({
7272
data () {
7373
return {
7474
message: "I'm defined on data()",
75-
fetchedTodos: [] as ToDo[],
76-
asyncMessage: 'I will be overwritten by asyncData',
77-
userAgent: 'I will be overwritten by asyncData'
75+
fetchedTodos: [] as ToDo[]
7876
}
7977
},
8078

0 commit comments

Comments
 (0)