diff --git a/.husky/pre-commit b/.husky/pre-commit index 3ebb0cf578f..7a13136e997 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,3 +2,5 @@ . "$(dirname -- "$0")/_/husky.sh" npm run lint-fix + +git add . \ No newline at end of file diff --git a/commitlint.config.js b/commitlint.config.js index 62f9a8a948e..8b329cbd8d6 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,3 +1,6 @@ module.exports = { extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes'], + rules: { + 'scope-enum': [2, 'always', ['release', 'docs', 'workflow']], + }, };