How do I go about disabling ESlint
in project generated with vue-cli
?
preLoaders: [
{
test: /\\.vue$/,
loader: \'eslint\
As of the current version (^3.0?) you can just set:
useEslint: false,
in config/index.js
Set
useEslint: false,
in config/index.js
see this image
Go to .eslintrc.js
and add this:
dev: {
useEslint: false
},
Go inside file "tslint.json" and exclude all files in linterOptions. Default settings only excludes folder node_modules. You may also set "strict": false, inside tsconfig.json
"linterOptions": {
"exclude": [
"*/**"
]
},
instead of
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
in package.json
change the build step:
...
"scripts": {
"build": "vue-cli-service build --skip-plugins @vue/cli-plugin-eslint",
...
},
There are some out-of-date answers here.
Because vue-cli 3 is using a zero configuration approach, the way to disable it is to just uninstall the module:
npm remove @vue/cli-plugin-eslint