-
普通的 .commitlintrc.js 我看了这个 issue 配出来没问题 #49 // .czrc | package.json | .commitlintrc(need "prompt" key)
// .commitlintrc.json
{ "value": "feat", "name": "feat: ✨ A new feature", "emoji": ":sparkles:" }
// package.json
"config": {
"commitizen": {
"path": "node_modules/cz-git"
}
}, 然后发现 emoji 没显示出来,“useEmoji” 设置为 true 后实际的提交信息里也没有 emoji chore: test emoji JSON 格式这 emoji 该怎么配? |
Beta Was this translation helpful? Give feedback.
Answered by
Zhengqbbb
Nov 10, 2022
Replies: 1 comment 1 reply
-
{
"prompt": {
"types": [
{ "value": "feat", "name": "feat: A new feature", "emoji": ":sparkles:" }
],
"useEmoji": true
}
} But if u project is esm project /** @type {import('cz-git').UserConfig} */
module.exports = {
prompt: {
types: [
{ value: "feat", name: "feat: A new feature", emoji: ":sparkles:" },
],
useEmoji: true
},
}; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Hellager
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But if u project is esm project
type: module
. u can use.cjs
configure likecommitlint.config.cjs
|.commitlintrc.cjs
|cz.config.cjs