config(misc): Add commitlint

Add dep and config
This commit is contained in:
2020-09-28 18:25:34 +05:30
parent 1ca2003a31
commit f0b0b916e2
3 changed files with 734 additions and 26 deletions
+24
View File
@@ -0,0 +1,24 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
"feat",
"update", // Update feature
"fix",
"config", // config changes like package.json, .eslintrc
"docs",
"style",
"refactor",
"ci",
"chore",
"revert",
"test",
],
],
"scope-enum": [1, "always", ["app", "completion", "source", "types", "engine262", "misc"]],
"subject-case": [0, "always"]
},
};