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

3
node_modules/@commitlint/rules/lib/body-case.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
import { TargetCaseType, SyncRule } from '@commitlint/types';
export declare const bodyCase: SyncRule<TargetCaseType | TargetCaseType[]>;
//# sourceMappingURL=body-case.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"body-case.d.ts","sourceRoot":"","sources":["../src/body-case.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAI3D,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,cAAc,GAAG,cAAc,EAAE,CAgChE,CAAC"}

35
node_modules/@commitlint/rules/lib/body-case.js generated vendored Normal file
View File

@ -0,0 +1,35 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.bodyCase = void 0;
const ensure_1 = require("@commitlint/ensure");
const message_1 = __importDefault(require("@commitlint/message"));
const negated = (when) => when === 'never';
const bodyCase = (parsed, when = 'always', value = []) => {
const { body } = parsed;
if (!body) {
return [true];
}
const checks = (Array.isArray(value) ? value : [value]).map((check) => {
if (typeof check === 'string') {
return {
when: 'always',
case: check,
};
}
return check;
});
const result = checks.some((check) => {
const r = (0, ensure_1.case)(body, check.case);
return negated(check.when) ? !r : r;
});
const list = checks.map((c) => c.case).join(', ');
return [
negated(when) ? !result : result,
(0, message_1.default)([`body must`, negated(when) ? `not` : null, `be ${list}`]),
];
};
exports.bodyCase = bodyCase;
//# sourceMappingURL=body-case.js.map

1
node_modules/@commitlint/rules/lib/body-case.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"body-case.js","sourceRoot":"","sources":["../src/body-case.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAsD;AACtD,kEAA0C;AAG1C,MAAM,OAAO,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,CAAC;AAE7C,MAAM,QAAQ,GAAgD,CACpE,MAAM,EACN,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACT,EAAE;IACH,MAAM,EAAC,IAAI,EAAC,GAAG,MAAM,CAAC;IAEtB,IAAI,CAAC,IAAI,EAAE;QACV,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACrE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC9B,OAAO;gBACN,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,KAAK;aACX,CAAC;SACF;QACD,OAAO,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;QACpC,MAAM,CAAC,GAAG,IAAA,aAAU,EAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QACvC,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAElD,OAAO;QACN,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;QAChC,IAAA,iBAAO,EAAC,CAAC,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;KAClE,CAAC;AACH,CAAC,CAAC;AAhCW,QAAA,QAAQ,YAgCnB"}

3
node_modules/@commitlint/rules/lib/body-empty.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const bodyEmpty: SyncRule;
//# sourceMappingURL=body-empty.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"body-empty.d.ts","sourceRoot":"","sources":["../src/body-empty.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,SAAS,EAAE,QAQvB,CAAC"}

37
node_modules/@commitlint/rules/lib/body-empty.js generated vendored Normal file
View File

@ -0,0 +1,37 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.bodyEmpty = void 0;
const ensure = __importStar(require("@commitlint/ensure"));
const message_1 = __importDefault(require("@commitlint/message"));
const bodyEmpty = (parsed, when = 'always') => {
const negated = when === 'never';
const notEmpty = ensure.notEmpty(parsed.body || '');
return [
negated ? notEmpty : !notEmpty,
(0, message_1.default)(['body', negated ? 'may not' : 'must', 'be empty']),
];
};
exports.bodyEmpty = bodyEmpty;
//# sourceMappingURL=body-empty.js.map

