diff --git a/.eslintrc.js b/.eslintrc.js index 8ad90db..7bd245d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,17 +1,14 @@ module.exports = { - root: true, - env: { - node: true - }, - 'extends': [ - 'plugin:vue/essential', - 'eslint:recommended' - ], - parserOptions: { - parser: 'babel-eslint' - }, - rules: { - 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' - } + root: true, + env: { + node: true, + }, + extends: ['plugin:vue/essential', 'eslint:recommended'], + parserOptions: { + parser: 'babel-eslint', + }, + rules: { + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + }, } diff --git a/babel.config.js b/babel.config.js index e955840..f47f7db 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,3 @@ module.exports = { - presets: [ - '@vue/cli-plugin-babel/preset' - ] + presets: ['@vue/cli-plugin-babel/preset'], } diff --git a/public/index.html b/public/index.html index 4123528..6f84add 100644 --- a/public/index.html +++ b/public/index.html @@ -1,17 +1,21 @@ - - - - - - <%= htmlWebpackPlugin.options.title %> - - - -
- - + + + + + + <%= htmlWebpackPlugin.options.title %> + + + +
+ + diff --git a/src/App.vue b/src/App.vue index 6c26aa6..1b21028 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,32 +1,32 @@ diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 1c544cb..4d99516 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -1,60 +1,146 @@ diff --git a/src/main.js b/src/main.js index f253456..4a154b0 100644 --- a/src/main.js +++ b/src/main.js @@ -6,7 +6,7 @@ import store from './store' Vue.config.productionTip = false new Vue({ - router, - store, - render: h => h(App) + router, + store, + render: h => h(App), }).$mount('#app') diff --git a/src/router/index.js b/src/router/index.js index 84ca35e..f5ad1e6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,24 +4,25 @@ import Home from '../views/Home.vue' Vue.use(VueRouter) - const routes = [ - { - path: '/', - name: 'Home', - component: Home - }, - { - path: '/about', - name: 'About', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') - } +const routes = [ + { + path: '/', + name: 'Home', + component: Home, + }, + { + path: '/about', + name: 'About', + // route level code-splitting + // this generates a separate chunk (about.[hash].js) for this route + // which is lazy-loaded when the route is visited. + component: () => + import(/* webpackChunkName: "about" */ '../views/About.vue'), + }, ] const router = new VueRouter({ - routes + routes, }) export default router diff --git a/src/store/index.js b/src/store/index.js index 332b916..f9cda15 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -4,12 +4,8 @@ import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ - state: { - }, - mutations: { - }, - actions: { - }, - modules: { - } + state: {}, + mutations: {}, + actions: {}, + modules: {}, }) diff --git a/src/views/About.vue b/src/views/About.vue index 3fa2807..3b5e43f 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -1,5 +1,5 @@ diff --git a/src/views/Home.vue b/src/views/Home.vue index 8bd6c57..d3ac08f 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,18 +1,18 @@ diff --git a/vue.config.js b/vue.config.js index 8725416..319f316 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,3 +1,3 @@ module.exports = { - lintOnSave: false + lintOnSave: false, }