我该如何禁用ESlint
在生成的项目中vue-cli
?
preLoaders: [
{
test: /\.vue$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
},
{
test: /\.js$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
}
]
如果我删除loader: 'eslint'
它不会编译,与将其设置为空字符串相同。我知道我可以选择退出ESLint
在初始化阶段,但是在创建项目后如何禁用它?
这里有一些过时的答案。
由于 vue-cli 3 使用零配置方法,禁用它的方法就是卸载模块:
npm remove @vue/cli-plugin-eslint
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)