-
完整报错为
看了下源码似乎是使用的 require() 进行导入,但是文档里模板给的是 .commitlintrc.js,这样不是压根没法用吗? |
Beta Was this translation helpful? Give feedback.
Answered by
Zhengqbbb
Nov 20, 2022
Replies: 1 comment 1 reply
-
文档里面还有 if u project is esm project type: module. u can use .cjs configure like commitlint.config.cjs| .commitlintrc.cjs | cz.config.cjs |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yuzheng14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
文档里面还有
.commitlintrc.cjs
和commitlint.config.cjs
可以试试if u project is esm project type: module. u can use .cjs configure like commitlint.config.cjs| .commitlintrc.cjs | cz.config.cjs