1
node_modules/@commitlint/rules/lib/body-empty.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"body-empty.js","sourceRoot":"","sources":["../src/body-empty.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA6C;AAC7C,kEAA0C;AAGnC,MAAM,SAAS,GAAa,CAAC,MAAM,EAAE,IAAI,GAAG,QAAQ,EAAE,EAAE;IAC9D,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IACjC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IAEpD,OAAO;QACN,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ;QAC9B,IAAA,iBAAO,EAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;KAC3D,CAAC;AACH,CAAC,CAAC;AARW,QAAA,SAAS,aAQpB"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const bodyFullStop: SyncRule<string>;
//# sourceMappingURL=body-full-stop.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"body-full-stop.d.ts","sourceRoot":"","sources":["../src/body-full-stop.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAkBzC,CAAC"}

21
node_modules/@commitlint/rules/lib/body-full-stop.js generated vendored Normal file
View File

@ -0,0 +1,21 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.bodyFullStop = void 0;
const message_1 = __importDefault(require("@commitlint/message"));
const bodyFullStop = (parsed, when = 'always', value = '.') => {
const input = parsed.body;
if (!input) {
return [true];
}
const negated = when === 'never';
const hasStop = input[input.length - 1] === value;
return [
negated ? !hasStop : hasStop,
(0, message_1.default)(['body', negated ? 'may not' : 'must', 'end with full stop']),
];
};
exports.bodyFullStop = bodyFullStop;
//# sourceMappingURL=body-full-stop.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"body-full-stop.js","sourceRoot":"","sources":["../src/body-full-stop.ts"],"names":[],"mappings":";;;;;;AAAA,kEAA0C;AAGnC,MAAM,YAAY,GAAqB,CAC7C,MAAM,EACN,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,GAAG,EACV,EAAE;IACH,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,KAAK,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IACjC,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,KAAK,CAAC;IAElD,OAAO;QACN,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;QAC5B,IAAA,iBAAO,EAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;KACrE,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,YAAY,gBAkBvB"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const bodyLeadingBlank: SyncRule;
//# sourceMappingURL=body-leading-blank.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"body-leading-blank.d.ts","sourceRoot":"","sources":["../src/body-leading-blank.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,gBAAgB,EAAE,QAgB9B,CAAC"}

View File

@ -0,0 +1,24 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.bodyLeadingBlank = void 0;
const to_lines_1 = __importDefault(require("@commitlint/to-lines"));
const message_1 = __importDefault(require("@commitlint/message"));
const bodyLeadingBlank = (parsed, when) => {
// Flunk if no body is found
if (!parsed.body) {
return [true];
}
const negated = when === 'never';
const [leading] = (0, to_lines_1.default)(parsed.raw).slice(1);
// Check if the first line of body is empty
const succeeds = leading === '';
return [
negated ? !succeeds : succeeds,
(0, message_1.default)(['body', negated ? 'may not' : 'must', 'have leading blank line']),
];
};
exports.bodyLeadingBlank = bodyLeadingBlank;
//# sourceMappingURL=body-leading-blank.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"body-leading-blank.js","sourceRoot":"","sources":["../src/body-leading-blank.ts"],"names":[],"mappings":";;;;;;AAAA,oEAA2C;AAC3C,kEAA0C;AAGnC,MAAM,gBAAgB,GAAa,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE;IAC1D,4BAA4B;IAC5B,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;QACjB,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IACjC,MAAM,CAAC,OAAO,CAAC,GAAG,IAAA,kBAAO,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE/C,2CAA2C;IAC3C,MAAM,QAAQ,GAAG,OAAO,KAAK,EAAE,CAAC;IAEhC,OAAO;QACN,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;QAC9B,IAAA,iBAAO,EAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;KAC1E,CAAC;AACH,CAAC,CAAC;AAhBW,QAAA,gBAAgB,oBAgB3B"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const bodyMaxLength: SyncRule<number>;
//# sourceMappingURL=body-max-length.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"body-max-length.d.ts","sourceRoot":"","sources":["../src/body-max-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAe1C,CAAC"}

16
node_modules/@commitlint/rules/lib/body-max-length.js generated vendored Normal file
View File

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

View File

@ -0,0 +1 @@
{"version":3,"file":"body-max-length.js","sourceRoot":"","sources":["../src/body-max-length.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAGtC,MAAM,aAAa,GAAqB,CAC9C,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,KAAK,GAAG,CAAC,EACR,EAAE;IACH,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,KAAK,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,OAAO;QACN,IAAA,kBAAS,EAAC,KAAK,EAAE,KAAK,CAAC;QACvB,gCAAgC,KAAK,aAAa;KAClD,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,aAAa,iBAexB"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const bodyMaxLineLength: SyncRule<number>;
//# sourceMappingURL=body-max-line-length.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"body-max-line-length.d.ts","sourceRoot":"","sources":["../src/body-max-line-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAe9C,CAAC"}

View File

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

View File

@ -0,0 +1 @@
{"version":3,"file":"body-max-line-length.js","sourceRoot":"","sources":["../src/body-max-line-length.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAG1C,MAAM,iBAAiB,GAAqB,CAClD,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,KAAK,GAAG,CAAC,EACR,EAAE;IACH,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,KAAK,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,OAAO;QACN,IAAA,sBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;QAC3B,wCAAwC,KAAK,aAAa;KAC1D,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,iBAAiB,qBAe5B"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const bodyMinLength: SyncRule<number>;
//# sourceMappingURL=body-min-length.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"body-min-length.d.ts","sourceRoot":"","sources":["../src/body-min-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAa1C,CAAC"}

15
node_modules/@commitlint/rules/lib/body-min-length.js generated vendored Normal file
View File

@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bodyMinLength = void 0;
const ensure_1 = require("@commitlint/ensure");
const bodyMinLength = (parsed, _when = undefined, value = 0) => {
if (!parsed.body) {
return [true];
}
return [
(0, ensure_1.minLength)(parsed.body, value),
`body must not be shorter than ${value} characters`,
];
};
exports.bodyMinLength = bodyMinLength;
//# sourceMappingURL=body-min-length.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"body-min-length.js","sourceRoot":"","sources":["../src/body-min-length.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAGtC,MAAM,aAAa,GAAqB,CAC9C,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,KAAK,GAAG,CAAC,EACR,EAAE;IACH,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;QACjB,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,OAAO;QACN,IAAA,kBAAS,EAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC;QAC7B,iCAAiC,KAAK,aAAa;KACnD,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,aAAa,iBAaxB"}

3
node_modules/@commitlint/rules/lib/footer-empty.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const footerEmpty: SyncRule;
//# sourceMappingURL=footer-empty.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"footer-empty.d.ts","sourceRoot":"","sources":["../src/footer-empty.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,WAAW,EAAE,QAQzB,CAAC"}

37
node_modules/@commitlint/rules/lib/footer-empty.js generated vendored Normal file
View File

@ -0,0 +1,37 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.footerEmpty = void 0;
const ensure = __importStar(require("@commitlint/ensure"));
const message_1 = __importDefault(require("@commitlint/message"));
const footerEmpty = (parsed, when = 'always') => {
const negated = when === 'never';
const notEmpty = ensure.notEmpty(parsed.footer || '');
return [
negated ? notEmpty : !notEmpty,
(0, message_1.default)(['footer', negated ? 'may not' : 'must', 'be empty']),
];
};
exports.footerEmpty = footerEmpty;
//# sourceMappingURL=footer-empty.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"footer-empty.js","sourceRoot":"","sources":["../src/footer-empty.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA6C;AAC7C,kEAA0C;AAGnC,MAAM,WAAW,GAAa,CAAC,MAAM,EAAE,IAAI,GAAG,QAAQ,EAAE,EAAE;IAChE,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IACjC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAEtD,OAAO;QACN,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ;QAC9B,IAAA,iBAAO,EAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;KAC7D,CAAC;AACH,CAAC,CAAC;AARW,QAAA,WAAW,eAQtB"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const footerLeadingBlank: SyncRule;
//# sourceMappingURL=footer-leading-blank.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"footer-leading-blank.d.ts","sourceRoot":"","sources":["../src/footer-leading-blank.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,kBAAkB,EAAE,QAuBhC,CAAC"}

View File

@ -0,0 +1,31 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.footerLeadingBlank = void 0;
const to_lines_1 = __importDefault(require("@commitlint/to-lines"));
const message_1 = __importDefault(require("@commitlint/message"));
const footerLeadingBlank = (parsed, when = 'always') => {
// Flunk if no footer is found
if (!parsed.footer) {
return [true];
}
const negated = when === 'never';
const rawLines = (0, to_lines_1.default)(parsed.raw);
const bodyLines = parsed.body ? (0, to_lines_1.default)(parsed.body) : [];
const bodyOffset = bodyLines.length > 0 ? rawLines.indexOf(bodyLines[0]) : 1;
const [leading] = rawLines.slice(bodyLines.length + bodyOffset);
// Check if the first line of footer is empty
const succeeds = leading === '';
return [
negated ? !succeeds : succeeds,
(0, message_1.default)([
'footer',
negated ? 'may not' : 'must',
'have leading blank line',
]),
];
};
exports.footerLeadingBlank = footerLeadingBlank;
//# sourceMappingURL=footer-leading-blank.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"footer-leading-blank.js","sourceRoot":"","sources":["../src/footer-leading-blank.ts"],"names":[],"mappings":";;;;;;AAAA,oEAA2C;AAC3C,kEAA0C;AAGnC,MAAM,kBAAkB,GAAa,CAAC,MAAM,EAAE,IAAI,GAAG,QAAQ,EAAE,EAAE;IACvE,8BAA8B;IAC9B,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;QACnB,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IACjC,MAAM,QAAQ,GAAG,IAAA,kBAAO,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,kBAAO,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1D,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7E,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC;IAEhE,6CAA6C;IAC7C,MAAM,QAAQ,GAAG,OAAO,KAAK,EAAE,CAAC;IAEhC,OAAO;QACN,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;QAC9B,IAAA,iBAAO,EAAC;YACP,QAAQ;YACR,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;YAC5B,yBAAyB;SACzB,CAAC;KACF,CAAC;AACH,CAAC,CAAC;AAvBW,QAAA,kBAAkB,sBAuB7B"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const footerMaxLength: SyncRule<number>;
//# sourceMappingURL=footer-max-length.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"footer-max-length.d.ts","sourceRoot":"","sources":["../src/footer-max-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAe5C,CAAC"}

View File

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

View File

@ -0,0 +1 @@
{"version":3,"file":"footer-max-length.js","sourceRoot":"","sources":["../src/footer-max-length.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAGtC,MAAM,eAAe,GAAqB,CAChD,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,KAAK,GAAG,CAAC,EACR,EAAE;IACH,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IAE5B,IAAI,CAAC,KAAK,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,OAAO;QACN,IAAA,kBAAS,EAAC,KAAK,EAAE,KAAK,CAAC;QACvB,kCAAkC,KAAK,aAAa;KACpD,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,eAAe,mBAe1B"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const footerMaxLineLength: SyncRule<number>;
//# sourceMappingURL=footer-max-line-length.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"footer-max-line-length.d.ts","sourceRoot":"","sources":["../src/footer-max-line-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAehD,CAAC"}

View File

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

View File

@ -0,0 +1 @@
{"version":3,"file":"footer-max-line-length.js","sourceRoot":"","sources":["../src/footer-max-line-length.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAG1C,MAAM,mBAAmB,GAAqB,CACpD,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,KAAK,GAAG,CAAC,EACR,EAAE;IACH,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IAE5B,IAAI,CAAC,KAAK,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,OAAO;QACN,IAAA,sBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;QAC3B,0CAA0C,KAAK,aAAa;KAC5D,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,mBAAmB,uBAe9B"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const footerMinLength: SyncRule<number>;
//# sourceMappingURL=footer-min-length.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"footer-min-length.d.ts","sourceRoot":"","sources":["../src/footer-min-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAa5C,CAAC"}

View 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

View File

@ -0,0 +1 @@
{"version":3,"file":"footer-min-length.js","sourceRoot":"","sources":["../src/footer-min-length.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAGtC,MAAM,eAAe,GAAqB,CAChD,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,KAAK,GAAG,CAAC,EACR,EAAE;IACH,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;QACnB,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,OAAO;QACN,IAAA,kBAAS,EAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;QAC/B,mCAAmC,KAAK,aAAa;KACrD,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,eAAe,mBAa1B"}

3
node_modules/@commitlint/rules/lib/header-case.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
import { TargetCaseType, SyncRule } from '@commitlint/types';
export declare const headerCase: SyncRule<TargetCaseType | TargetCaseType[]>;
//# sourceMappingURL=header-case.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"header-case.d.ts","sourceRoot":"","sources":["../src/header-case.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAI3D,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,cAAc,GAAG,cAAc,EAAE,CAgClE,CAAC"}

35
node_modules/@commitlint/rules/lib/header-case.js generated vendored Normal file
View File

@ -0,0 +1,35 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.headerCase = void 0;
const ensure_1 = require("@commitlint/ensure");
const message_1 = __importDefault(require("@commitlint/message"));
const negated = (when) => when === 'never';
const headerCase = (parsed, when = 'always', value = []) => {
const { header } = parsed;
if (typeof header !== 'string' || !header.match(/^[a-z]/i)) {
return [true];
}
const checks = (Array.isArray(value) ? value : [value]).map((check) => {
if (typeof check === 'string') {
return {
when: 'always',
case: check,
};
}
return check;
});
const result = checks.some((check) => {
const r = (0, ensure_1.case)(header, check.case);
return negated(check.when) ? !r : r;
});
const list = checks.map((c) => c.case).join(', ');
return [
negated(when) ? !result : result,
(0, message_1.default)([`header must`, negated(when) ? `not` : null, `be ${list}`]),
];
};
exports.headerCase = headerCase;
//# sourceMappingURL=header-case.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"header-case.js","sourceRoot":"","sources":["../src/header-case.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAsD;AACtD,kEAA0C;AAG1C,MAAM,OAAO,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,CAAC;AAE7C,MAAM,UAAU,GAAgD,CACtE,MAAM,EACN,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACT,EAAE;IACH,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,CAAC;IAExB,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE;QAC3D,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACrE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC9B,OAAO;gBACN,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,KAAK;aACX,CAAC;SACF;QACD,OAAO,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;QACpC,MAAM,CAAC,GAAG,IAAA,aAAU,EAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QACzC,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAElD,OAAO;QACN,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;QAChC,IAAA,iBAAO,EAAC,CAAC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;KACpE,CAAC;AACH,CAAC,CAAC;AAhCW,QAAA,UAAU,cAgCrB"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const headerFullStop: SyncRule<string>;
//# sourceMappingURL=header-full-stop.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"header-full-stop.d.ts","sourceRoot":"","sources":["../src/header-full-stop.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAa3C,CAAC"}

18
node_modules/@commitlint/rules/lib/header-full-stop.js generated vendored Normal file
View File

@ -0,0 +1,18 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.headerFullStop = void 0;
const message_1 = __importDefault(require("@commitlint/message"));
const headerFullStop = (parsed, when = 'always', value = '.') => {
const { header } = parsed;
const negated = when === 'never';
const hasStop = header[header.length - 1] === value;
return [
negated ? !hasStop : hasStop,
(0, message_1.default)(['header', negated ? 'may not' : 'must', 'end with full stop']),
];
};
exports.headerFullStop = headerFullStop;
//# sourceMappingURL=header-full-stop.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"header-full-stop.js","sourceRoot":"","sources":["../src/header-full-stop.ts"],"names":[],"mappings":";;;;;;AAAA,kEAA0C;AAGnC,MAAM,cAAc,GAAqB,CAC/C,MAAM,EACN,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,GAAG,EACV,EAAE;IACH,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,CAAC;IACxB,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IACjC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,KAAK,CAAC;IAEpD,OAAO;QACN,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;QAC5B,IAAA,iBAAO,EAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;KACvE,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,cAAc,kBAazB"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const headerMaxLength: SyncRule<number>;
//# sourceMappingURL=header-max-length.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"header-max-length.d.ts","sourceRoot":"","sources":["../src/header-max-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAS5C,CAAC"}

View File

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

View File

@ -0,0 +1 @@
{"version":3,"file":"header-max-length.js","sourceRoot":"","sources":["../src/header-max-length.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAGtC,MAAM,eAAe,GAAqB,CAChD,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,KAAK,GAAG,CAAC,EACR,EAAE;IACH,OAAO;QACN,IAAA,kBAAS,EAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;QAC/B,kCAAkC,KAAK,kCAAkC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;KAC/F,CAAC;AACH,CAAC,CAAC;AATW,QAAA,eAAe,mBAS1B"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const headerMinLength: SyncRule<number>;
//# sourceMappingURL=header-min-length.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"header-min-length.d.ts","sourceRoot":"","sources":["../src/header-min-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAS5C,CAAC"}

View File

@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.headerMinLength = void 0;
const ensure_1 = require("@commitlint/ensure");
const headerMinLength = (parsed, _when = undefined, value = 0) => {
return [
(0, ensure_1.minLength)(parsed.header, value),
`header must not be shorter than ${value} characters, current length is ${parsed.header.length}`,
];
};
exports.headerMinLength = headerMinLength;
//# sourceMappingURL=header-min-length.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"header-min-length.js","sourceRoot":"","sources":["../src/header-min-length.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAGtC,MAAM,eAAe,GAAqB,CAChD,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,KAAK,GAAG,CAAC,EACR,EAAE;IACH,OAAO;QACN,IAAA,kBAAS,EAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;QAC/B,mCAAmC,KAAK,kCAAkC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;KAChG,CAAC;AACH,CAAC,CAAC;AATW,QAAA,eAAe,mBAS1B"}

39
node_modules/@commitlint/rules/lib/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,39 @@
declare const _default: {
'body-case': import("@commitlint/types").SyncRule<import("@commitlint/types").TargetCaseType | import("@commitlint/types").TargetCaseType[]>;
'body-empty': import("@commitlint/types").SyncRule<never>;
'body-full-stop': import("@commitlint/types").SyncRule<string>;
'body-leading-blank': import("@commitlint/types").SyncRule<never>;
'body-max-length': import("@commitlint/types").SyncRule<number>;
'body-max-line-length': import("@commitlint/types").SyncRule<number>;
'body-min-length': import("@commitlint/types").SyncRule<number>;
'footer-empty': import("@commitlint/types").SyncRule<never>;
'footer-leading-blank': import("@commitlint/types").SyncRule<never>;
'footer-max-length': import("@commitlint/types").SyncRule<number>;
'footer-max-line-length': import("@commitlint/types").SyncRule<number>;
'footer-min-length': import("@commitlint/types").SyncRule<number>;
'header-case': import("@commitlint/types").SyncRule<import("@commitlint/types").TargetCaseType | import("@commitlint/types").TargetCaseType[]>;
'header-full-stop': import("@commitlint/types").SyncRule<string>;
'header-max-length': import("@commitlint/types").SyncRule<number>;
'header-min-length': import("@commitlint/types").SyncRule<number>;
'references-empty': import("@commitlint/types").SyncRule<never>;
'scope-case': import("@commitlint/types").SyncRule<import("@commitlint/types").TargetCaseType | import("@commitlint/types").TargetCaseType[]>;
'scope-empty': import("@commitlint/types").SyncRule<never>;
'scope-enum': import("@commitlint/types").SyncRule<string[]>;
'scope-max-length': import("@commitlint/types").SyncRule<number>;
'scope-min-length': import("@commitlint/types").SyncRule<number>;
'signed-off-by': import("@commitlint/types").SyncRule<string>;
'subject-case': import("@commitlint/types").SyncRule<import("@commitlint/types").TargetCaseType | import("@commitlint/types").TargetCaseType[]>;
'subject-empty': import("@commitlint/types").SyncRule<never>;
'subject-full-stop': import("@commitlint/types").SyncRule<string>;
'subject-max-length': import("@commitlint/types").SyncRule<number>;
'subject-min-length': import("@commitlint/types").SyncRule<number>;
'subject-exclamation-mark': import("@commitlint/types").SyncRule<never>;
'trailer-exists': import("@commitlint/types").SyncRule<string>;
'type-case': import("@commitlint/types").SyncRule<import("@commitlint/types").TargetCaseType | import("@commitlint/types").TargetCaseType[]>;
'type-empty': import("@commitlint/types").SyncRule<never>;
'type-enum': import("@commitlint/types").SyncRule<string[]>;
'type-max-length': import("@commitlint/types").SyncRule<number>;
'type-min-length': import("@commitlint/types").SyncRule<number>;
};
export default _default;
//# sourceMappingURL=index.d.ts.map

1
node_modules/@commitlint/rules/lib/index.d.ts.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,wBAoCE"}

75
node_modules/@commitlint/rules/lib/index.js generated vendored Normal file
View File

@ -0,0 +1,75 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const body_case_1 = require("./body-case");
const body_empty_1 = require("./body-empty");
const body_full_stop_1 = require("./body-full-stop");
const body_leading_blank_1 = require("./body-leading-blank");
const body_max_length_1 = require("./body-max-length");
const body_max_line_length_1 = require("./body-max-line-length");
const body_min_length_1 = require("./body-min-length");
const footer_empty_1 = require("./footer-empty");
const footer_leading_blank_1 = require("./footer-leading-blank");
const footer_max_length_1 = require("./footer-max-length");
const footer_max_line_length_1 = require("./footer-max-line-length");
const footer_min_length_1 = require("./footer-min-length");
const header_case_1 = require("./header-case");
const header_full_stop_1 = require("./header-full-stop");
const header_max_length_1 = require("./header-max-length");
const header_min_length_1 = require("./header-min-length");
const references_empty_1 = require("./references-empty");
const scope_case_1 = require("./scope-case");
const scope_empty_1 = require("./scope-empty");
const scope_enum_1 = require("./scope-enum");
const scope_max_length_1 = require("./scope-max-length");
const scope_min_length_1 = require("./scope-min-length");
const signed_off_by_1 = require("./signed-off-by");
const subject_case_1 = require("./subject-case");
const subject_empty_1 = require("./subject-empty");
const subject_full_stop_1 = require("./subject-full-stop");
const subject_max_length_1 = require("./subject-max-length");
const subject_min_length_1 = require("./subject-min-length");
const subject_exclamation_mark_1 = require("./subject-exclamation-mark");
const trailer_exists_1 = require("./trailer-exists");
const type_case_1 = require("./type-case");
const type_empty_1 = require("./type-empty");
const type_enum_1 = require("./type-enum");
const type_max_length_1 = require("./type-max-length");
const type_min_length_1 = require("./type-min-length");
exports.default = {
'body-case': body_case_1.bodyCase,
'body-empty': body_empty_1.bodyEmpty,
'body-full-stop': body_full_stop_1.bodyFullStop,
'body-leading-blank': body_leading_blank_1.bodyLeadingBlank,
'body-max-length': body_max_length_1.bodyMaxLength,
'body-max-line-length': body_max_line_length_1.bodyMaxLineLength,
'body-min-length': body_min_length_1.bodyMinLength,
'footer-empty': footer_empty_1.footerEmpty,
'footer-leading-blank': footer_leading_blank_1.footerLeadingBlank,
'footer-max-length': footer_max_length_1.footerMaxLength,
'footer-max-line-length': footer_max_line_length_1.footerMaxLineLength,
'footer-min-length': footer_min_length_1.footerMinLength,
'header-case': header_case_1.headerCase,
'header-full-stop': header_full_stop_1.headerFullStop,
'header-max-length': header_max_length_1.headerMaxLength,
'header-min-length': header_min_length_1.headerMinLength,
'references-empty': references_empty_1.referencesEmpty,
'scope-case': scope_case_1.scopeCase,
'scope-empty': scope_empty_1.scopeEmpty,
'scope-enum': scope_enum_1.scopeEnum,
'scope-max-length': scope_max_length_1.scopeMaxLength,
'scope-min-length': scope_min_length_1.scopeMinLength,
'signed-off-by': signed_off_by_1.signedOffBy,
'subject-case': subject_case_1.subjectCase,
'subject-empty': subject_empty_1.subjectEmpty,
'subject-full-stop': subject_full_stop_1.subjectFullStop,
'subject-max-length': subject_max_length_1.subjectMaxLength,
'subject-min-length': subject_min_length_1.subjectMinLength,
'subject-exclamation-mark': subject_exclamation_mark_1.subjectExclamationMark,
'trailer-exists': trailer_exists_1.trailerExists,
'type-case': type_case_1.typeCase,
'type-empty': type_empty_1.typeEmpty,
'type-enum': type_enum_1.typeEnum,
'type-max-length': type_max_length_1.typeMaxLength,
'type-min-length': type_min_length_1.typeMinLength,
};
//# sourceMappingURL=index.js.map

1
node_modules/@commitlint/rules/lib/index.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,2CAAqC;AACrC,6CAAuC;AACvC,qDAA8C;AAC9C,6DAAsD;AACtD,uDAAgD;AAChD,iEAAyD;AACzD,uDAAgD;AAChD,iDAA2C;AAC3C,iEAA0D;AAC1D,2DAAoD;AACpD,qEAA6D;AAC7D,2DAAoD;AACpD,+CAAyC;AACzC,yDAAkD;AAClD,2DAAoD;AACpD,2DAAoD;AACpD,yDAAmD;AACnD,6CAAuC;AACvC,+CAAyC;AACzC,6CAAuC;AACvC,yDAAkD;AAClD,yDAAkD;AAClD,mDAA4C;AAC5C,iDAA2C;AAC3C,mDAA6C;AAC7C,2DAAoD;AACpD,6DAAsD;AACtD,6DAAsD;AACtD,yEAAkE;AAClE,qDAA+C;AAC/C,2CAAqC;AACrC,6CAAuC;AACvC,2CAAqC;AACrC,uDAAgD;AAChD,uDAAgD;AAEhD,kBAAe;IACd,WAAW,EAAE,oBAAQ;IACrB,YAAY,EAAE,sBAAS;IACvB,gBAAgB,EAAE,6BAAY;IAC9B,oBAAoB,EAAE,qCAAgB;IACtC,iBAAiB,EAAE,+BAAa;IAChC,sBAAsB,EAAE,wCAAiB;IACzC,iBAAiB,EAAE,+BAAa;IAChC,cAAc,EAAE,0BAAW;IAC3B,sBAAsB,EAAE,yCAAkB;IAC1C,mBAAmB,EAAE,mCAAe;IACpC,wBAAwB,EAAE,4CAAmB;IAC7C,mBAAmB,EAAE,mCAAe;IACpC,aAAa,EAAE,wBAAU;IACzB,kBAAkB,EAAE,iCAAc;IAClC,mBAAmB,EAAE,mCAAe;IACpC,mBAAmB,EAAE,mCAAe;IACpC,kBAAkB,EAAE,kCAAe;IACnC,YAAY,EAAE,sBAAS;IACvB,aAAa,EAAE,wBAAU;IACzB,YAAY,EAAE,sBAAS;IACvB,kBAAkB,EAAE,iCAAc;IAClC,kBAAkB,EAAE,iCAAc;IAClC,eAAe,EAAE,2BAAW;IAC5B,cAAc,EAAE,0BAAW;IAC3B,eAAe,EAAE,4BAAY;IAC7B,mBAAmB,EAAE,mCAAe;IACpC,oBAAoB,EAAE,qCAAgB;IACtC,oBAAoB,EAAE,qCAAgB;IACtC,0BAA0B,EAAE,iDAAsB;IAClD,gBAAgB,EAAE,8BAAa;IAC/B,WAAW,EAAE,oBAAQ;IACrB,YAAY,EAAE,sBAAS;IACvB,WAAW,EAAE,oBAAQ;IACrB,iBAAiB,EAAE,+BAAa;IAChC,iBAAiB,EAAE,+BAAa;CAChC,CAAC"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const referencesEmpty: SyncRule;
//# sourceMappingURL=references-empty.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"references-empty.d.ts","sourceRoot":"","sources":["../src/references-empty.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,eAAe,EAAE,QAO7B,CAAC"}

17
node_modules/@commitlint/rules/lib/references-empty.js generated vendored Normal file
View File

@ -0,0 +1,17 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.referencesEmpty = void 0;
const message_1 = __importDefault(require("@commitlint/message"));
const referencesEmpty = (parsed, when = 'never') => {
const negated = when === 'always';
const notEmpty = parsed.references.length > 0;
return [
negated ? !notEmpty : notEmpty,
(0, message_1.default)(['references', negated ? 'must' : 'may not', 'be empty']),
];
};
exports.referencesEmpty = referencesEmpty;
//# sourceMappingURL=references-empty.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"references-empty.js","sourceRoot":"","sources":["../src/references-empty.ts"],"names":[],"mappings":";;;;;;AAAA,kEAA0C;AAGnC,MAAM,eAAe,GAAa,CAAC,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE,EAAE;IACnE,MAAM,OAAO,GAAG,IAAI,KAAK,QAAQ,CAAC;IAClC,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;IAC9C,OAAO;QACN,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;QAC9B,IAAA,iBAAO,EAAC,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;KACjE,CAAC;AACH,CAAC,CAAC;AAPW,QAAA,eAAe,mBAO1B"}

3
node_modules/@commitlint/rules/lib/scope-case.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
import { TargetCaseType, SyncRule } from '@commitlint/types';
export declare const scopeCase: SyncRule<TargetCaseType | TargetCaseType[]>;
//# sourceMappingURL=scope-case.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"scope-case.d.ts","sourceRoot":"","sources":["../src/scope-case.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAI3D,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,cAAc,GAAG,cAAc,EAAE,CAwCjE,CAAC"}

39
node_modules/@commitlint/rules/lib/scope-case.js generated vendored Normal file
View File

@ -0,0 +1,39 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.scopeCase = void 0;
const ensure_1 = require("@commitlint/ensure");
const message_1 = __importDefault(require("@commitlint/message"));
const negated = (when) => when === 'never';
const scopeCase = (parsed, when = 'always', value = []) => {
const { scope } = parsed;
if (!scope) {
return [true];
}
const checks = (Array.isArray(value) ? value : [value]).map((check) => {
if (typeof check === 'string') {
return {
when: 'always',
case: check,
};
}
return check;
});
// Scopes may contain slash or comma delimiters to separate them and mark them as individual segments.
// This means that each of these segments should be tested separately with `ensure`.
const delimiters = /\/|\\|,/g;
const scopeSegments = scope.split(delimiters);
const result = checks.some((check) => {
const r = scopeSegments.every((segment) => delimiters.test(segment) || (0, ensure_1.case)(segment, check.case));
return negated(check.when) ? !r : r;
});
const list = checks.map((c) => c.case).join(', ');
return [
negated(when) ? !result : result,
(0, message_1.default)([`scope must`, negated(when) ? `not` : null, `be ${list}`]),
];
};
exports.scopeCase = scopeCase;
//# sourceMappingURL=scope-case.js.map

1
node_modules/@commitlint/rules/lib/scope-case.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"scope-case.js","sourceRoot":"","sources":["../src/scope-case.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAsD;AACtD,kEAA0C;AAG1C,MAAM,OAAO,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,CAAC;AAE7C,MAAM,SAAS,GAAgD,CACrE,MAAM,EACN,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACT,EAAE;IACH,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,CAAC;IAEvB,IAAI,CAAC,KAAK,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACrE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC9B,OAAO;gBACN,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,KAAK;aACX,CAAC;SACF;QACD,OAAO,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IAEH,sGAAsG;IACtG,oFAAoF;IACpF,MAAM,UAAU,GAAG,UAAU,CAAC;IAC9B,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAE9C,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;QACpC,MAAM,CAAC,GAAG,aAAa,CAAC,KAAK,CAC5B,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,IAAA,aAAU,EAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CACxE,CAAC;QAEF,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAElD,OAAO;QACN,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;QAChC,IAAA,iBAAO,EAAC,CAAC,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;KACnE,CAAC;AACH,CAAC,CAAC;AAxCW,QAAA,SAAS,aAwCpB"}

3
node_modules/@commitlint/rules/lib/scope-empty.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const scopeEmpty: SyncRule;
//# sourceMappingURL=scope-empty.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"scope-empty.d.ts","sourceRoot":"","sources":["../src/scope-empty.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,UAAU,EAAE,QAOxB,CAAC"}

37
node_modules/@commitlint/rules/lib/scope-empty.js generated vendored Normal file
View File

@ -0,0 +1,37 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.scopeEmpty = void 0;
const ensure = __importStar(require("@commitlint/ensure"));
const message_1 = __importDefault(require("@commitlint/message"));
const scopeEmpty = (parsed, when = 'never') => {
const negated = when === 'always';
const notEmpty = ensure.notEmpty(parsed.scope || '');
return [
negated ? !notEmpty : notEmpty,
(0, message_1.default)(['scope', negated ? 'must' : 'may not', 'be empty']),
];
};
exports.scopeEmpty = scopeEmpty;
//# sourceMappingURL=scope-empty.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"scope-empty.js","sourceRoot":"","sources":["../src/scope-empty.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA6C;AAC7C,kEAA0C;AAGnC,MAAM,UAAU,GAAa,CAAC,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE,EAAE;IAC9D,MAAM,OAAO,GAAG,IAAI,KAAK,QAAQ,CAAC;IAClC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IACrD,OAAO;QACN,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;QAC9B,IAAA,iBAAO,EAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;KAC5D,CAAC;AACH,CAAC,CAAC;AAPW,QAAA,UAAU,cAOrB"}

3
node_modules/@commitlint/rules/lib/scope-enum.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const scopeEnum: SyncRule<string[]>;
//# sourceMappingURL=scope-enum.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"scope-enum.d.ts","sourceRoot":"","sources":["../src/scope-enum.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,EAAE,CA2BxC,CAAC"}

49
node_modules/@commitlint/rules/lib/scope-enum.js generated vendored Normal file
View File

@ -0,0 +1,49 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.scopeEnum = void 0;
const ensure = __importStar(require("@commitlint/ensure"));
const message_1 = __importDefault(require("@commitlint/message"));
const scopeEnum = (parsed, when = 'always', value = []) => {
if (!parsed.scope) {
return [true, ''];
}
// Scopes may contain slash or comma delimiters to separate them and mark them as individual segments.
// This means that each of these segments should be tested separately with `ensure`.
const delimiters = /\/|\\|,/g;
const scopeSegments = parsed.scope.split(delimiters);
const negated = when === 'never';
const result = value.length === 0 ||
scopeSegments.every((scope) => ensure.enum(scope, value));
return [
negated ? !result : result,
(0, message_1.default)([
`scope must`,
negated ? `not` : null,
`be one of [${value.join(', ')}]`,
]),
];
};
exports.scopeEnum = scopeEnum;
//# sourceMappingURL=scope-enum.js.map

1
node_modules/@commitlint/rules/lib/scope-enum.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"scope-enum.js","sourceRoot":"","sources":["../src/scope-enum.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA6C;AAC7C,kEAA0C;AAGnC,MAAM,SAAS,GAAuB,CAC5C,MAAM,EACN,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACT,EAAE;IACH,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;QAClB,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;KAClB;IAED,sGAAsG;IACtG,oFAAoF;IACpF,MAAM,UAAU,GAAG,UAAU,CAAC;IAC9B,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAErD,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IACjC,MAAM,MAAM,GACX,KAAK,CAAC,MAAM,KAAK,CAAC;QAClB,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IAE3D,OAAO;QACN,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;QAC1B,IAAA,iBAAO,EAAC;YACP,YAAY;YACZ,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;YACtB,cAAc,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;SACjC,CAAC;KACF,CAAC;AACH,CAAC,CAAC;AA3BW,QAAA,SAAS,aA2BpB"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const scopeMaxLength: SyncRule<number>;
//# sourceMappingURL=scope-max-length.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"scope-max-length.d.ts","sourceRoot":"","sources":["../src/scope-max-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAe3C,CAAC"}

16
node_modules/@commitlint/rules/lib/scope-max-length.js generated vendored Normal file
View File

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

View File

@ -0,0 +1 @@
{"version":3,"file":"scope-max-length.js","sourceRoot":"","sources":["../src/scope-max-length.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAGtC,MAAM,cAAc,GAAqB,CAC/C,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,KAAK,GAAG,CAAC,EACR,EAAE;IACH,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;IAE3B,IAAI,CAAC,KAAK,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,OAAO;QACN,IAAA,kBAAS,EAAC,KAAK,EAAE,KAAK,CAAC;QACvB,iCAAiC,KAAK,aAAa;KACnD,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,cAAc,kBAezB"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const scopeMinLength: SyncRule<number>;
//# sourceMappingURL=scope-min-length.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"scope-min-length.d.ts","sourceRoot":"","sources":["../src/scope-min-length.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAa3C,CAAC"}

16
node_modules/@commitlint/rules/lib/scope-min-length.js generated vendored Normal file
View File

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

View File

@ -0,0 +1 @@
{"version":3,"file":"scope-min-length.js","sourceRoot":"","sources":["../src/scope-min-length.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAGtC,MAAM,cAAc,GAAqB,CAC/C,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,KAAK,GAAG,CAAC,EACR,EAAE;IACH,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,KAAK,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IACD,OAAO;QACN,IAAA,kBAAS,EAAC,KAAK,EAAE,KAAK,CAAC;QACvB,kCAAkC,KAAK,aAAa;KACpD,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,cAAc,kBAazB"}

View File

@ -0,0 +1,3 @@
import { SyncRule } from '@commitlint/types';
export declare const signedOffBy: SyncRule<string>;
//# sourceMappingURL=signed-off-by.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"signed-off-by.d.ts","sourceRoot":"","sources":["../src/signed-off-by.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAsBxC,CAAC"}

24
node_modules/@commitlint/rules/lib/signed-off-by.js generated vendored Normal file
View File

@ -0,0 +1,24 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.signedOffBy = void 0;
const message_1 = __importDefault(require("@commitlint/message"));
const to_lines_1 = __importDefault(require("@commitlint/to-lines"));
const signedOffBy = (parsed, when = 'always', value = '') => {
const lines = (0, to_lines_1.default)(parsed.raw).filter((ln) =>
// skip comments
!ln.startsWith('#') &&
// ignore empty lines
Boolean(ln));
const last = lines[lines.length - 1];
const negated = when === 'never';
const hasSignedOffBy = last.startsWith(value);
return [
negated ? !hasSignedOffBy : hasSignedOffBy,
(0, message_1.default)(['message', negated ? 'must not' : 'must', 'be signed off']),
];
};
exports.signedOffBy = signedOffBy;
//# sourceMappingURL=signed-off-by.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"signed-off-by.js","sourceRoot":"","sources":["../src/signed-off-by.ts"],"names":[],"mappings":";;;;;;AAAA,kEAA0C;AAC1C,oEAA2C;AAGpC,MAAM,WAAW,GAAqB,CAC5C,MAAM,EACN,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACT,EAAE;IACH,MAAM,KAAK,GAAG,IAAA,kBAAO,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CACvC,CAAC,EAAE,EAAE,EAAE;IACN,gBAAgB;IAChB,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QACnB,qBAAqB;QACrB,OAAO,CAAC,EAAE,CAAC,CACZ,CAAC;IAEF,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAErC,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC;IACjC,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO;QACN,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc;QAC1C,IAAA,iBAAO,EAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;KACpE,CAAC;AACH,CAAC,CAAC;AAtBW,QAAA,WAAW,eAsBtB"}

3
node_modules/@commitlint/rules/lib/subject-case.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
import { TargetCaseType, SyncRule } from '@commitlint/types';
export declare const subjectCase: SyncRule<TargetCaseType | TargetCaseType[]>;
//# sourceMappingURL=subject-case.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"subject-case.d.ts","sourceRoot":"","sources":["../src/subject-case.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAI3D,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,cAAc,GAAG,cAAc,EAAE,CAgCnE,CAAC"}

35
node_modules/@commitlint/rules/lib/subject-case.js generated vendored Normal file
View File

@ -0,0 +1,35 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.subjectCase = void 0;
const ensure_1 = require("@commitlint/ensure");
const message_1 = __importDefault(require("@commitlint/message"));
const negated = (when) => when === 'never';
const subjectCase = (parsed, when = 'always', value = []) => {
const { subject } = parsed;
if (typeof subject !== 'string' || !subject.match(/^[a-z]/i)) {
return [true];
}
const checks = (Array.isArray(value) ? value : [value]).map((check) => {
if (typeof check === 'string') {
return {
when: 'always',
case: check,
};
}
return check;
});
const result = checks.some((check) => {
const r = (0, ensure_1.case)(subject, check.case);
return negated(check.when) ? !r : r;
});
const list = checks.map((c) => c.case).join(', ');
return [
negated(when) ? !result : result,
(0, message_1.default)([`subject must`, negated(when) ? `not` : null, `be ${list}`]),
];
};
exports.subjectCase = subjectCase;
//# sourceMappingURL=subject-case.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"subject-case.js","sourceRoot":"","sources":["../src/subject-case.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAsD;AACtD,kEAA0C;AAG1C,MAAM,OAAO,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO,CAAC;AAE7C,MAAM,WAAW,GAAgD,CACvE,MAAM,EACN,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACT,EAAE;IACH,MAAM,EAAC,OAAO,EAAC,GAAG,MAAM,CAAC;IAEzB,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE;QAC7D,OAAO,CAAC,IAAI,CAAC,CAAC;KACd;IAED,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACrE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC9B,OAAO;gBACN,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,KAAK;aACX,CAAC;SACF;QACD,OAAO,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;QACpC,MAAM,CAAC,GAAG,IAAA,aAAU,EAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1C,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAElD,OAAO;QACN,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;QAChC,IAAA,iBAAO,EAAC,CAAC,cAAc,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;KACrE,CAAC;AACH,CAAC,CAAC;AAhCW,QAAA,WAAW,eAgCtB"}

Some files were not shown because too many files have changed in this diff Show More