How do I go about disabling ESlint in project generated with vue-cli?
preLoaders: [
{
test: /\\.vue$/,
loader: \'eslint\
There's a hell lot of solutions here: https://github.com/vuejs-templates/webpack/issues/73
However the best one is :
To add a line of **/* to .eslintignore, which will ignore all files.
And then re-run, if it's a web app!
setEslint: false work for me!
module.exports = {
dev: {
...
// 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,
...
},
}
One of the most simple way is just setting an .eslintignore file with you want to disabled folders & files.
demo
/build/
/config/
/dist/
/*.js
/test/unit/coverage/
/000-xyz/
Ref: https://github.com/vuejs-templates/webpack/issues/73#issuecomment-355149342
2019, March :In the vue.config.js :
module.exports = {
...
lintOnSave: false
...
}
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.
In the latest version, open the ".eslintrc.js" file, and set "root: false".