diff --git a/.commitlintrc.json b/.commitlintrc.json deleted file mode 100644 index d3d7f0cd..00000000 --- a/.commitlintrc.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": ["@commitlint/config-conventional"] } diff --git a/commitlint.config.ts b/commitlint.config.ts new file mode 100644 index 00000000..f330cae1 --- /dev/null +++ b/commitlint.config.ts @@ -0,0 +1,9 @@ +import type { UserConfig } from '@commitlint/types'; + +const configuration: UserConfig = { + extends: ["@commitlint/config-conventional"], + // Ignore dependabot commits (ref: https://github.com/dependabot/dependabot-core/issues/2445) + ignores: [(commit) => /Signed-off-by: dependabot\[bot]/m.test(commit)] +} + +export default configuration; diff --git a/package.json b/package.json index 360c327f..7cb95eee 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "version": "1.0.0", "private": true, "license": "MIT", - "type": "module", "scripts": { "prepare": "husky install", "generate": "pnpm --filter @yd/api generate:openapi && pnpm --filter @yd/client generate", @@ -22,6 +21,7 @@ "devDependencies": { "@commitlint/cli": "^17.7.2", "@commitlint/config-conventional": "^17.7.0", + "@commitlint/types": "^17.4.4", "husky": "^8.0.3" }, "pnpm": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a4fe8051..0af75553 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ importers: '@commitlint/config-conventional': specifier: ^17.7.0 version: 17.7.0 + '@commitlint/types': + specifier: ^17.4.4 + version: 17.4.4 husky: specifier: ^8.0.3 version: 8.0.3