How to use '--fix' to modify with Vue-cli How to use '--fix' to modify with Vue-cli vue.js vue.js

How to use '--fix' to modify with Vue-cli


./node_modules/.bin/vue-cli-service lint --fix seems to work


Try with npm run lint -- --fix


Just found this one, seems to work, autofixing as you go. Add to your vue.config.js

chainWebpack: config => {    config.module.rule('eslint').use('eslint-loader').options({      fix: true    }) }