How to move ESLint errors to commit time in Vue
Are you annoyed at Vue's default aggressive linting? Would you rather not be interrupted by say, changing double quotes to single quotes during dev cycles?
Turn off linting with each file change.
vue.config.js
:module.exports = { lintOnSave: false }
Add Husky to your development deps:
npm i --save-dev husky
Run linting as a pre-commit Git hook.
.huskyrc
:{ "hooks": { "pre-commit": "vue-cli-service lint --no-fix" } }