From 68946763c9c26d336cb4b4cac92d0a48162c71da Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Wed, 27 Mar 2024 16:58:05 +0800 Subject: [PATCH 1/2] chore: config commitlint in the package.json --- .commitlintrc.js | 1 - package.json | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) delete mode 100644 .commitlintrc.js create mode 100644 package.json diff --git a/.commitlintrc.js b/.commitlintrc.js deleted file mode 100644 index 422b1944..00000000 --- a/.commitlintrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = { extends: ['@commitlint/config-conventional'] }; diff --git a/package.json b/package.json new file mode 100644 index 00000000..87dff347 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "commitlint": { + "extends": [ + "commitlint/config-conventional" + ] + } +} From 15443e42d3f17bf792212efe82a5afcfb2d26c79 Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Wed, 27 Mar 2024 17:02:57 +0800 Subject: [PATCH 2/2] fix and update template --- package.json | 2 +- template/.commitlintrc.js | 1 - template/package.json | 7 +++++++ 3 files changed, 8 insertions(+), 2 deletions(-) delete mode 100644 template/.commitlintrc.js create mode 100644 template/package.json diff --git a/package.json b/package.json index 87dff347..6e542715 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "commitlint": { "extends": [ - "commitlint/config-conventional" + "@commitlint/config-conventional" ] } } diff --git a/template/.commitlintrc.js b/template/.commitlintrc.js deleted file mode 100644 index 422b1944..00000000 --- a/template/.commitlintrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = { extends: ['@commitlint/config-conventional'] }; diff --git a/template/package.json b/template/package.json new file mode 100644 index 00000000..6e542715 --- /dev/null +++ b/template/package.json @@ -0,0 +1,7 @@ +{ + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] + } +}