const rules = {
email: 'email'
}
// or
const rules = {
email: [
rule('email')
]
}
Ensures the field under validation is a valid email format.
This validation never checks for the existence of the email address. |
const rules = {
email: 'email'
}
// or
const rules = {
email: [
rule('email')
]
}
For customized build, you can import this rule as follows.
import { email } from 'indicative/builds/validations'