Sha256: 9569c881cb77c3fdf30711b622808cda096d39a8aff74bf01e8c2a2d09f51bb0

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

import { minLength } from '@commitlint/ensure';
export const typeMinLength = (parsed, _when = undefined, value = 0) => {
    const input = parsed.type;
    if (!input) {
        return [true];
    }
    return [
        minLength(input, value),
        `type must not be shorter than ${value} characters`,
    ];
};
//# sourceMappingURL=type-min-length.js.map

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pcp-server-ruby-sdk-0.0.6 node_modules/@commitlint/rules/lib/type-min-length.js
pcp-server-ruby-sdk-0.1.0 node_modules/@commitlint/rules/lib/type-min-length.js