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?

  1. Turn off linting with each file change.

    vue.config.js:

    module.exports = {
      lintOnSave: false
    }
    
  2. Add Husky to your development deps: npm i --save-dev husky

  3. Run linting as a pre-commit Git hook.

    .huskyrc:

    {
      "hooks": {
        "pre-commit": "vue-cli-service lint --no-fix"
      }
    }
    
More blog posts