How to disable eslint on vue-cli 3?

You can remove the eslint rule by adding a vue.config.js file to your project with the following content.

module.exports = {
    chainWebpack: config => {
        config.module.rules.delete('eslint');
    }
}

Alternatively if your project has a config\index.js file you can disable eslint by adding the following line.

useEslint: false,

This is work for me

module.exports = {
    chainWebpack: config => {
        config.module.rules.delete('eslint');
    }
}

if you are unable to disable it just remove it by using the below command

 npm remove @vue/cli-plugin-eslint

The below code is used to disable it:

module.exports = {
  chainWebpack: config => {
    config.module.rules.delete('eslint');
   }
 }

You would put /* eslint-disable */ in a vue file to ignore eslint checks in that particular file. You can create a .eslintrc file to change the rules eslint should check for.

Tags:

Vuejs2

Vue Cli