From 7f28d132d2ab98689724d7fab69033a712c72dc4 Mon Sep 17 00:00:00 2001 From: Albert Hernandez Pellicer Date: Fri, 16 Feb 2024 17:11:34 +0100 Subject: [PATCH] chore: convert commitlint to typescript file --- commitlint.config.js | 1 - commitlint.config.ts | 7 +++++++ package-lock.json | 1 + package.json | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) delete mode 100644 commitlint.config.js create mode 100644 commitlint.config.ts diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index 5073c20..0000000 --- a/commitlint.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = { extends: ["@commitlint/config-conventional"] }; diff --git a/commitlint.config.ts b/commitlint.config.ts new file mode 100644 index 0000000..58c638f --- /dev/null +++ b/commitlint.config.ts @@ -0,0 +1,7 @@ +import type { UserConfig } from "@commitlint/types"; + +const config: UserConfig = { + extends: ["@commitlint/config-conventional"], +}; + +module.exports = config; diff --git a/package-lock.json b/package-lock.json index 1de8c34..f0d50bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "devDependencies": { "@commitlint/cli": "^18.6.1", "@commitlint/config-conventional": "^18.6.2", + "@commitlint/types": "^18.6.1", "@swc/cli": "^0.3.9", "@swc/core": "^1.4.1", "@swc/jest": "^0.2.36", diff --git a/package.json b/package.json index 7d292cc..aa78e03 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "devDependencies": { "@commitlint/cli": "^18.6.1", "@commitlint/config-conventional": "^18.6.2", + "@commitlint/types": "^18.6.1", "@swc/cli": "^0.3.9", "@swc/core": "^1.4.1", "@swc/jest": "^0.2.36",