Sha256: ab93bbcb56ca3c4b5efa98a08151d39c8b85cdac1d81bd176c111a26aea4d388
Contents?: true
Size: 422 Bytes
Versions: 2
Compression:
Stored size: 422 Bytes
Contents
import * as ensure from '@commitlint/ensure'; import message from '@commitlint/message'; export const subjectEmpty = (parsed, when = 'always') => { const negated = when === 'never'; const notEmpty = ensure.notEmpty(parsed.subject || ''); return [ negated ? notEmpty : !notEmpty, message(['subject', negated ? 'may not' : 'must', 'be empty']), ]; }; //# sourceMappingURL=subject-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/subject-empty.js |
pcp-server-ruby-sdk-0.1.0 | node_modules/@commitlint/rules/lib/subject-empty.js |