This repository was archived by the owner on May 7, 2021. It is now read-only.
File tree 10 files changed +893
-395
lines changed
10 files changed +893
-395
lines changed Original file line number Diff line number Diff line change
1
+ [* .{js,jsx,ts,tsx,vue} ]
2
+ indent_style = space
3
+ indent_size = 2
4
+ end_of_line = lf
5
+ trim_trailing_whitespace = true
6
+ insert_final_newline = true
7
+ max_line_length = 100
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
presets : [
3
- '@vue/app'
4
- ]
5
- }
3
+ '@vue/app' ,
4
+ ] ,
5
+ } ;
Original file line number Diff line number Diff line change 16
16
"@vue/cli-plugin-babel" : " ^3.3.0" ,
17
17
"@vue/cli-plugin-eslint" : " ^3.3.0" ,
18
18
"@vue/cli-service" : " ^3.3.0" ,
19
+ "@vue/eslint-config-airbnb" : " ^4.0.0" ,
19
20
"babel-eslint" : " ^10.0.1" ,
20
21
"eslint" : " ^5.8.0" ,
21
22
"eslint-plugin-vue" : " ^5.0.0" ,
28
29
},
29
30
"extends" : [
30
31
" plugin:vue/essential" ,
31
- " eslint:recommended "
32
+ " @vue/airbnb "
32
33
],
33
34
"rules" : {},
34
35
"parserOptions" : {
Original file line number Diff line number Diff line change 15
15
-moz-osx-font-smoothing : grayscale ;
16
16
text-align : center ;
17
17
color : #2c3e50 ;
18
- margin-top : 60px ;
18
+ }
19
+ #nav {
20
+ padding : 30px ;
21
+ }
22
+
23
+ #nav a {
24
+ font-weight : bold ;
25
+ color : #2c3e50 ;
26
+ }
27
+
28
+ #nav a .router-link-exact-active {
29
+ color : #42b983 ;
19
30
}
20
31
</style >
Original file line number Diff line number Diff line change 34
34
export default {
35
35
name: ' HelloWorld' ,
36
36
props: {
37
- msg: String
38
- }
39
- }
37
+ msg: String ,
38
+ },
39
+ };
40
40
</script >
41
41
42
42
<!-- Add "scoped" attribute to limit CSS to this component only -->
Original file line number Diff line number Diff line change 1
- import Vue from 'vue'
2
- import App from './App.vue'
3
- import router from './router'
4
- import store from './store'
1
+ import Vue from 'vue' ;
2
+ import App from './App.vue' ;
3
+ import router from './router' ;
4
+ import store from './store' ;
5
5
6
- Vue . config . productionTip = false
6
+ Vue . config . productionTip = false ;
7
7
8
8
new Vue ( {
9
9
router,
10
10
store,
11
- render : h => h ( App )
12
- } ) . $mount ( '#app' )
11
+ render : h => h ( App ) ,
12
+ } ) . $mount ( '#app' ) ;
Original file line number Diff line number Diff line change 1
- import Vue from 'vue'
2
- import Router from 'vue-router'
3
- import Home from './views/Home.vue'
1
+ import Vue from 'vue' ;
2
+ import Router from 'vue-router' ;
3
+ import Home from './views/Home.vue' ;
4
4
5
- Vue . use ( Router )
5
+ Vue . use ( Router ) ;
6
6
7
7
export default new Router ( {
8
+ mode : 'history' ,
9
+ base : process . env . BASE_URL ,
8
10
routes : [
9
11
{
10
12
path : '/' ,
11
13
name : 'home' ,
12
- component : Home
14
+ component : Home ,
13
15
} ,
14
16
{
15
17
path : '/about' ,
16
18
name : 'about' ,
17
19
// route level code-splitting
18
20
// this generates a separate chunk (about.[hash].js) for this route
19
21
// which is lazy-loaded when the route is visited.
20
- component : ( ) => import ( /* webpackChunkName: "about" */ './views/About.vue' )
21
- }
22
- ]
23
- } )
22
+ component : ( ) => import ( /* webpackChunkName: "about" */ './views/About.vue' ) ,
23
+ } ,
24
+ ] ,
25
+ } ) ;
Original file line number Diff line number Diff line change 1
- import Vue from 'vue'
2
- import Vuex from 'vuex'
1
+ import Vue from 'vue' ;
2
+ import Vuex from 'vuex' ;
3
3
4
- Vue . use ( Vuex )
4
+ Vue . use ( Vuex ) ;
5
5
6
6
export default new Vuex . Store ( {
7
7
state : {
@@ -12,5 +12,5 @@ export default new Vuex.Store({
12
12
} ,
13
13
actions : {
14
14
15
- }
16
- } )
15
+ } ,
16
+ } ) ;
Original file line number Diff line number Diff line change 7
7
8
8
<script >
9
9
// @ is an alias to /src
10
- import HelloWorld from ' @/components/HelloWorld.vue'
10
+ import HelloWorld from ' @/components/HelloWorld.vue' ;
11
11
12
12
export default {
13
13
name: ' home' ,
14
14
components: {
15
- HelloWorld
16
- }
17
- }
15
+ HelloWorld,
16
+ },
17
+ };
18
18
</script >
You can’t perform that action at this time.
0 commit comments