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" - ] } }