diff --git a/blog/.eslintrc.cjs b/blog/.eslintrc.cjs index dbdf509..942318c 100644 --- a/blog/.eslintrc.cjs +++ b/blog/.eslintrc.cjs @@ -3,22 +3,16 @@ module.exports = { browser: true, es2021: true }, - extends: [ - 'plugin:vue/vue3-essential', - 'standard' - ], - overrides: [ - ], + extends: ['plugin:vue/vue3-essential', 'standard'], + overrides: [], parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, - plugins: [ - 'vue' - ], + plugins: ['vue'], rules: { 'vue/multi-word-component-names': 0, - 'space-before-function-paren': ['error', 'never'], // 函数名与括号之间无空格 + 'space-before-function-paren': 0, quotes: ['error', 'single'] // 单引号 } } diff --git a/blog/index.html b/blog/index.html index 2c37f38..c1aea72 100644 --- a/blog/index.html +++ b/blog/index.html @@ -1,9 +1,3 @@ - diff --git a/blog/src/App.vue b/blog/src/App.vue index 4c26142..71f5e5d 100644 --- a/blog/src/App.vue +++ b/blog/src/App.vue @@ -1,16 +1,10 @@ - + diff --git a/blog/src/main.js b/blog/src/main.js index 90481bb..59cb7cd 100644 --- a/blog/src/main.js +++ b/blog/src/main.js @@ -23,7 +23,4 @@ const app = createApp(App) app.component('svg-icon', SvgIcon) -app.use(VMdPreview) - .use(router) - .use(ElementPlus) - .mount('#app') +app.use(VMdPreview).use(router).use(ElementPlus).mount('#app')