UNPKG

conventional-changelog-lint

Version:

Lint commit messages against a conventional-changelog preset and ruleset

17 lines (11 loc) 519 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _ensureMinLength = require('../library/ensure-min-length'); var _ensureMinLength2 = _interopRequireDefault(_ensureMinLength); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = function (parsed, when, value) { return [(0, _ensureMinLength2.default)(parsed.header, value), `header must not be shorter than ${value} characters`]; }; module.exports = exports['default'];