diff --git a/.github/workflows/commitlint.yaml b/.github/workflows/commitlint.yaml index 27837064b..0ad33287f 100644 --- a/.github/workflows/commitlint.yaml +++ b/.github/workflows/commitlint.yaml @@ -18,4 +18,4 @@ jobs: - uses: wagoid/commitlint-github-action@v5.5.1 with: - configFile: commitlint.config.cjs + configFile: commitlint.config.ts diff --git a/commitlint.config.cjs b/commitlint.config.cjs deleted file mode 100644 index 75847f64a..000000000 --- a/commitlint.config.cjs +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - extends: ['@commitlint/config-conventional'], - rules: { - 'header-max-length': [2, 'always', 108], - }, - ignores: [(message) => /^chore\(release\): .+$/m.test(message)], -} diff --git a/commitlint.config.ts b/commitlint.config.ts new file mode 100644 index 000000000..ee75177b7 --- /dev/null +++ b/commitlint.config.ts @@ -0,0 +1,10 @@ +export default { + extends: ['@commitlint/config-conventional'], + rules: { + 'header-max-length': [2, 'always', 100], + 'body-max-line-length': [1, 'always', 150], + 'type-case': [2, 'always', 'lower-case'], + 'scope-case': [2, 'always', 'lower-case'], + }, + ignores: [(message) => /^chore\(release\): .+$/m.test(message)], +}