From 6a675d041885867657dc5b82d3cccc2606d9dca7 Mon Sep 17 00:00:00 2001 From: coward Date: Sat, 18 May 2024 01:12:15 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E7=99=BB=E9=99=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commitlint.config.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/commitlint.config.js b/commitlint.config.js index a6ff741..ac261a3 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,15 +1,15 @@ // @ts-check -// /** @type {import("@commitlint/types").UserConfig} */ -// export default { -// ignores: [commit => commit.includes("init")], -// extends: ["@commitlint/config-conventional"], -// rules: { -// "body-leading-blank": [2, "always"], -// "footer-leading-blank": [1, "always"], -// "header-max-length": [2, "always", 108], -// "subject-empty": [2, "never"], -// "type-empty": [2, "never"], -// "type-enum": [2, "always", []] -// } -// }; +/** @type {import("@commitlint/types").UserConfig} */ +export default { + ignores: [commit => commit.includes("init")], + extends: ["@commitlint/config-conventional"], + rules: { + "body-leading-blank": [2, "always"], + "footer-leading-blank": [1, "always"], + "header-max-length": [2, "always", 108], + "subject-empty": [2, "never"], + "type-empty": [2, "never"], + "type-enum": [2, "always", []] + } +};