Disable ESLint when running Vue CLI Service

When creating a new app via the Vue CLI, by default, Vue ships with a default ESLint config that is present in the package.json file.

The CLI Service, when running the command "vue-cli-service serve", also reports any rule violation configured in the ESLint config file. If you already have a plugin that handles ESLint reports, you don't need to have them also displayed in your CLI every time that Hot Reload occurs.

You can disable all ESLint notification in the Vue CLI service prompt by creating a vue.config.js file.

Then, you have to add the following lines :


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

I hope this will help you 😀

No comments:

Powered by Blogger.