diff --git a/.commitlintrc.json b/.commitlintrc.json new file mode 100644 index 00000000..cc01e52a --- /dev/null +++ b/.commitlintrc.json @@ -0,0 +1,39 @@ +{ + "extends": [ + "@commitlint/config-conventional" + ], + "rules": { + "header-max-length": [ + 2, + "always", + 72 + ], + "body-max-line-length": [ + 2, + "always", + 72 + ], + "body-leading-blank": [ + 2, + "always" + ], + "type-enum": [ + 2, + "always", + [ + "build", + "chore", + "ci", + "deps", + "docs", + "feat", + "fix", + "perf", + "refactor", + "revert", + "style", + "test" + ] + ] + } +} diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index 5ccb4ba6..00000000 --- a/commitlint.config.js +++ /dev/null @@ -1,10 +0,0 @@ -const Configuration = { - extends: ['@commitlint/config-conventional'], - rules: { - 'header-max-length': [2, 'always', 72], - 'body-max-line-length': [2, 'always', 72], - 'body-leading-blank': [2, 'always'], - }, -}; - -module.exports = Configuration;