Sha256: 21f0929b2a9688f60375855a759f964e365df9f12df5c24fb519792391f2f3cb

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

import * as ensure from '@commitlint/ensure';
import message from '@commitlint/message';
export const scopeEmpty = (parsed, when = 'never') => {
    const negated = when === 'always';
    const notEmpty = ensure.notEmpty(parsed.scope || '');
    return [
        negated ? !notEmpty : notEmpty,
        message(['scope', negated ? 'must' : 'may not', 'be empty']),
    ];
};
//# sourceMappingURL=scope-empty.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/scope-empty.js
pcp-server-ruby-sdk-0.1.0 node_modules/@commitlint/rules/lib/scope-empty.js