Skip to content

Node.js based forum software built for the modern web

feat: enabling commitlint

Julian Lamc58a41ed7275
diff --git a/commitlint.config.js b/commitlint.config.js
new file mode 100644
index 0000000000..6b18799869
--- /dev/null
+++ b/commitlint.config.js
@@ -0,0 +1,3 @@
+'use strict';
+
+module.exports = { extends: ['@commitlint/config-angular'] };
diff --git a/install/package.json b/install/package.json
index cbee2dfb0a..5672d0ede0 100644
--- a/install/package.json
+++ b/install/package.json
@@ -18,7 +18,8 @@
},
"husky": {
"hooks": {
- "pre-commit": "lint-staged"
+ "pre-commit": "lint-staged",
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
@@ -129,6 +130,8 @@
"zxcvbn": "^4.4.2"
},
"devDependencies": {
+ "@commitlint/cli": "^7.2.1",
+ "@commitlint/config-angular": "^7.1.2",
"coveralls": "3.0.2",
"eslint": "5.8.0",
"eslint-config-airbnb-base": "13.1.0",