mirror of
https://github.com/bendtherules/completion-viz.git
synced 2026-08-18 13:42:51 +00:00
config(misc): Add commitlint
Add dep and config
This commit is contained in:
@@ -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"]
|
||||
},
|
||||
};
|
||||
+6
-1
@@ -21,10 +21,14 @@
|
||||
"tailwindcss": "^1.7.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^11.0.0",
|
||||
"@commitlint/config-conventional": "^11.0.0",
|
||||
"@commitlint/prompt-cli": "^11.0.0",
|
||||
"acorn": "^7.4.0",
|
||||
"typescript": "~3.7.2"
|
||||
},
|
||||
"scripts": {
|
||||
"commit": "commit",
|
||||
"build:tailwind": "tailwindcss build src/tailwind.css -o src/tailwind.output.css",
|
||||
"prestart": "npm run build:tailwind",
|
||||
"prebuild": "npm run build:tailwind",
|
||||
@@ -43,7 +47,8 @@
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
"pre-commit": "lint-staged",
|
||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
|
||||
Reference in New Issue
Block a user