chore: sync commit-lint script from gitlab-lsp

Syncs scripts/commit-lint/lint.js with the latest version from gitlab-lsp.

Changes from upstream:

  • Strip Draft: prefix from MR title before linting (when squash is enabled)
  • Minor code style cleanup (arrow function parens)

Note: the upstream file uses CommonJS require() targeting @commitlint v9, but this repo already has v20 (ESM-only) installed. The imports were kept as ESM import statements to match the installed packages.

Merge request reports

Loading