Answers for "Running ESLint in precommit does not stop on warnings"

0

Running ESLint in precommit does not stop on warnings

"husky": {
    "hooks": {
      "pre-commit": "npm run lint-fix && eslint \"**/*.js\" --fix --max-warnings=0 && git add -A ",
      "pre-push": "npm run lint"
    }
  }
Posted by: Guest on March-19-2021

Browse Popular Code Answers by Language