From 9df5fc08b493b24b0696b0c1a93a48df1a7c9475 Mon Sep 17 00:00:00 2001 From: Mike Bonds Date: Wed, 13 Jun 2018 17:04:35 -0400 Subject: [PATCH] Fixes linting errors when using airbnb lint config. Moves Vue.use(Buefy) to below the imports. --- template/src/docs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/template/src/docs.js b/template/src/docs.js index 4b1e2ad..fef7d63 100644 --- a/template/src/docs.js +++ b/template/src/docs.js @@ -4,8 +4,7 @@ {{/if_eq}} import Vue from 'vue'{{#if_eq lintConfig "airbnb"}};{{/if_eq}} {{#buefy}} -import Buefy from 'buefy' -Vue.use(Buefy) +import Buefy from 'buefy'{{#if_eq lintConfig "airbnb"}};{{/if_eq}} {{/buefy}} import App from './app'{{#if_eq lintConfig "airbnb"}};{{/if_eq}} {{#router}} @@ -19,6 +18,9 @@ import './styles/app.scss'{{#if_eq lintConfig "airbnb"}};{{/if_eq}} import './styles/app.styl'{{#if_eq lintConfig "airbnb"}};{{/if_eq}} {{/stylus}} +{{#buefy}} +Vue.use(Buefy){{#if_eq lintConfig "airbnb"}};{{/if_eq}} +{{/buefy}} Vue.config.productionTip = false{{#if_eq lintConfig "airbnb"}};{{/if_eq}} /* eslint-disable no-new */