-
完整报错为
看了下源码似乎是使用的 require() 进行导入,但是文档里模板给的是 .commitlintrc.js,这样不是压根没法用吗? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 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.
-
Hi there, I plan to add support for loading ESM configuration files in v1.11.0 next weekend. Docs preview link: https://deploy-preview-197--cz-git.netlify.app/config/ |
Beta Was this translation helpful? Give feedback.
-
Hi there 👋 |
Beta Was this translation helpful? Give feedback.
文档里面还有
.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