Skip to content

Commit

Permalink
chore:change commit lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fridayCCC committed Dec 29, 2023
1 parent 9613c1f commit fff5182
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,7 @@ module.exports = {
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"feature",
"fix",
"refactor",
"style",
"test",
],
["chore", "docs", "feat", "fix", "refactor", "style", "test"],
],
"type-empty": [2, "never"],
"type-case": [2, "always", "lower-case"],
Expand All @@ -36,24 +25,4 @@ module.exports = {
"footer-leading-blank": [1, "always"],
"footer-max-line-length": [2, "always", 100],
},
plugins: [
{
rules: {
"develop-rule": ({ subject }) => {
const commitFolders = ["[data]", "[ui]"];
return [
commitFolders.some(
(folder) =>
subject?.startsWith(folder) !== subject?.endsWith(folder)
),
`\n${commitFolders.map((folder) => `${folder}\n`).join("")}
위 네 가지 중 한 가지는 반드시 콜론(:) 뒤에 포함되어야 합니다.
[name] 뒤에 메시지 입력은 필수입니다.
ex) feat: [frontend] 마우스 더블클릭 후 스타일 변경`,
];
},
},
},
],
};

0 comments on commit fff5182

Please sign in to comment.