diff --git a/.eslintrc.js b/.eslintrc.js index ccd2301..2652a8c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -29,15 +29,16 @@ module.exports = { } ], 'vue/max-attributes-per-line': [ - 2, - { - singleline: 10, - multiline: { - max: 1, - allowFirstLine: true + 'error', + { + 'singleline': { + 'max': 1 + }, + 'multiline': { + 'max': 1 } - } - ], + }, + ], 'vue/singleline-html-element-content-newline': 'off', 'vue/multiline-html-element-content-newline': 'off', 'vue/require-v-for-key': 'off', diff --git a/main.js b/main.js index 0118bf5..0edb4e4 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,5 @@ import App from './App' - -//引入uView-ui组件库(注意这两行要放在 import Vue 之后) +// 引入uView-ui组件库(注意这两行要放在 import Vue 之后) import uView from 'uview-ui' Vue.use(uView) @@ -9,7 +8,7 @@ import Vue from 'vue' Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ - ...App + ...App }) app.$mount() // #endif @@ -22,4 +21,4 @@ export function createApp() { app } } -// #endif \ No newline at end of file +// #endif diff --git a/pages/index/index.vue b/pages/index/index.vue index 469d8ee..9f179b8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -5,7 +5,9 @@