How to fix "1 error potentially fixable with the `--fix` option" when using vue.js? How to fix "1 error potentially fixable with the `--fix` option" when using vue.js? vue.js vue.js

How to fix "1 error potentially fixable with the `--fix` option" when using vue.js?


You can run this command right before vue-cli-service build. Just modify your package.json "scripts" section.package.json:

..."build": "npm run lint -- --fix && vue-cli-service build",...

ES Lint removing:

Just drop these lines of code into your vue.config.js:

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