From 342b7b428a7e87951a03228bc2ee750cbb551eb9 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 8 Apr 2019 22:05:10 +0800 Subject: [PATCH] fix[Chore]: add @vue/cli-plugin-eslint --- package.json | 1 + vue.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f8f98543..1b59855b 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "@babel/core": "7.0.0", "@babel/register": "7.0.0", "@vue/cli-plugin-babel": "3.5.3", + "@vue/cli-plugin-eslint": "3.5.1", "@vue/cli-plugin-unit-jest": "3.5.3", "@vue/cli-service": "3.5.3", "@vue/test-utils": "1.0.0-beta.29", diff --git a/vue.config.js b/vue.config.js index d5fede2b..cbd79510 100644 --- a/vue.config.js +++ b/vue.config.js @@ -21,7 +21,7 @@ module.exports = { publicPath: '/', outputDir: 'dist', assetsDir: 'static', - lintOnSave: process.env.NODE_ENV === 'development' ? 'error' : false, + lintOnSave: process.env.NODE_ENV === 'development', productionSourceMap: false, devServer: { port: port,