Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit 0c3ce75

Browse files
fix: lint templates for recommended eslint settings
1 parent d93e60b commit 0c3ce75

File tree

8 files changed

+70
-76
lines changed

8 files changed

+70
-76
lines changed

generator/templates/default/src/App.js.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,18 @@
3636

3737
<script>
3838
<%_ if (!options.router) { _%>
39-
import HelloWorld from './components/HelloWorld'
39+
import HelloWorld from './components/HelloWorld';
4040
<%_ } _%>
4141
4242
export default {
4343
name: 'App',
4444
<%_ if (!options.router) { _%>
4545
components: {
46-
HelloWorld
46+
HelloWorld,
4747
},
4848
<%_ } _%>
49-
data () {
50-
return {
51-
//
52-
}
53-
}
54-
}
49+
data: () => ({
50+
//
51+
}),
52+
};
5553
</script>

generator/templates/default/src/App.ts.vue

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,20 @@
3535
</template>
3636

3737
<script lang="ts">
38-
import Vue from 'vue'
38+
import Vue from 'vue';
3939
<%_ if (!options.router) { _%>
40-
import HelloWorld from './components/HelloWorld.vue'
40+
import HelloWorld from './components/HelloWorld.vue';
4141
<%_ } _%>
4242
4343
export default Vue.extend({
4444
name: 'App',
4545
<%_ if (!options.router) { _%>
4646
components: {
47-
HelloWorld
47+
HelloWorld,
4848
},
4949
<%_ } _%>
50-
data () {
51-
return {
52-
//
53-
}
54-
}
55-
})
50+
data: () => ({
51+
//
52+
}),
53+
});
5654
</script>

generator/templates/default/src/components/HelloWorld.js.vue

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,54 +90,53 @@ export default {
9090
ecosystem: [
9191
{
9292
text: 'vuetify-loader',
93-
href: 'https://github.com/vuetifyjs/vuetify-loader'
93+
href: 'https://github.com/vuetifyjs/vuetify-loader',
9494
},
9595
{
9696
text: 'github',
97-
href: 'https://github.com/vuetifyjs/vuetify'
97+
href: 'https://github.com/vuetifyjs/vuetify',
9898
},
9999
{
100100
text: 'awesome-vuetify',
101-
href: 'https://github.com/vuetifyjs/awesome-vuetify'
102-
}
101+
href: 'https://github.com/vuetifyjs/awesome-vuetify',
102+
},
103103
],
104104
importantLinks: [
105105
{
106106
text: 'Documentation',
107-
href: 'https://vuetifyjs.com'
107+
href: 'https://vuetifyjs.com',
108108
},
109109
{
110110
text: 'Chat',
111-
href: 'https://community.vuetifyjs.com'
111+
href: 'https://community.vuetifyjs.com',
112112
},
113113
{
114114
text: 'Made with Vuetify',
115-
href: 'https://madewithvuetifyjs.com'
115+
href: 'https://madewithvuetifyjs.com',
116116
},
117117
{
118118
text: 'Twitter',
119-
href: 'https://twitter.com/vuetifyjs'
119+
href: 'https://twitter.com/vuetifyjs',
120120
},
121121
{
122122
text: 'Articles',
123-
href: 'https://medium.com/vuetify'
124-
}
123+
href: 'https://medium.com/vuetify',
124+
},
125125
],
126126
whatsNext: [
127127
{
128128
text: 'Explore components',
129-
href: 'https://vuetifyjs.com/components/api-explorer'
129+
href: 'https://vuetifyjs.com/components/api-explorer',
130130
},
131131
{
132132
text: 'Select a layout',
133-
href: 'https://vuetifyjs.com/layout/pre-defined'
133+
href: 'https://vuetifyjs.com/layout/pre-defined',
134134
},
135135
{
136136
text: 'Frequently Asked Questions',
137-
href: 'https://vuetifyjs.com/getting-started/frequently-asked-questions'
138-
}
139-
140-
]
141-
})
142-
}
137+
href: 'https://vuetifyjs.com/getting-started/frequently-asked-questions',
138+
},
139+
],
140+
}),
141+
};
143142
</script>

generator/templates/default/src/components/HelloWorld.ts.vue

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -85,61 +85,60 @@
8585
</template>
8686

