From 7788bc287c6653d5c7967a5f680f10d741284240 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 19 Jul 2022 14:59:42 +0530 Subject: [PATCH] ci: stripped down semantic commit check --- commitlint.config.js | 25 +++++++++++++++++++++++++ package.json | 5 ----- 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 commitlint.config.js diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000000..8847564e53 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,25 @@ +module.exports = { + parserPreset: 'conventional-changelog-conventionalcommits', + rules: { + 'subject-empty': [2, 'never'], + 'type-case': [2, 'always', 'lower-case'], + 'type-empty': [2, 'never'], + 'type-enum': [ + 2, + 'always', + [ + 'build', + 'chore', + 'ci', + 'docs', + 'feat', + 'fix', + 'perf', + 'refactor', + 'revert', + 'style', + 'test', + ], + ], + }, +}; diff --git a/package.json b/package.json index 8b2c3420b2..6c11e9dddc 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,5 @@ "dependencies": { "html2canvas": "^1.1.4", "onscan.js": "^1.5.2" - }, - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ] } }