all files / src/ index.js

100% Statements 49/49
100% Branches 4/4
100% Functions 1/1
100% Lines 16/16
1 branch Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44                                                          
import absence from './absence'
import acceptance from './acceptance'
import addValidator from './add-validator'
import confirmation from './confirmation'
import date from './date'
import email from './email'
import format from './format'
import inclusion from './inclusion'
import exclusion from './exclusion'
import length from './length'
import messages from './messages'
import numericality from './numericality'
import presence from './presence'
import url from './url'
 
import { formatMsg as formatMessage, DEFAULT_OPTIONS } from './helpers'
 
let required = presence // alias
 
export default {
  formatMessage,
  defaultOptions: DEFAULT_OPTIONS,
  messages
}
 
export {
  absence,
  acceptance,
  addValidator,
  confirmation,
  date,
  email,
  exclusion,
  format,
  inclusion,
  length,
  numericality,
  presence,
  required,
  url
}