8787
<script lang="ts">
88-
import Vue from 'vue'
88+
import Vue from 'vue';
8989
9090
export default Vue.extend({
9191
data: () => ({
9292
ecosystem: [
9393
{
9494
text: 'vuetify-loader',
95-
href: 'https://github.com/vuetifyjs/vuetify-loader'
95+
href: 'https://github.com/vuetifyjs/vuetify-loader',
9696
},
9797
{
9898
text: 'github',
99-
href: 'https://github.com/vuetifyjs/vuetify'
99+
href: 'https://github.com/vuetifyjs/vuetify',
100100
},
101101
{
102102
text: 'awesome-vuetify',
103-
href: 'https://github.com/vuetifyjs/awesome-vuetify'
104-
}
103+
href: 'https://github.com/vuetifyjs/awesome-vuetify',
104+
},
105105
],
106106
importantLinks: [
107107
{
108108
text: 'Documentation',
109-
href: 'https://vuetifyjs.com'
109+
href: 'https://vuetifyjs.com',
110110
},
111111
{
112112
text: 'Chat',
113-
href: 'https://community.vuetifyjs.com'
113+
href: 'https://community.vuetifyjs.com',
114114
},
115115
{
116116
text: 'Made with Vuetify',
117-
href: 'https://madewithvuetifyjs.com'
117+
href: 'https://madewithvuetifyjs.com',
118118
},
119119
{
120120
text: 'Twitter',
121-
href: 'https://twitter.com/vuetifyjs'
121+
href: 'https://twitter.com/vuetifyjs',
122122
},
123123
{
124124
text: 'Articles',
125-
href: 'https://medium.com/vuetify'
126-
}
125+
href: 'https://medium.com/vuetify',
126+
},
127127
],
128128
whatsNext: [
129129
{
130130
text: 'Explore components',
131-
href: 'https://vuetifyjs.com/components/api-explorer'
131+
href: 'https://vuetifyjs.com/components/api-explorer',
132132
},
133133
{
134134
text: 'Select a layout',
135-
href: 'https://vuetifyjs.com/layout/pre-defined'
135+
href: 'https://vuetifyjs.com/layout/pre-defined',
136136
},
137137
{
138138
text: 'Frequently Asked Questions',
139-
href: 'https://vuetifyjs.com/getting-started/frequently-asked-questions'
140-
}
141-
142-
]
143-
})
144-
})
139+
href: 'https://vuetifyjs.com/getting-started/frequently-asked-questions',
140+
},
141+
],
142+
}),
143+
});
145144
</script>
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
import Vue from 'vue'
1+
import Vue from 'vue';
22
<%_ if (useAlaCarte) { _%>
3-
import Vuetify from 'vuetify/lib'
3+
import Vuetify from 'vuetify/lib';
44
<%_ } else { _%>
5-
import Vuetify from 'vuetify'
6-
import 'vuetify/dist/vuetify.min.css'
5+
import Vuetify from 'vuetify';
6+
import 'vuetify/dist/vuetify.min.css';
77
<%_ } _%>
88
<%_ if (locale !== 'en') { _%>
9-
import <%= locale.replace(/-/g, '') %> from 'vuetify/<%= typescript ? 'src' : 'es5' %>/locale/<%= locale %>'
9+
import <%= locale.replace(/-/g, '') %> from 'vuetify/<%= typescript ? 'src' : 'es5' %>/locale/<%= locale %>';
1010
<%_ } _%>
1111

12-
Vue.use(Vuetify)
12+
Vue.use(Vuetify);
1313

1414
export default new Vuetify({
1515
<%_ if (useTheme) { _%>
1616
theme: {
1717
<%_ if (useCustomProperties) { _%>
1818
options: {
19-
customProperties: true
19+
customProperties: true,
2020
},
2121
<%_ } _%>
2222
themes: {
@@ -28,17 +28,17 @@ export default new Vuetify({
2828
info: '#2196F3',
2929
success: '#4CAF50',
3030
warning: '#FFC107'
31-
}
32-
}
31+
},
32+
},
3333
},
3434
<%_ } _%>
3535
<%_ if (locale !== 'en') { _%>
3636
lang: {
3737
locales: { <%= locale.replace(/-/g, '') %> },
38-
current: '<%= locale %>'
38+
current: '<%= locale %>',
3939
},
4040
<%_ } _%>
4141
icons: {
4242
iconfont: '<%= iconFont %>',
43-
}
44-
})
43+
},
44+
});

generator/templates/default/src/views/Home.js.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
</template>
44

55
<script>
6-
import HelloWorld from '../components/HelloWorld'
6+
import HelloWorld from '../components/HelloWorld';
77
88
export default {
99
components: {
10-
HelloWorld
11-
}
12-
}
10+
HelloWorld,
11+
},
12+
};
1313
</script>

generator/templates/default/src/views/Home.ts.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
</template>
44

55
<script lang="ts">
6-
import Vue from 'vue'
7-
import HelloWorld from '../components/HelloWorld.vue'
6+
import Vue from 'vue';
7+
import HelloWorld from '../components/HelloWorld.vue';
88
99
export default Vue.extend({
1010
components: {
11-
HelloWorld
12-
}
13-
})
11+
HelloWorld,
12+
},
13+
});
1414
</script>

generator/tools/vuetify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function renderFiles (api, opts) {
4040
}
4141

4242
function addImports (api) {
43-
api.injectImports(api.entryFile, `import vuetify from './plugins/vuetify'`)
43+
api.injectImports(api.entryFile, `import vuetify from './plugins/vuetify';`)
4444
api.injectRootOptions(api.entryFile, 'vuetify')
4545
}
4646

0 commit comments

Comments
 (0)