diff --git a/addons/web/tooling/_husky/pre-commit b/addons/web/tooling/_husky/pre-commit index d12bd62b9f0..74847d86c64 100755 --- a/addons/web/tooling/_husky/pre-commit +++ b/addons/web/tooling/_husky/pre-commit @@ -1,4 +1,7 @@ #!/bin/bash . "$(dirname "$0")/_/husky.sh" -npm run format-staged +# run tooling only on branches that start with master to avoid linting noise in stable +if [[ $(git branch --show-current) == master* ]]; then + npm run format-staged +fi