alpha

Makes sure the field under validation is alpha only. The regex used is /^[a-z]+$/i.

const rules = {
  username: 'alpha'
}

// or
const rules = {
  username: [
    rule('alpha')
  ]
}

For customized build, you can import this rule as follows.

import { alpha } from 'indicative/builds/validations'