問題:
How do I go about disabling ESlint
in project generated with vue-cli
?如何在使用vue-cli
生成的項目中禁用ESlint
?
preLoaders: [
{
test: /\.vue$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
},
{
test: /\.js$/,
loader: 'eslint',
include: projectRoot,
exclude: /node_modules/
}
]
If I remove the loader: 'eslint'
line it won't compile, same with setting it to an empty string.如果我刪除loader: 'eslint'
行,它將無法編譯,與將其設置爲空字符串相同。 I know I can opt out of ESLint
during the initialization phase, but how can I disable it after my project has been created?我知道我可以在初始化階段選擇退出ESLint
,但是在我的項目創建後如何禁用它?