diff --git a/.eslintrc.js b/.eslintrc.js index 3937745..34bb583 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,6 +7,11 @@ module.exports = { 'plugin:vue/essential', '@vue/airbnb', ], + plugins: [ + 'html', + 'vue' + ], + rules: { "semi": "off", //去掉分号检查 'linebreak-style':'off', diff --git a/package.json b/package.json index 77c8de4..bdc3747 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,11 @@ "babel-eslint": "^10.0.1", "chai": "^4.1.2", "vuetify-loader": "1.2.1", - "eslint": "^5.8.0", - "eslint-plugin-vue": "^5.0.0-0", + "eslint": "5.14.1", + "eslint-plugin-vue": "5.2.2", + "eslint-friendly-formatter": "^4.0.1", + "eslint-loader": "2.1.2", + "eslint-plugin-html": "5.0.3", "lint-staged": "^7.2.2", "node-sass": "^4.9.2", "sass-loader": "^7.0.3", diff --git a/src/views/404.vue b/src/views/404.vue index 9601e63..f679931 100644 --- a/src/views/404.vue +++ b/src/views/404.vue @@ -1,4 +1,3 @@ -/* eslint-disable camelcase */ diff --git a/src/views/DouBan/book.vue b/src/views/DouBan/book.vue index 510156f..0fc9ba0 100644 --- a/src/views/DouBan/book.vue +++ b/src/views/DouBan/book.vue @@ -35,7 +35,7 @@ + align="center"> diff --git a/src/views/SIX/RewardOrPunish.vue b/src/views/SIX/RewardOrPunish.vue index d577d21..0182013 100644 --- a/src/views/SIX/RewardOrPunish.vue +++ b/src/views/SIX/RewardOrPunish.vue @@ -1,11 +1,14 @@ diff --git a/src/views/SIX/Salary.vue b/src/views/SIX/Salary.vue index a6f3b31..b317b96 100644 --- a/src/views/SIX/Salary.vue +++ b/src/views/SIX/Salary.vue @@ -1,11 +1,14 @@ diff --git a/src/views/SIX/Staff.vue b/src/views/SIX/Staff.vue index 4377275..aa86023 100644 --- a/src/views/SIX/Staff.vue +++ b/src/views/SIX/Staff.vue @@ -1,11 +1,14 @@ diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index e38df60..a5e0226 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -11,7 +11,7 @@ 系统公告 - +