conventional-changelog-lint
Version:
Lint commit messages against a conventional-changelog preset and ruleset
17 lines (11 loc) • 518 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
var _ensureMaxLength = require('../library/ensure-max-length');
var _ensureMaxLength2 = _interopRequireDefault(_ensureMaxLength);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function (parsed, when, value) {
return [(0, _ensureMaxLength2.default)(parsed.header, value), `header must not be longer than ${value} characters`];
};
module.exports = exports['default'];
;