chore: add commitlint
This commit is contained in:
parent
fac8349878
commit
51ed1266c9
5 changed files with 711 additions and 36 deletions
28
commitlint.config.js
Normal file
28
commitlint.config.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
/** @type {import('@commitlint/types').UserConfig} */
|
||||
module.exports = {
|
||||
extends: ["@commitlint/config-conventional"],
|
||||
rules: {
|
||||
"type-enum": [
|
||||
2,
|
||||
"always",
|
||||
["chore", "ci", "docs", "feat", "fix", "refactor"],
|
||||
],
|
||||
"scope-enum": [
|
||||
2,
|
||||
"always",
|
||||
[
|
||||
// apps
|
||||
"blog",
|
||||
"main",
|
||||
"portfolio",
|
||||
|
||||
// packages
|
||||
"content",
|
||||
"eslint-config",
|
||||
"playwright-config",
|
||||
"prettier-config",
|
||||
"tailwind-config",
|
||||
],
|
||||
],
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue