webstorm关闭ESLint
webstorm新建vue项目一路next默认会开启eslint功能。一:setting中关闭搜索eslint并关闭项目中关闭找到build文件夹—>webpack.base.conf.js---->modulemodule: {rules: [...(config.dev.useEslint ? [createLintingRule()] : []),
·
webstorm新建vue项目一路next默认会开启eslint功能。
一:setting中关闭
搜索eslint并关闭
二、项目中关闭
找到build文件夹—>webpack.base.conf.js---->module
module: {
rules: [
...(config.dev.useEslint ? [createLintingRule()] : []),
{
test: /\.vue$/,
loader: 'vue-loader',
options: vueLoaderConfig
},
.....
点击config.dev.useEslint,并将值设为false
// 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,
更多推荐
已为社区贡献3条内容
所有评论(0)