feat: adding linter for commits
This commit is contained in:
15
node_modules/@commitlint/rules/lib/footer-min-length.js
generated
vendored
Normal file
15
node_modules/@commitlint/rules/lib/footer-min-length.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.footerMinLength = void 0;
|
||||
const ensure_1 = require("@commitlint/ensure");
|
||||
const footerMinLength = (parsed, _when = undefined, value = 0) => {
|
||||
if (!parsed.footer) {
|
||||
return [true];
|
||||
}
|
||||
return [
|
||||
(0, ensure_1.minLength)(parsed.footer, value),
|
||||
`footer must not be shorter than ${value} characters`,
|
||||
];
|
||||
};
|
||||
exports.footerMinLength = footerMinLength;
|
||||
//# sourceMappingURL=footer-min-length.js.map
|
Reference in New Issue
Block a user