diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 000000000..b147f27b1 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,20 @@ +const Configuration = { + /* + * Resolve and load @commitlint/config-conventional from node_modules. + * Referenced packages must be installed + */ + extends: ["@commitlint/config-conventional"], + /* + * Any rules defined here will override rules from @commitlint/config-conventional + */ + rules: { + "body-leading-blank": [2, "always"], + "footer-leading-blank": [2, "always"], + }, + /* + * Custom URL to show upon failure + */ + helpUrl: "https://github.com/conventional-changelog/commitlint/#what-is-commitlint", +}; + +module.exports = Configuration; diff --git a/package.json b/package.json index 9ec42c406..0a7fab1ea 100644 --- a/package.json +++ b/package.json @@ -49,21 +49,6 @@ "node-fetch": "^2.6.7", "underscore@npm": "^1.13.2" }, - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ], - "rules": { - "body-leading-blank": [ - 2, - "always" - ], - "footer-leading-blank": [ - 2, - "always" - ] - } - }, "scripts": { "depcheck": "depcheck .", "changelog": "conventional-changelog --infile CHANGELOG.md --same-file --release-count 0 && prettier --write CHANGELOG.md",