diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 00000000..84dcb122 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,3 @@ +module.exports = { + extends: ['@commitlint/config-conventional'], +}; diff --git a/husky.config.js b/husky.config.js new file mode 100644 index 00000000..514f568c --- /dev/null +++ b/husky.config.js @@ -0,0 +1,7 @@ +module.exports = { + hooks: { + 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS', + 'pre-commit': 'npm run lint', + 'pre-push': 'npm run lint', + }, +};