How do I go about disabling ESlint
in project generated with vue-cli
?
JavaScript
x
15
15
1
preLoaders: [
2
{
3
test: /.vue$/,
4
loader: 'eslint',
5
include: projectRoot,
6
exclude: /node_modules/
7
},
8
{
9
test: /.js$/,
10
loader: 'eslint',
11
include: projectRoot,
12
exclude: /node_modules/
13
}
14
]
15
If I remove the loader: 'eslint'
line it won’t compile, same with setting it to an empty string. I know I can opt out of ESLint
during the initialization phase, but how can I disable it after my project has been created?
Advertisement
Answer
Vue’s starter projects are themselves built with a templating language.
Looking at the templates (the {{#lint}}
bits) it appears you can remove the entire preLoaders
block.