Skip to content

Commit 013c218

Browse files
committed
chore(base): update commitlintrc
1 parent 43e4498 commit 013c218

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

.commitlintrc.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'type-enum': [
5+
2,
6+
'always',
7+
// 暂时定为默认值,根据自己的需求调整
8+
['build', 'ci', 'chore', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test']
9+
]
10+
}
11+
}

commitlint.config.js

-3
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"devDependencies": {
3333
"@commitlint/cli": "^8.3.5",
34-
"@commitlint/config-angular": "^8.3.4",
34+
"@commitlint/config-conventional": "^8.3.4",
3535
"chai": "^4.1.2",
3636
"eslint": "^4.16.0",
3737
"eslint-config-standard": "^11.0.0-beta.0",

yarn.lock

+14-10
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,12 @@
125125
resolve-from "5.0.0"
126126
resolve-global "1.0.0"
127127

128-
"@commitlint/config-angular-type-enum@^8.3.4":
128+
"@commitlint/config-conventional@^8.3.4":
129129
version "8.3.4"
130-
resolved "https://registry.yarnpkg.com/@commitlint/config-angular-type-enum/-/config-angular-type-enum-8.3.4.tgz#2ccc316ed072935c71e0abae916a72f70e43feae"
131-
integrity sha512-V8DJ9G3vd8/g55euhwqNPv9gycqbNGfJsswpga7RP0tetzcekkXeE9fXnFBJklqzXrjwUmP8Of5eEsGmbt39IQ==
132-
133-
"@commitlint/config-angular@^8.3.4":
134-
version "8.3.4"
135-
resolved "https://registry.yarnpkg.com/@commitlint/config-angular/-/config-angular-8.3.4.tgz#cea40e8184d36648eb09f9f7c8eefd92ab14f205"
136-
integrity sha512-mFg1Yj2xFDBJJyltGP3RLqZOk89HuNK1ttOcRA9lsTjTVVu4MrNv5sQ1LkW645xn4Vy9zgxlB0CrR4LXEg5QpQ==
130+
resolved "https://registry.npm.taobao.org/@commitlint/config-conventional/download/@commitlint/config-conventional-8.3.4.tgz#fed13b3711690663b176c1f6b39c205a565618d2"
131+
integrity sha1-/tE7NxFpBmOxdsH2s5wgWlZWGNI=
137132
dependencies:
138-
"@commitlint/config-angular-type-enum" "^8.3.4"
133+
conventional-changelog-conventionalcommits "4.2.1"
139134

140135
"@commitlint/ensure@^8.3.4":
141136
version "8.3.4"
@@ -1014,6 +1009,15 @@ conventional-changelog-angular@^1.3.3:
10141009
compare-func "^1.3.1"
10151010
q "^1.5.1"
10161011

1012+
conventional-changelog-conventionalcommits@4.2.1:
1013+
version "4.2.1"
1014+
resolved "https://registry.npm.taobao.org/conventional-changelog-conventionalcommits/download/conventional-changelog-conventionalcommits-4.2.1.tgz#d6cb2e2c5d7bfca044a08b9dba84b4082e1a1bd9"
1015+
integrity sha1-1ssuLF17/KBEoIuduoS0CC4aG9k=
1016+
dependencies:
1017+
compare-func "^1.3.1"
1018+
lodash "^4.2.1"
1019+
q "^1.5.1"
1020+
10171021
conventional-commits-parser@^3.0.0:
10181022
version "3.0.8"
10191023
resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.0.8.tgz#23310a9bda6c93c874224375e72b09fb275fe710"
@@ -2851,7 +2855,7 @@ lodash.templatesettings@^4.0.0:
28512855
dependencies:
28522856
lodash._reinterpolate "^3.0.0"
28532857

2854-
lodash@4.17.15, lodash@^4.17.1, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.4:
2858+
lodash@4.17.15, lodash@^4.17.1, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.4, lodash@^4.2.1:
28552859
version "4.17.15"
28562860
resolved "https://registry.npm.taobao.org/lodash/download/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
28572861
integrity sha1-tEf2ZwoEVbv+7dETku/zMOoJdUg=

0 commit comments

Comments
 (0)