From 4a4c95a516ee30c1fcbded3c86f7d6894160b2bb Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Mon, 15 Feb 2021 21:48:50 +0800 Subject: [PATCH] chore: add commitlint configuration Based on https://commitlint.js.org/#/reference-configuration --- commitlint.config.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 commitlint.config.js diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..252a9ad --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,15 @@ +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-max-line-length': [1, 'always', 80], + }, +}; + +module.exports = Configuration;