carloscuesta/gitmoji-cli

View on GitHub
src/commands/commit/guard.js

Summary

Maintainability
A
0 mins
Test Coverage
import chalk from 'chalk'

const errors = {
  title: chalk.red('Enter a valid commit title')
}

const title = (title: string) => (!title ? errors.title : true)

export default {
  title
}