diff options
author | sualko <klaus@jsxc.org> | 2018-10-02 17:16:35 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2018-10-02 17:16:35 +0300 |
commit | 00b15bef3206f1fe6fd661393d574b014afdfd76 (patch) | |
tree | 38a5e9a5b785fea6dcf6a6cddc6a7f87426a2125 /scripts | |
parent | 675ed42ee09ee362990bf0b30364eee623090a86 (diff) |
chore: add commit lint as commit message hook
require Conventional Commits from now on
see https://www.conventionalcommits.org
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/print-commitlint-info.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/print-commitlint-info.js b/scripts/print-commitlint-info.js new file mode 100644 index 00000000..e94fb48f --- /dev/null +++ b/scripts/print-commitlint-info.js @@ -0,0 +1,8 @@ +require('colors'); +const config = require('../.commitlintrc.json'); + +console.log(` +✖ See https://www.conventionalcommits.org/ for more details. + Allowed types: ${config.rules['type-enum'][2].join(', ')}`.red); + +process.exit(1); |