Skip to content

Commit bb47864

Browse files
committed
✨ - Lint fix with updated prettier config
1 parent a5f37e9 commit bb47864

File tree

6 files changed

+37
-47
lines changed

6 files changed

+37
-47
lines changed

layouts/default.vue

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@
5050
<v-list>
5151
<v-list-item @click.native="right = !right">
5252
<v-list-item-action>
53-
<v-icon light>
54-
mdi-repeat
55-
</v-icon>
53+
<v-icon light> mdi-repeat </v-icon>
5654
</v-list-item-action>
5755
<v-list-item-title>Switch drawer (click me)</v-list-item-title>
5856
</v-list-item>
@@ -65,20 +63,20 @@
6563
</template>
6664

6765
<script lang="ts">
68-
import { Vue, Component } from 'nuxt-property-decorator'
69-
import { SidebarMenuItem } from '~/@types'
66+
import { Vue, Component } from 'nuxt-property-decorator';
67+
import { SidebarMenuItem } from '~/@types';
7068
7169
@Component
7270
export default class DefaultLayout extends Vue {
73-
readonly name: string = 'default'
71+
readonly name: string = 'default';
7472
75-
clipped: boolean = false
76-
drawer: boolean = false
77-
fixed: boolean = false
78-
miniVariant: boolean = false
79-
right: boolean = false
80-
rightDrawer: boolean = false
81-
title: string = 'Nuxt + Typescript'
73+
clipped: boolean = false;
74+
drawer: boolean = false;
75+
fixed: boolean = false;
76+
miniVariant: boolean = false;
77+
right: boolean = false;
78+
rightDrawer: boolean = false;
79+
title: string = 'Nuxt + Typescript';
8280
items: SidebarMenuItem[] = [
8381
{
8482
icon: 'mdi-apps',
@@ -95,6 +93,6 @@ export default class DefaultLayout extends Vue {
9593
title: 'News',
9694
to: '/news'
9795
}
98-
]
96+
];
9997
}
10098
</script>

layouts/error.vue

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,32 @@
66
<h1 v-else>
77
{{ otherError }}
88
</h1>
9-
<NuxtLink to="/">
10-
Home page
11-
</NuxtLink>
9+
<NuxtLink to="/"> Home page </NuxtLink>
1210
</v-app>
1311
</template>
1412

1513
<script lang="ts">
16-
import { Vue, Component, Prop } from 'nuxt-property-decorator'
14+
import { Vue, Component, Prop } from 'nuxt-property-decorator';
1715
1816
@Component
1917
export default class ErrorLayout extends Vue {
20-
readonly name: string = 'default'
18+
readonly name: string = 'default';
2119
layout() {
22-
return 'empty'
20+
return 'empty';
2321
}
2422
2523
head(this: any) {
2624
const title =
27-
this.error.statusCode === 404 ? this.pageNotFound : this.otherError
25+
this.error.statusCode === 404 ? this.pageNotFound : this.otherError;
2826
return {
2927
title
30-
}
28+
};
3129
}
3230
33-
pageNotFound: string = '404 Not Found'
34-
otherError: string = 'An error occurred'
31+
pageNotFound: string = '404 Not Found';
32+
otherError: string = 'An error occurred';
3533
36-
@Prop() error: any
34+
@Prop() error: any;
3735
}
3836
</script>
3937

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
]
8989
},
9090
"prettier": {
91-
"semi": false,
91+
"semi": true,
9292
"arrowParens": "always",
9393
"singleQuote": true,
9494
"tabWidth": 2,

pages/index.vue

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,25 @@
4343
<em><small>&mdash; John Leider</small></em>
4444
</div>
4545
<hr class="my-3" />
46-
<a href="https://nuxtjs.org/" target="_blank">
47-
Nuxt Documentation
48-
</a>
46+
<a href="https://nuxtjs.org/" target="_blank"> Nuxt Documentation </a>
4947
<br />
5048
<a href="https://github.com/nuxt/nuxt.js" target="_blank">
5149
Nuxt GitHub
5250
</a>
5351
</v-card-text>
5452
<v-card-actions>
5553
<v-spacer />
56-
<v-btn color="primary" nuxt to="/inspire">
57-
Continue
58-
</v-btn>
54+
<v-btn color="primary" nuxt to="/inspire"> Continue </v-btn>
5955
</v-card-actions>
6056
</v-card>
6157
</v-flex>
6258
</v-layout>
6359
</template>
6460

6561
<script lang="ts">
66-
import { Vue, Component } from 'nuxt-property-decorator'
67-
import Logo from '~/components/Logo.vue'
68-
import VuetifyLogo from '~/components/VuetifyLogo.vue'
62+
import { Vue, Component } from 'nuxt-property-decorator';
63+
import Logo from '~/components/Logo.vue';
64+
import VuetifyLogo from '~/components/VuetifyLogo.vue';
6965
7066
@Component({
7167
components: {

pages/inspire.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</template>
1616

1717
<script lang="ts">
18-
import { Vue } from 'nuxt-property-decorator'
18+
import { Vue } from 'nuxt-property-decorator';
1919
2020
export default class Inspire extends Vue {}
2121
</script>

pages/news.vue

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<template>
22
<v-layout column justify-center align-center>
3-
<v-flex v-if="isLoading" xs12 sm8 md6>
4-
Loading ...
5-
</v-flex>
3+
<v-flex v-if="isLoading" xs12 sm8 md6> Loading ... </v-flex>
64
<v-flex v-else xs12 sm8 md6>
75
<v-card v-for="(article, index) in articles" :key="index" class="my-5">
86
<v-card-title class="headline">
@@ -31,10 +29,10 @@
3129
</template>
3230

3331
<script lang="ts">
34-
import { Vue, Component } from 'nuxt-property-decorator'
35-
import Logo from '~/components/Logo.vue'
36-
import VuetifyLogo from '~/components/VuetifyLogo.vue'
37-
import { Article } from '~/@types'
32+
import { Vue, Component } from 'nuxt-property-decorator';
33+
import Logo from '~/components/Logo.vue';
34+
import VuetifyLogo from '~/components/VuetifyLogo.vue';
35+
import { Article } from '~/@types';
3836
3937
@Component({
4038
components: {
@@ -43,15 +41,15 @@ import { Article } from '~/@types'
4341
}
4442
})
4543
export default class News extends Vue {
46-
isLoading: boolean = true
44+
isLoading: boolean = true;
4745
4846
get articles(): Article[] {
49-
return this.$store.state.news.articles
47+
return this.$store.state.news.articles;
5048
}
5149
5250
async mounted() {
53-
await this.$store.dispatch('news/getNews')
54-
this.isLoading = false
51+
await this.$store.dispatch('news/getNews');
52+
this.isLoading = false;
5553
}
5654
}
5755
</script>

0 commit comments

Comments
 (0)