如何在使用 vue-cli
生成的项目中禁用 ESlint
?
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
关于javascript - 如何在 vue-cli 中禁用 ESLint?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38757069/