feat: adding linter for commits

This commit is contained in:
Carlos Gutierrez
2021-11-22 09:39:27 -06:00
commit 2c7c117aa1
3093 changed files with 1215197 additions and 0 deletions

View File

@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.subjectMaxLength = void 0;
const ensure_1 = require("@commitlint/ensure");
const subjectMaxLength = (parsed, _when = undefined, value = 0) => {
const input = parsed.subject;
if (!input) {
return [true];
}
return [
(0, ensure_1.maxLength)(input, value),
`subject must not be longer than ${value} characters`,
];
};
exports.subjectMaxLength = subjectMaxLength;
//# sourceMappingURL=subject-max-length.js.map