zgzgorg / iam-backend

0 stars 2 forks source link

change commitlintrc.yml to ts or js syntax for better support #72

Open kis87988 opened 2 years ago

kis87988 commented 2 years ago

We use commitlint for commit check. However, it looks like we don't have full config support for the yml config file. I start looking into this due to https://github.com/dependabot/dependabot-core/issues/2445 and trying to have ignores, but that looks like we need to create a function to do that, but I don't believe yml support that.

Since the origin commitlint is created by javascript, we can use js or ts(TypeScript) for better support.

Reference:

  1. https://github.com/conventional-changelog/commitlint/blob/master/docs/reference-configuration.md

Outcome:

  1. determinate we should use ts or js
  2. convert current commitlintrc.yml to commitlintrc.ts or commitlintrc.js