Vue 单独安装eslint 和卸载eslint

MW0309

安装的时候进入到你的项目目录中执行

npm install eslint --save

卸载的时候进入到你的项目目录中执行

npm uninstall eslint --save

1.关闭软件webstorm 的ESlint
file->settings->搜索ESlint->取消Enable的勾选

2.注释掉项目内的ESlint

index.js

// Use Eslint Loader?
// If true, your code will be linted during bundling and
// linting errors and warnings will be shown in the console.
useEslint: false,
// If true, eslint errors and warnings will also be shown in the error overlay
// in the browser.
showEslintErrorsInOverlay: false,

项目目录下build.js->webpack.base.conf.js文件里面有段代码  注释掉!!! 


好了!特别清爽的感觉!

Logo

前往低代码交流专区

更多推荐